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: conflicting types for ‘strlen’ /lib/modules/2.6.24.4-64.fc8/source/include/linux/string.h:99: error: conflicting types for ‘memcmp’
[...]
In file included from ./kdump.c:199:
/usr/include/sys/user.h:96:1: warning: this is the location of the previous definition In file included from /lib/modules/2.6.24.4-64.fc8/source/include/linux/kernel.h:16, from /lib/modules/2.6.24.4-64.fc8/source/include/linux/cache.h:4, from /lib/modules/2.6.24.4-64.fc8/source/include/asm/pda.h:7, from /lib/modules/2.6.24.4-64.fc8/source/include/asm/current_64.h:7, from /lib/modules/2.6.24.4-64.fc8/source/include/asm/current.h:4, from /lib/modules/2.6.24.4-64.fc8/source/include/asm/processor_64.h:17, from /lib/modules/2.6.24.4-64.fc8/source/include/asm/processor.h:4, from /lib/modules/2.6.24.4-64.fc8/source/include/linux/prefetch.h:14, from /lib/modules/2.6.24.4-64.fc8/source/include/linux/list.h:8, from /lib/modules/2.6.24.4-64.fc8/source/include/linux/wait.h:22, from /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: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘is_power_of_2’


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 the subsequent errors. has anyone successfully built the stable 1.4.6 for fedora 8? I'm looking to make sure I can build RPM packages btw.

Thanks for your help.
Kambiz

--
+-  .--.  ----------------------------------+
|  |o_o |      Kambiz Aghaiepour            |
|  |:_/ |    -=-=-=-=-=-=-=-=-=-=-=-=-      |
| //   \ \  "Freedom is not worth having if |
|(|     | ) it does not include the freedom |
/'\_   _/`\ to make mistakes." --M. Gandhi  |
\___)=(___/ --------------------------------+
_______________________________________________
OpenAFS-devel mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-devel

Reply via email to