[syslinux] syslinux build fails with 2.6 linux headers

Steve Dover sw0rdf1sh at charter.net
Thu Jan 13 21:17:02 PST 2005

Hendrik Groeneveld wrote:
> 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
>>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 :-(
Hmmm.  Why is syslinux required to build a 2.6 boot floppy?
I realize that the kernel image is no longer bootable on x86
directly, but isn't it still possible to build a floppy
with a filsys and use lilo or grub to load a 2.6.x kernel from
the same filesystem?

More information about the Syslinux mailing list