Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62269 - glibc fails to compile, bad kernel sysctl.h
Summary: glibc fails to compile, bad kernel sysctl.h
Status: RESOLVED DUPLICATE of bug 61856
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-30 09:26 UTC by katerina
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description katerina 2004-08-30 09:26:55 UTC
>>> emerge (1 of 1) sys-libs/glibc-2.3.3.20040420-r1 to /
>>> md5 src_uri ;-) glibc-2.3.2.tar.bz2
>>> md5 src_uri ;-) glibc-linuxthreads-2.3.2.tar.bz2
>>> md5 src_uri ;-) glibc-2.3.3-branch-update-20040420.patch.bz2

 * Checking kernel headers for broken sysctl.h ... no

After several hours of building.....

./usr/lib/crt1.o
./usr/lib/Mcrt1.o
>>> Done.
>>> extracting info

 * Checking kernel headers for broken sysctl.h ... yes

 * Your version of:

 *   /lib/modules/2.6.6/build/include/linux/sysctl.h

 * is broken (from a user space perspective).  Please apply
 * the following patch:

 * *******************************************************
cat: /var/tmp/portage-pkg/glibc-2.3.3.20040420-r1/inf/files/fix-sysctl_h.patch: No such file or directory
 * *******************************************************

 * To fix, just do this:
 * cd /lib/modules/2.6.6/build/include/linux/
 * patch -p3 < /var/tmp/portage-pkg/glibc-2.3.3.20040420-r1/inf/files/fix-sysctl_h.patch


!!! ERROR: glibc-2.3.3.20040420-r1/glibc-2.3.3.20040420-r1 failed.
!!! Function pkg_setup, Line 214, Exitcode 0
!!! Broken linux/sysctl.h header included in kernel sources!

!!! Error running pkg_setup



Reproducible: Always
Steps to Reproduce:
1. emerge glibc
Actual Results:  
glibc claims that sysctl is broken, and then that it isn't; the ebuild dies.


Expected Results:  
Either died at the start if sysctl.h is truely broken, or not died later
claiming that it is.


I asked on #gentoo about this problem.
<jstubbs> lscd: patch -p3 < /usr/portage/sys-libs/glibc/files/fix-sysctl_h.patch
That command worked [the patch line in the ebuild refers to a NON-EXISTANT
file], however, glibc dies at the end of the compile.


Portage 2.0.50-r10 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r0, 2.6.6)
=================================================================
System uname: 2.6.6 i686 AMD Athlon(TM) XP 2500+
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-ggdb3 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/freenet
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-ggdb3 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc nostrip sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ 
http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.26/portage"
USE="3dnow X acl alsa apm arts audiofile avi berkdb bidi canna cdr cjk composite
crypt cscope cups debug directfb doc dvd dvdr emacs encode faad flac foomaticdb
freewnn gatos gd gdbm gimpprint gphoto2 gpm gtk gtk2 guile imagemagick imlib
java javascript jikes jpeg junit kde libg++ libwww mad mikmod mmx mng mpeg mysql
ncurses nls oggvorbis opengl pam pcre pdflib perl pic png ppds python qt
quicktime readline ruby scanner sdl slang socks5 softmmu spell sse ssl tcltk
tcpd tetex theora tiff truetype unicode usb video_cards_radeon wmf x86 xinerama
xml2 xmms xv zlib"
Comment 1 katerina 2004-08-31 17:52:15 UTC
On a second system I have, glibc starts building happily... but before installing into /, it dies with the same error about sysctl.

Portage 2.0.50-r10 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r0, 2.6.0-test8)
=================================================================
System uname: 2.6.0-test8 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/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/fenris /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi avicdr berkdb cjk crypt cups dvd encode foomaticdb gdbm gif gphoto2 gpm gtk gtk2 guile imlib java javascript jpeg kde libg++ libwww mad mikmod mmx motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png postgres python qt quicktime readline ruby scanner sdl slang spell ssl tcltk tcpd tetex tiff truetype video_cards_rage128 x86 xml2 xmms xv zlib"
Comment 2 Michael 2004-08-31 18:33:22 UTC
The problem with this seems to be [at least on my system - I think it's the same problem]

If you have buildpkg in options, the merge uses the package file [i.e it uses pkgmerge in portage.py] and that runs pkg_setup again but FILESDIR is different [as you can see from the error message in the report repeated here] :-

cat: /var/tmp/portage-pkg/glibc-2.3.3.20040420-r1/inf/files/fix-sysctl_h.patch: No such file or directory

i.e There is no test_sysctl_h.c file or fix-sysctl_h.patch file in that directory, so the gcc command fails, but that's nothing to do with sysctl.h being incorrect.

Hope that helps.
Comment 3 Christian Gut 2004-09-01 07:40:03 UTC
Same problem here. #2 seems to be correct, I am testing without buildpkg feature set ATM.
Comment 4 Christian Gut 2004-09-01 08:28:46 UTC
disabling buildpkg helps. glibc merged fine.
Comment 5 solar (RETIRED) gentoo-dev 2004-09-01 15:23:22 UTC

*** This bug has been marked as a duplicate of 61856 ***