[OpenAFS-devel] fail to rebuild openafs-1.4.6-1.3.src.rpm on Fedora 8 ...
Kambiz Aghaiepour
kambiz@duke.edu
Mon, 14 Apr 2008 13:04:11 -0400
I've been trying to rebuild :
http://dl.openafs.org/dl/openafs/1.4.6/openafs-1.4.6-1.3.src.rpm
on Fedora 8 running: 2.6.24.4-64.fc8
and for some reason, the compile fails when trying to build kdump.o.
Here is a bit of the compile output:
[...]
In file included from ./kdump.c:23:
/lib/modules/2.6.24.4-64.fc8/source/include/linux/string.h:68: error:=20
conflicting types for =E2=80=98strlen=E2=80=99
/lib/modules/2.6.24.4-64.fc8/source/include/linux/string.h:99: error:=20
conflicting types for =E2=80=98memcmp=E2=80=99
[...]
In file included from ./kdump.c:199:
/usr/include/sys/user.h:96:1: warning: this is the location of the=20
previous definition
In file included from=20
/lib/modules/2.6.24.4-64.fc8/source/include/linux/kernel.h:16,
from=20
/lib/modules/2.6.24.4-64.fc8/source/include/linux/cache.h:4,
from=20
/lib/modules/2.6.24.4-64.fc8/source/include/asm/pda.h:7,
from=20
/lib/modules/2.6.24.4-64.fc8/source/include/asm/current_64.h:7,
from=20
/lib/modules/2.6.24.4-64.fc8/source/include/asm/current.h:4,
from=20
/lib/modules/2.6.24.4-64.fc8/source/include/asm/processor_64.h:17,
from=20
/lib/modules/2.6.24.4-64.fc8/source/include/asm/processor.h:4,
from=20
/lib/modules/2.6.24.4-64.fc8/source/include/linux/prefetch.h:14,
from=20
/lib/modules/2.6.24.4-64.fc8/source/include/linux/list.h:8,
from=20
/lib/modules/2.6.24.4-64.fc8/source/include/linux/wait.h:22,
from=20
/lib/modules/2.6.24.4-64.fc8/source/include/linux/fs.h:273,
from ./kdump.c:312:
/lib/modules/2.6.24.4-64.fc8/source/include/linux/log2.h:52: error:=20
expected =E2=80=98=3D=E2=80=99, =E2=80=98,=E2=80=99, =E2=80=98;=E2=80=99,=
=E2=80=98asm=E2=80=99 or =E2=80=98__attribute__=E2=80=99 before =E2=80=98=
is_power_of_2=E2=80=99
I can get past the first two by adding to kdump.c:
#define __HAVE_ARCH_STRLEN 1
#define __HAVE_ARCH_MEMCMP 1
though that may not be the right thing to do, but I'm a bit stumped on=20
the subsequent errors. has anyone successfully built the stable 1.4.6=20
for fedora 8? I'm looking to make sure I can build RPM packages btw.
Thanks for your help.
Kambiz
--=20
+- .--. ----------------------------------+
| |o_o | Kambiz Aghaiepour |
| |:_/ | -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- |
| // \ \ "Freedom is not worth having if |
|(| | ) it does not include the freedom |
/'\_ _/`\ to make mistakes." --M. Gandhi |
\___)=3D(___/ --------------------------------+