Modified the development-2.6.0_beta7-r3 ebuild to correctly install its headers to /usr/include.
Created attachment 19320 [details] ebuild and digest files
This probably isn't a good idea. The number of packages that do not compile correctly against 2.6 headers is pretty nasty. There is work being done a nice clean sanitized set of headers, other than that we need to wait for a number of upstream apps to work with 2.6 headers (which may take awhile since some of the packages have been abandoned)
I'm currently doing an 'emerge -e system' to catch bugs in the core packages and will try to fix them. This ebuild is purely for experimental purposes, I figured others would like to experiment too :). First fix is available for util-linux (bug #31286).
Could you post any additional header fixes in this thread?
I've created a new sash ebuild for sash-3.6, removed the dependencies on kernel headers from the code and build a nicer readline patch. It seems someone already posted an ebuild for 3.6, so I've added an attachment there: bug #26272 (it's the 3rd attachment, includes all patches)
iputils is fixed for compilation against 2.6 header files. (see bug #25459)
Fix for e2fsprogs-1.33 can be found here: bug #31419. <linux/major.h> does not define the SCSI_DISK_MAJOR macro anymore, so I've included a #ifndef ... #endif in e2fsprogs which defines it when needed.
Fix for net-tools 1.60 can be found here: bug #31420.
Quick update: emerge -pe system will now compile without failures using these 2.6 headers.
Can you add xfree 4.3.0-r3, Mozilla 1.5 and Xine-lib 1.0_rc1 to the things that won't compile against 2.6 kernel headers? Thanks... Q
Created attachment 19651 [details] 2.6 linux-headers ebuild Hate to spoil the party, But I created a 2.6.0-testX linux-headers ebuild awhile ago. It's based off the linux-headers-2.4.21 ebuild already in portage, so it makes keeping the two up to date. Plus it relies on kernel.eclass to handle the bulk of the work. Give it a look over, see if it may fix some of the things that are reported to break. This will create headers for linux-2.6.0-test8, btw. It can be changed to a new version by simply renaming the file. Let me know of any ideas or improvements, or critique it between this ebuild and the one Peter posted.
I've been running 2.6 headers for quite a while, here are a few things off the top of my head that still don't work: libdv-0-99-r1 abiword-2.0.1 ffmpeg-0.4.8 libgtop-2.5.0
basically any package that includes fbcon.h breaks (many video related apps do) i think thats the biggest source of breakage
The new linux-headers ebuild in portage breaks on me. (actually so does the one here) ( floam ~ ) emerge linux-headers -p These are the packages that I would merge, in order: Calculating dependencies ...done! Traceback (most recent call last): File "/usr/bin/emerge", line 2200, in ? mydepgraph.display(mydepgraph.altlist()) File "/usr/bin/emerge", line 1105, in display elif (not "--emptytree" in myopts) and portage.db[x[1]]["vartree"].exists_specific_cat(x[2]): File "/usr/lib/portage/pym/portage.py", line 3480, in exists_specific_cat self.invalidentry(self.root+"var/db/pkg/"+a[0]+"/"+x) AttributeError: vartree instance has no attribute 'invalidentry'
floam: that bug is unrelated, see Bug 31901
Oh, sorry about that, must have been a coincidence. (the bad lockfile was for a kernel, so it only happened when I pretended to emerge linux-headers)
I hope this is still the place to report stuff that will not work with 2.6 headers. Samba 3.0.0-r1 and strace-4.5.1 failing.
sys-apps/usbutils-0.11.-r3 are failing with 2.6.0
Strace: Fixed, ebuild MD5 is 903faf7b20e914e07d9107b6c1508a4d. USBUtils: Fixed, do a ``emerge sync'' and remerge linux-headers-2.6.0.
media-video/avifile-0.7.38.20030710 fails too with these new headers.
avifile fails because of the redefinition of the time struct like we talked about on irc plasmaroo
I've got a patch ready for avifile, it'll be in Portage soon.
Avifile is also now fixed. Make sure you've got linux-headers-2.6.0, ebuild CVS revision 1.2 and avifile-0.7.38.20030710, ebuild CVS revision 1.8.
sys-fs/reiserfsprogs-3.6.11(-r1) are broken too.: output: if gcc -DHAVE_CONFIG_H -I. -I. -I../include -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -MT io.o -MD -MP -MF ".deps/io.Tpo" \ -c -o io.o `test -f 'io.c' || echo './'`io.c; \ then mv ".deps/io.Tpo" ".deps/io.Po"; \ else rm -f ".deps/io.Tpo"; exit 1; \ fi if gcc -DHAVE_CONFIG_H -I. -I. -I../include -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -MT misc.o -MD -MP -MF ".deps/misc.Tpo" \ -c -o misc.o `test -f 'misc.c' || echo './'`misc.c; \ then mv ".deps/misc.Tpo" ".deps/misc.Po"; \ else rm -f ".deps/misc.Tpo"; exit 1; \ fi misc.c: In function `count_blocks': misc.c:431: error: syntax error before '[' token make[1]: *** [misc.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/reiserfsprogs-3.6.11/work/reiserfsprogs-3.6.11/lib' make: *** [all-recursive] Error 1
Reiserfsprogs should work - make sure you've got reiserfsprogs-3.6.11, v1.5 and the latest linux-headers which you'll need to remerge.
I emerged 2.6 headers and did a 'emerge -e world'. Following packages did not compile: media-libs/libdv media-libs/gst-plugins media-video/transcode net-fs/samba net-misc/iputils
libdv compiles fine with the latest libdv version with the latest 2.6 headers, so it should work once you sync your tree. Samba should also work with the latest headers, if it doesn't work after remerging your headers can you please file a bug for that and paste in the error messages? Same goes for gst-plugins and transcode.
sys-apps/apmd-3.2.0 fails too. (tested apmd-3.2.0 1.1 and linux-headers-2.6.0 1.3) See bug #29636. (Comment #2 shows the error). The patch which was applied to apmd-3.0.2-r3 doesn't work with apmd-3.2.0.
OK - apmd-3.2.0 should now work; make sure you sync your Portage tree first.
It works for gst-plugins and transcode. But I still have problems with : media-libs/libdv-0.99-r1 net-fs/samba-3.0.1-r1 and net-misc/iputils-021109 (it builds fine with iputils-020927) I will file a bug report for samba and libdv since it is supposed to build with 2.6 headers (I have linux-headers-2.6.0,v 1.3)
media-libs/libdv and net-misc/iputils-021109 should now work; sync your tree and they should compile without any problems.
modified linux-headers-2.6.0.ebuild has not yet appeared in portage tree latest is has a 12/26/2003 entry date it fails in either of two modes: bash-2.05b# emerge iputils Calculating dependencies ...done! >>> emerge (1 of 1) net-misc/iputils-021109 to / >>> md5 src_uri ;-) iputils-ss021109-try.tar.bz2 >>> Unpacking source... >>> Unpacking iputils-ss021109-try.tar.bz2 to /home/extrabig/tmp/portage/iputils -021109/work >>> Source unpacked. make[1]: Entering directory `/home/extrabig/tmp/portage/iputils-021109/work/iputils/libipsec' gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -Iinclude-glibc -include include-glibc/glibc-bugs.h -I/usr/include -I../include -DDO_IPSEC -Ilibipsec -include ../include-glibc/glibc-bugs.h -I../include-glibc -I/usr/src/linux/include -DIPSEC_DEBUG -DIPSEC -DINET6 -Wall -c -o ipsec_dump_policy.o ipsec_dump_policy.c <command line>:138492413:14928: include-glibc/glibc-bugs.h: No such file or directory make[1]: *** [ipsec_dump_policy.o] Error 1 make[1]: Leaving directory `/home/extrabig/tmp/portage/iputils-021109/work/iputils/libipsec' make: *** [subdirs] Error 2 !!! ERROR: net-misc/iputils-021109 failed. !!! Function src_compile, Line 38, Exitcode 2 !!! (no error message) on my other 2 machines it looks like this. emerge iputils Calculating dependencies ...done! >>> emerge (1 of 1) net-misc/iputils-021109 to / >>> md5 src_uri ;-) iputils-ss021109-try.tar.bz2 >>> Unpacking source... >>> Unpacking iputils-ss021109-try.tar.bz2 to /mnt/bigdisk1/tmp/portage/iputils-021109/work >>> Source unpacked. make[1]: Entering directory `/mnt/bigdisk1/tmp/portage/iputils-021109/work/iputils/libipsec' gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -Iinclude-glibc -include include-glibc/glibc-bugs.h -I/usr/include -I../include -DDO_IPSEC -Ilibipsec -include ../include-glibc/glibc-bugs.h -I../include-glibc -I/usr/src/linux/include -DIPSEC_DEBUG -DIPSEC -DINET6 -Wall -c -o ipsec_dump_policy.o ipsec_dump_policy.c <command line>:138492413:14928: include-glibc/glibc-bugs.h: No such file or directory In file included from /usr/src/linux/include/linux/compiler.h:16, from /usr/src/linux/include/asm/byteorder.h:5, from /usr/src/linux/include/linux/in.h:241, from ../include-glibc/netinet/in.h:7, from ipsec_dump_policy.c:36: /usr/src/linux/include/linux/compiler-gcc3.h:17:1: warning: "__attribute_used__" redefined In file included from /usr/include/features.h:295, from ../include-glibc/glibc-bugs.h:4, from <command line>:10: /usr/include/sys/cdefs.h:192:1: warning: this is the location of the previous definition In file included from /usr/src/linux/include/linux/compiler.h:16, from /usr/src/linux/include/asm/byteorder.h:5, from /usr/src/linux/include/linux/in.h:241, from ../include-glibc/netinet/in.h:7, from ipsec_dump_policy.c:36: /usr/src/linux/include/linux/compiler-gcc3.h:22:1: warning: "__attribute_pure__" redefined In file included from /usr/include/features.h:295, from ../include-glibc/glibc-bugs.h:4, from <command line>:10: /usr/include/sys/cdefs.h:183:1: warning: this is the location of the previous definition make[1]: *** [ipsec_dump_policy.o] Error 1 make[1]: Leaving directory `/mnt/bigdisk1/tmp/portage/iputils-021109/work/iputils/libipsec' make: *** [subdirs] Error 2 !!! ERROR: net-misc/iputils-021109 failed. !!! Function src_compile, Line 38, Exitcode 2 !!! (no error message) only compiler chain difference between these machines are the 2.6.0 kernel versions, all use the same version of the headers and as I'm using one as an internel network gentoo-portage mirror all are syncing to the same portage tree all sources fetches are off of the master as well (ie. the mirror settings are spurious and don't mean anything except for the master machine0 other major difference is in USE flags 1): vPortage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.0-win4lin) ================================================================= System uname: 2.6.0-win4lin i686 AMD Athlon(tm) XP 1900+ Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" DISTDIR="/home/extrabig/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/home/extrabig/portage/packages" PORTAGE_TMPDIR="/home/extrabig/tmp" PORTDIR="/home/extrabig/portage" PORTDIR_OVERLAY="/home/derk/portage" SYNC="rsync://192.168.4.11/gentoo-portage" USE="X aalib alsa apm arts avi berkdb bonobo cdr crypt cups dvd encode esd foomaticdb gb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imlib jack jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls ofx oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline scanner sdl slang spell ssl svga tcpd tetex truetype usb x86 xml xml2 xmms xv zlib" 2): Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.0-mm1) ================================================================= System uname: 2.6.0-mm1 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache cvs sandbox userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/mnt/bigdisk1/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi acpi4linux alsa apm arts avi berkdb bonobo cdr crypt cups dvd dvdr encode esd foomaticdb gb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imagemagick imlib jack java javascript jpeg kde libg++ libgda libwww mad mikmod motif mozilla mpeg ncurses nls ofx oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline scanner sdl slang spell ssl svga tcpd transcode truetype usb v4l x86 xinerama xml xml2 xmms xv zlib" 3): Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.0-mm1) ================================================================= System uname: 2.6.0-mm1 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.4.11/gentoo-portage" USE="X alsa apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib" any thoughts? as to why this would differ so widely?
All I'll say about iputils is that I hate it. As far as I can tell, it's not maintained upstream (I've heard reports that it is), so if it is, then the upstream people need to pump out a new release to address the changing nature of new headers (Unless someone wants to take a shot at patching it). I dealt with similar issues between iputils-020927 and linux-2.4.22 headers, which look to have somehow been fixed in the 021109 copy, which is in unstable right now.
*** Bug 37081 has been marked as a duplicate of this bug. ***
Derk: On your other two machines, you need to sync and get the latest headers - that should go away and I fixed that a while ago. You will however, get that "no such file" error - I am currently investigating that issue, it looks like a GCC problem, not something related to the kernel headers. The previous version of iputils should build successfully.
Derk: Sync your tree and iputils-021109 should now compile...
ok compiles on all machines now but note: yacc is now a dependency was not on one of my machines so it had to be added before compilation would complete.
I've got some problems compiling mplayer due to the following: http://zebra.fh-weingarten.de/~maxi/html/mplayer-dev-eng/2003-12/msg00026.html as you read read this is fixed in debian: http://lists.debian.org/debian-glibc/2003/debian-glibc-200311/msg00096.html it'd be great if these changes are ported to gentoo too! (Disable the guts of <linux/compiler.h> in userspace)
oops, forget to reemerge ebuild, everything works fine! great work
*** Bug 31695 has been marked as a duplicate of this bug. ***
The sys-kernel/linux-headers should provide a sanitized set of default headers. It's a bad idea to use actual headers in /usr/src/linux-version/ since they change very often and are specific to a certain kernel.