I'm trying to build libperl-5.8.0 as part of emerge -e world, after changing gcc versions and use flags.  However, I'm getting the following error when compiling.  Has anyone else come across this, or has anyone got any pointers to offer?  I have distcc installed, but the error still occurs with FEATURES="-distcc" MAKEOPTS="-j1".

          CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -march=athlon-xp -O3 -pipe -fomit-frame-pointer -Wall
gcc -o libperl.so.1.5.8 -L/usr/local/lib perl.o malloc.o gv.o toke.o perly.o op.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  -Wl,-soname -Wl,libperl.so.`echo libperl.so.1.5.8 | cut -d. -f3`
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
perl.o(.text+0x4c): In function `perl_alloc':
: undefined reference to `pthread_key_create'
perl.o(.text+0x62): In function `perl_alloc':
: undefined reference to `pthread_setspecific'
perl.o(.text+0xd4): In function `perl_alloc':
: undefined reference to `pthread_setspecific'
malloc.o(.text+0xef): In function `Perl_malloc':
: undefined reference to `pthread_getspecific'
malloc.o(.text+0x855): In function `Perl_mfree':
: undefined reference to `pthread_getspecific'
malloc.o(.text+0x8d7): In function `Perl_mfree':
: undefined reference to `pthread_getspecific'
malloc.o(.text+0xa04): In function `Perl_realloc':
: undefined reference to `pthread_getspecific'
malloc.o(.text+0xa88): In function `Perl_realloc':
: undefined reference to `pthread_getspecific'
malloc.o(.text+0xd9e): more undefined references to `pthread_getspecific' follow
util.o(.text+0x41a6): In function `Perl_set_context':
: undefined reference to `pthread_setspecific'
mg.o(.text+0x14f8): In function `.L327':
: undefined reference to `pthread_getspecific'
mg.o(.text+0x1d0e): In function `Perl_csighandler':
: undefined reference to `pthread_getspecific'
mg.o(.text+0x52a2): In function `Perl_sighandler':
: undefined reference to `pthread_getspecific'
reentr.o(.text+0x40c): In function `Perl_reentrant_retry':
: undefined reference to `pthread_getspecific'
sv.o(.text+0x9e4e): In function `Perl_newSVpvf_nocontext':
: undefined reference to `pthread_getspecific'
sv.o(.text+0xbdde): more undefined references to `pthread_getspecific' follow
sv.o(.text+0x10daa): In function `perl_clone':
: undefined reference to `pthread_setspecific'
pp.o(.text+0x2912): In function `Perl_pp_pow':
: undefined reference to `pow'
pp.o(.text+0x72a0): In function `Perl_pp_sin':
: undefined reference to `sin'
pp.o(.text+0x73e0): In function `Perl_pp_cos':
: undefined reference to `cos'
pp.o(.text+0x7840): In function `Perl_pp_exp':
: undefined reference to `exp'
pp.o(.text+0x79bc): In function `Perl_pp_log':
: undefined reference to `log'
pp.o(.text+0x9755): In function `Perl_pp_crypt':
: undefined reference to `crypt_r'
globals.o(.text+0x66): In function `Perl_printf_nocontext':
: undefined reference to `pthread_getspecific'
perlio.o(.text+0xd7): In function `PerlIO_debug':
: undefined reference to `pthread_getspecific'
perlio.o(.text+0xfd): In function `PerlIO_debug':
: undefined reference to `pthread_getspecific'
perlio.o(.text+0x3802): In function `PerlIO_importFILE':
: undefined reference to `pthread_getspecific'
perlio.o(.text+0x4070): In function `PerlIO_exportFILE':
: undefined reference to `pthread_getspecific'
perlio.o(.text+0x41ee): more undefined references to `pthread_getspecific' follow
collect2: ld returned 1 exit status
make: *** [libperl.so.1.5.8] Error 1


nightshade root # emerge info
Portage 2.0.49-r4 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.22)
=================================================================
System uname: 2.4.22 i686 AMD Athlon(tm) XP 2000+
distcc 2.10 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs distcc userpriv"
GENTOO_MIRRORS="ftp://mirror.internode.on.net/pub/gentoo http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/package-mask"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline arts tetex aalib bonobo svga ggi tcltk java guile X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla gphoto2 ldap cdr scanner 3dnow acpi doc dvd ethereal evms2 evo flash gtk2 imap ipv6 _javascript_ jikes joystick kerberos krb4 lcms maildir mbox oav pcap ppds samba sasl slp snmp socks5 src sse threads tiff usb videos wmf wxwindows xinerama xml xvid"

Chris

--
As long as the answer is right, who cares if the question is wrong?

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to