Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31285 - linux-headers-2.6.0
Summary: linux-headers-2.6.0
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Lowest enhancement (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
: 31695 37081 (view as bug list)
Depends on:
Blocks: 31695 36041 36382 36889 38357 39740
  Show dependency tree
 
Reported: 2003-10-16 08:06 UTC by Peter Gnodde
Modified: 2004-04-09 07:32 UTC (History)
12 users (show)

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


Attachments
ebuild and digest files (linux-headers-2.6.0_beta7-r3.tar.gz,1.93 KB, application/x-gzip-compressed)
2003-10-16 08:08 UTC, Peter Gnodde
Details
2.6 linux-headers ebuild (linux-headers-2.6.0_beta8.ebuild,3.20 KB, text/plain)
2003-10-22 21:51 UTC, Joshua Kinard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Gnodde 2003-10-16 08:06:55 UTC
Modified the development-2.6.0_beta7-r3 ebuild to correctly install its headers to /usr/include.
Comment 1 Peter Gnodde 2003-10-16 08:08:03 UTC
Created attachment 19320 [details]
ebuild and digest files
Comment 2 Brian Jackson (RETIRED) gentoo-dev 2003-10-16 08:22:30 UTC
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)
Comment 3 Peter Gnodde 2003-10-16 09:06:32 UTC
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).
Comment 4 David Nielsen 2003-10-16 13:27:45 UTC
Could you post any additional header fixes in this thread?
Comment 5 Peter Gnodde 2003-10-17 03:41:09 UTC
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)
Comment 6 Peter Gnodde 2003-10-18 08:44:14 UTC
iputils is fixed for compilation against 2.6 header files. (see bug #25459)
Comment 7 Peter Gnodde 2003-10-18 09:19:06 UTC
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.
Comment 8 Peter Gnodde 2003-10-18 09:39:23 UTC
Fix for net-tools 1.60 can be found here: bug #31420.
Comment 9 Peter Gnodde 2003-10-18 09:43:13 UTC
Quick update: emerge -pe system will now compile without failures using these
2.6 headers.
Comment 10 Q 2003-10-21 14:34:53 UTC
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
Comment 11 Joshua Kinard gentoo-dev 2003-10-22 21:51:11 UTC
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.
Comment 12 Aaron Gyes 2003-12-07 17:07:19 UTC
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
Comment 13 SpanKY gentoo-dev 2003-12-07 23:35:09 UTC
basically any package that includes fbcon.h breaks (many video related apps do)

i think thats the biggest source of breakage
Comment 14 Aaron Gyes 2003-12-08 16:42:00 UTC
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'
Comment 15 SpanKY gentoo-dev 2003-12-08 16:47:46 UTC
floam: that bug is unrelated, see Bug 31901
Comment 16 Aaron Gyes 2003-12-08 18:50:16 UTC
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)
Comment 17 Aaron Gyes 2003-12-09 16:47:44 UTC
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.
Comment 18 Felix Kurth 2003-12-21 09:48:50 UTC
sys-apps/usbutils-0.11.-r3 are failing with 2.6.0
Comment 19 Tim Yamin (RETIRED) gentoo-dev 2003-12-24 16:44:57 UTC
Strace:   Fixed, ebuild MD5 is 903faf7b20e914e07d9107b6c1508a4d.
USBUtils: Fixed, do a ``emerge sync'' and remerge linux-headers-2.6.0.
Comment 20 Andreas Simon 2003-12-26 09:55:53 UTC
media-video/avifile-0.7.38.20030710 fails too with these new headers.
Comment 21 SpanKY gentoo-dev 2003-12-26 11:45:30 UTC
avifile fails because of the redefinition of the time struct like we talked about on irc plasmaroo
Comment 22 Tim Yamin (RETIRED) gentoo-dev 2003-12-26 13:30:27 UTC
I've got a patch ready for avifile, it'll be in Portage soon.
Comment 23 Tim Yamin (RETIRED) gentoo-dev 2003-12-26 15:52:15 UTC
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.
Comment 24 Felix Kurth 2003-12-29 11:23:54 UTC
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
Comment 25 Tim Yamin (RETIRED) gentoo-dev 2003-12-29 12:53:31 UTC
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.
Comment 26 Benoit Boissinot 2003-12-30 06:41:00 UTC
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
Comment 27 Tim Yamin (RETIRED) gentoo-dev 2003-12-30 14:12:44 UTC
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.
Comment 28 Andreas Simon 2003-12-31 03:41:06 UTC
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.
Comment 29 Tim Yamin (RETIRED) gentoo-dev 2003-12-31 05:57:21 UTC
OK - apmd-3.2.0 should now work; make sure you sync your Portage tree first.
Comment 30 Benoit Boissinot 2003-12-31 08:49:34 UTC
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)
Comment 31 Tim Yamin (RETIRED) gentoo-dev 2003-12-31 09:22:55 UTC
media-libs/libdv and net-misc/iputils-021109 should now work; sync your tree and they should compile without any problems.
Comment 32 Derk W te Bokkel 2004-01-02 17:53:47 UTC
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? 

 
Comment 33 Joshua Kinard gentoo-dev 2004-01-02 19:48:32 UTC
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.
Comment 34 Martin Holzer (RETIRED) gentoo-dev 2004-01-03 03:30:43 UTC
*** Bug 37081 has been marked as a duplicate of this bug. ***
Comment 35 Tim Yamin (RETIRED) gentoo-dev 2004-01-03 04:43:01 UTC
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.
Comment 36 Tim Yamin (RETIRED) gentoo-dev 2004-01-03 07:07:07 UTC
Derk: Sync your tree and iputils-021109 should now compile...
Comment 37 Derk W te Bokkel 2004-01-03 21:33:29 UTC
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.
Comment 38 Dick Marinus 2004-01-25 03:05:48 UTC
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)
Comment 39 Dick Marinus 2004-01-25 03:32:32 UTC
oops, forget to reemerge ebuild, everything works fine! great work
Comment 40 Tim Yamin (RETIRED) gentoo-dev 2004-01-30 16:19:01 UTC
*** Bug 31695 has been marked as a duplicate of this bug. ***
Comment 41 Jason Cox (RETIRED) gentoo-dev 2004-04-09 07:32:34 UTC
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.