A linker error appears every time I try to emerge perl or libperl Reproducible: Always Steps to Reproduce: 1. emerge perl or emerge libperl Actual Results: The following error appears every time I try to emerge perl: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../crt1.o(.text+0x18): In function '_start': : undefined reference to 'main' collect2: ld returned 1 exit status make: *** [libperl.so.1.5.8] Error 1 emerging perl instead of libperl produces the same linker error followed by some other perl-related linker errors. Gentoo Base System version 1.4.16 Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808- r1, 2.6.10-gentoo-r6:-=M-A-C!=- i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 8 2005, 17:25:32 )] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe" 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/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://distro. ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow acpi alsa apm arts avi berkdb bitmap-fonts cdparanoia cdr crypt dio emboss encode ffmpeg font-server foomaticdb gdbm gif gpm gtk2 imlib ipv6 jpeg libg++ libwww mad matroska mikmod mmx motif mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl spell ssl svga tcpd type1-fonts xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
re-emerging glib, glibc, gcc,... did not help
Maybe I should add the compiler call that produces the error: i686-pc-linux-gnu-gcc -o libperl.so.1.5.8 -L/usr/local/lib perl.o malloc.o gv.o toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o reentr.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o locale.o pp_pack.o pp_sort.o -lnsl -ldl -lm -lcrypt -lutil -lc -lbsd -Wl,-soname -Wl,libperl.so.`echo libperl.so.1.5.8 | cut -d. -f3` /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../crt1.o(.text+0x18): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status make: *** [libperl.so.1.5.8] Error 1
Is it possible you ccache needs to be cleaned up?
many a month, closing.