When I try to build an initrd with genkernel, it fails at the following step: /var/tmp/genkernel/diet/lib-i386/libc.a(logging.o)(.text+0x644): In function `setlogmask': : undefined reference to `connect' /var/tmp/genkernel/diet/lib-i386/libc.a(logging.o)(.text+0x708): In function `setlogmask': : undefined reference to `socket' collect2: ld returned 1 exit status I'm including the complete genkernel.log. Reproducible: Always Steps to Reproduce: 1. genkernel --udev initrd 2. 3. Actual Results: See the attached log.
Created attachment 41728 [details] genkernel.log of the failure
Your bug report is missing all the good stuff like 'emerge info' and telling everybody what versions of what your trying to build.
emerge info: Portage 2.0.51_rc9 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8-gentoo-r7 i686) ================================================================= System uname: 2.6.8-gentoo-r7 i686 AMD Athlon(tm) XP 3200+ Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" 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/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/lebel/Portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aac aim alsa apm avi berkdb bitmap-fonts bootsplash bzlib cdparanoia cdr crypt cups curl curlwrappers divx4linux dvd dvdr dvdread encode esd faac faad fftw flac foomaticdb gd gif gimpprint gnome gpm gstreamer gtk gtk2 hal iconv imagemagick imap java jikes joystick jpeg libg++ libwww lzo lzw lzw-tiff mad maildir matroska mikmod mmx motif mozilla moznoirc mozplaintext mozsvg mp3 mpeg ncurses network nls nptl oggvorbis opengl oscar pam pcre pdflib perl png python quicktime readline recode samba sasl sdl slang smime spell sse ssl svg svga tcpd tiff truetype usb vhosts vim-with-x wxwindows x86 xine xml2 xmms xprint xv xvid xvmc zlib linguas_fr linguas_en" Kernel: gentoo-dev-sources-2.6.8-r8
Well, additional note: this isn't dietlibc per se that's causing the error. Process barfs when compiling rmmod, modprobe and all the other module-init-tools components. The lack of connect and socket seems to be the cause of the error.
Want to try genkernel 3.0.2h? Just copy genkernel-3.0.2g.ebuild to genkernel-3.0.2h.ebuild and then run ebuild /usr/portage/sys-kernel/genkernel/genkernel-3.0.2h.ebuild digest and then emerge it. Thanks!
OK, never mind. Looks like for some odd reason, the dietlibc that was in my genkernel's bincache was compiled without all the fonction calls. Now, after making sure all the cache where removed, I restarted my genkernel and it went thru just fine. I'm closing this bug.