[syslinux] syslinux build fails with 2.6 linux headers

Hendrik Groeneveld hendrik at hg.com
Tue Jan 11 22:45:15 PST 2005

On Tue, 11 Jan 2005, H. Peter Anvin wrote:

> Hendrik Groeneveld wrote:
> > As the subject says, building syslinux fails when built against
> > kernel headers. Anybody out there have a patch? The compile errors are
> > below.
> Looks like <linux/ext2_fs.h> includes <linux/ext2_fs_sb.h> without
> __KERNEL__; so it needs an #ifdef __KERNEL__ somewhere.
> 	-hpa

I tried defining __KERNEL__ (a bad idea, I know) which eliminated some of
the errors. This seemed to leave another incomplete definition that
required inclusion of an arch dependent header. And yes, I would consider
this to be a kernel bug, but realistically it needs to be fixed in
syslinux (and the kernel where necessary). The world is not going to stay
with 2.4 just for the sake of syslinux. I would have hoped that the kernel
maintainers would have made a greater effort to maintain compatibility
since syslinux is a required utility for building floppy images in 2.6 but
this does not seem to be the case :-(


More information about the Syslinux mailing list