#1 conflicting types for __ffs

open
nobody
None
5
2003-05-01
2003-05-01
No

Compiling cramfs code using kernel headers from linux
2.4.20 + patch-2.4.21-rc1 + patch-2.4.21-rc1-ac3 gets
the following error:

make[3]: Entering directory
`/home/smckown/build/firmware/src/cramfs'
gcc -W -Wall -O2 -g -I.
/home/smckown/embedded/firmware/./src/cramfs/mkcramfs.c
-lz -o mkcramfs
gcc -W -Wall -O2 -g -I.
/home/smckown/embedded/firmware/./src/cramfs/cramfsck.c
-lz -o cramfsck
In file included from /usr/include/linux/fs.h:26,
from
/home/smckown/embedded/firmware/./src/cramfs/cramfsck.c:54:
/usr/include/asm/bitops.h:410: conflicting types for `__ffs'
/usr/include/string.h:247: previous declaration of `__ffs'
make[3]: *** [cramfsck] Error 1
make[3]: Leaving directory
`/home/smckown/build/firmware/src/cramfs'
make[2]: *** [cramfs] Error 2

Discussion


Log in to post a comment.