[syslinux] 3.61 and .62-pre10: extlinux compilation problem on Linux 2.4

H. Peter Anvin hpa at zytor.com
Mon Feb 18 10:48:23 PST 2008


Gabor Z. Papp wrote:
> make[1]: Entering directory `/home/gzp/src/syslinux-3.62-pre10/extlinux'
> gcc -Wp,-MT,extlinux.o,-MMD,.extlinux.o.d -W -Wall -Wno-sign-compare -D_FILE_OFFSET_BITS=64 -g -Os -I. -I.. -I../libinstaller -c -o
> extlinux.o extlinux.c
> In file included from /usr/include/linux/vfs.h:4,
>                  from /usr/include/linux/fs.h:14,
>                  from extlinux.c:43:
> /usr/include/asm/statfs.h:12: error: redefinition of 'struct statfs'
> make[1]: *** [extlinux.o] Error 1
> make[1]: Leaving directory `/home/gzp/src/syslinux-3.62-pre10/extlinux'
> make: *** [all] Error 2
> 

The 2.4 kernel headers "leak" the kernel definition of struct statfs, 
which differs from glibc's.  The 2.4 kernel headers aren't usable as 
/usr/include/{linux,asm} for this and other reasons.

	-hpa




More information about the Syslinux mailing list