Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126316 - klibc-1.1.16 in genkernel-3.3.11 fails to compile with gcc-4.1/glibc-2.4
Summary: klibc-1.1.16 in genkernel-3.3.11 fails to compile with gcc-4.1/glibc-2.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-15 08:47 UTC by Steve Yin
Modified: 2006-04-13 12:31 UTC (History)
2 users (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 Steve Yin 2006-03-15 08:47:05 UTC
KLIBCCC klibc/vsnprintf.o
In file included from include/sys/time.h:10,
                 from include/sys/select.h:9,
                 from include/unistd.h:12,
                 from include/stdio.h:11,
                 from klibc/vsnprintf.c:13:
/usr/include/linux/time.h:154: error: field it_interval has incomplete type
/usr/include/linux/time.h:155: error: field it_value has incomplete type
In file included from include/sys/select.h:9,
                 from include/unistd.h:12,
                 from include/stdio.h:11,
                 from klibc/vsnprintf.c:13:
include/sys/time.h:12: warning: struct timezone declared inside parameter list
include/sys/time.h:12: warning: its scope is only this definition or declaration, which is probably not what you want
include/sys/time.h:12: warning: struct timeval declared inside parameter list
include/sys/time.h:13: warning: struct timezone declared inside parameter list
include/sys/time.h:13: warning: struct timeval declared inside parameter list
include/sys/time.h:14: warning: struct itimerval declared inside parameter list
include/sys/time.h:15: warning: struct itimerval declared inside parameter list
include/sys/time.h:16: warning: struct timeval declared inside parameter list
In file included from include/unistd.h:12,
                 from include/stdio.h:11,
                 from klibc/vsnprintf.c:13:
include/sys/select.h:12: warning: struct timeval declared inside parameter list
make[2]: *** [klibc/vsnprintf.o] Error 1
make[1]: *** [all] Error 2
make: *** [klibc] Error 2

my emerge --info
Gentoo Base System version 1.6.14
Portage 2.1_pre6-r3 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r0, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.91.0.6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -fno-ident -ftracer -fweb -frename-registers"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -fno-ident -ftracer -fweb -frename-registers  -fno-enforce-eh-specs -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/pub/gentoo http://mirror.gentoo.gr.jp/"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://owl.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib accessibility acl acpi alsa apache2 apm arts audiofile authdaemond avi bash-completion bcmath berkdb bitmap-fonts bluetooth bonobo bzip2 bzlib cairo cdr cjk cli crypt cscope ctype cups curl dba dbus directfb dmx dri dts dvd dvdr eds emacs-w3 emboss encode esd exif expat fam fastbuild fbcon ffmpeg firefox flac foomaticdb force-cgi-redirect fortran freetds freetype ftp gd gdbm ggi gif gimpprint glitz glut gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imagemagick imlib immqt-bc ipv6 ithreads jack java javascript jikes joystick jpeg jpeg2k junit kdeenablefinal kerberos lcms ldap libcaca libg++ libwww lirc lm_sensors logrotate mad maildir mailwrapper matroska memlimit mikmod mime mmap mmx mng motif mp3 mpeg mysql mysqli nas ncurses nis nls nocardbus nptl nptlonly nsplugin odbc offensive ogg openal openexr opengl pam pcmcia pcntl pcre pda pdflib perl php plotutils png pnp portaudio posix postgres ppds profile python qt quicktime readline ruby samba sasl sdl session sftplogging simplexml skey slang slp sndfile snmp soap sockets socks5 speex spell spl sqlite sse sse2 ssl svg svga symlink tcltk tcpd tetex theora threads tiff tokenizer truetype truetype-fonts trusted type1-fonts udev unicode usb vcd vhosts vorbis win32codecs wmf xine xinerama xml xml2 xpm xprint xsl xv xvid zlib elibc_glibc input_devices_mouse input_devices_keyboard input_devices_joystick input_devices_evdev kernel_linux userland_GNU video_cards_nv video_cards_none"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LINGUAS
Comment 1 rene 2006-03-27 09:45:52 UTC
its a bug (?) in genkernel. I had the problem too.

gen_compile.sh line 792 creates a link to the new linux sources.
ln -snf "${KERNEL_DIR}" linux || gen_die "Could not link to ${KERNEL_DIR}"

So if you call genkernel with a relative path, it will fail to compile.

genkernel --no-clean --kerneldir=. initrd
gave me the same error

genkernel --no-clean --kerneldir=/usr/src/linux-2.6.15-gentoo-r7/ initrd
worked
Comment 2 Thomas Weidner 2006-04-01 10:00:34 UTC
Hi, i changed the genkernel 1.3.11 ebuild to use klibc 1.2.1 and udev 088 and now it builds the initrd correctly (/etc/genkernel.conf has also to be changed).
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-04-13 12:31:20 UTC
This should be fixed with genkernel 3.3.11a or higher.