Gabor Z. Papp
2008-Feb-18 08:35 UTC
[syslinux] 3.61 and .62-pre10: extlinux compilation problem on Linux 2.4
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 [kernel] Linux gzp1 2.4.36-gzp1 #1 SMP Wed Jan 2 09:25:29 CET 2008 i686 GNU/Linux [glibc] GNU C Library stable release version 2.3.6, by Roland McGrath et al. Compiled by GNU CC version 4.1.2. Compiled on a Linux 2.4.34-gzp1 system on 2007-04-04. [gcc] gcc (GCC) 4.2.3 [binutils] GNU ld (Linux/GNU Binutils) 2.18.50.0.4.20080208
H. Peter Anvin
2008-Feb-18 18:48 UTC
[syslinux] 3.61 and .62-pre10: extlinux compilation problem on Linux 2.4
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
Apparently Analagous Threads
- Compiling syslinux/gpxe/src/arch/i386/scripts/i386.lds:1: undefined symbol `_max_align' referenced in expression
- bad performance on 2.4.23
- GPXE arch/i386/scripts/i386.lds:1: undefined symbol `_max_align' referenced in expression
- SYSLINUX 3.11-pre10
- 3.62-pre16: Compiling on old (2.4 kernel) distros