Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417133 - sys-boot/syslinux-4.05 with linux-headers-3.4+: ../libinstaller/linuxioctl.h:22:44: fatal error: linux/ext2_fs.h: No such file or directory
Summary: sys-boot/syslinux-4.05 with linux-headers-3.4+: ../libinstaller/linuxioctl.h:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-22 18:28 UTC by Xavier Miller (RETIRED)
Modified: 2012-10-15 18:52 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch against LinuxHeaders-3.4 (34-headers.patch,40.44 KB, patch)
2012-05-25 03:47 UTC, Brandon Penglase
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller (RETIRED) gentoo-dev 2012-05-22 18:28:01 UTC
It seems that after upgrading to linux-headers-3.4, syslinux don't find linux/ext2_fs.h anymore, even if that include file is present in the linux source tree.

In file included from syslinux.c:50:0:
../libinstaller/linuxioctl.h:22:44: fatal error: linux/ext2_fs.h: No such file or directory
compilation terminated.
make[1]: *** [syslinux.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from ../libinstaller/syslxcom.c:33:0:
../libinstaller/linuxioctl.h:22:44: fatal error: linux/ext2_fs.h: No such file or directory
compilation terminated.
make[1]: *** [syslxcom.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-boot/syslinux-4.05/work/syslinux-4.05/linux'
make: *** [installer] Error 2
emake failed
 * ERROR: sys-boot/syslinux-4.05 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 1872:  Called die
 * The specific snippet of code:
 *       emake CC=$(tc-getCC) installer || die
 * 
 * If you need support, post the output of `emerge --info '=sys-boot/syslinux-4.05'`,
 * the complete build log and the output of `emerge -pqv '=sys-boot/syslinux-4.05'`.
 * The complete build log is located at '/var/tmp/portage/sys-boot/syslinux-4.05/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-boot/syslinux-4.05/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-boot/syslinux-4.05/work/syslinux-4.05'
 * S: '/var/tmp/portage/sys-boot/syslinux-4.05/work/syslinux-4.05'



Reproducible: Always
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-05-23 23:10:50 UTC
Upstream patch:
http://git.kernel.org/?p=boot/syslinux/syslinux.git;a=commitdiff;h=a1006762fa6f98750bb77d76dd992cb8ea9f9c99

If anyone wants to commit, feel free. Else I may get to it during the next couple of days.
Comment 2 Brandon Penglase 2012-05-25 03:47:32 UTC
Created attachment 313019 [details, diff]
Patch against LinuxHeaders-3.4

I hit this when recompiling a few things on my system. So I created this patch, which is created from the linked one upstream. The patch presented was actually for 4.06-Pre3, however it is being applied against 4.05 here.  This applies cleanly for me and results in a successful compile (however I haven't tested functionality yet).
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-05-28 08:48:59 UTC
After discussing with upstream, I added syslinux-4.06_pre4 to the tree and made earlier versions depend on <sys-kernel/linux-headers-3.4.
Comment 4 Paolo Pedroni 2012-06-27 08:31:58 UTC
(In reply to comment #3)
> After discussing with upstream, I added syslinux-4.06_pre4 to the tree and
> made earlier versions depend on <sys-kernel/linux-headers-3.4.

Please reopen: sys-boot/syslinux-3.86 does not need to depend on <sys-kernel/linux-headers-3.4 as it has its own private copy of ext2_fs.h anyway.

I just forced linux-headers-3.4 on my system and it rebuilt syslinux-3.86 just fine.
Comment 5 Tomáš Chaloupka 2012-06-27 13:13:40 UTC
Please reopen. With stable syslinux-4.0.5 and stable linux-headers-3.4 it causes blocking because of syslinux dependency on <sys-kernel/linux-headers-3.4
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-06-27 13:26:52 UTC
This bug is fixed and won't be reopened. If you have concerns about stabilizing linux-headers or syslinux, please see bug 423091 and bug 423831.
Comment 7 Paolo Pedroni 2012-06-27 13:55:35 UTC
(In reply to comment #6)
> This bug is fixed and won't be reopened. If you have concerns about
> stabilizing linux-headers or syslinux, please see bug 423091 and bug 423831.

But the dependency on <sys-kernel/linux-headers-3.4 for syslinux-3.86 is not needed, syslinux-3.86 builds just fine with linux-headers-3.4. Please at least revert this change.