Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 52603

Summary: libperl-5.8.x fail to compile with binutils-2.15.90.0.3
Product: Gentoo Linux Reporter: Philippe Trottier (RETIRED) <tchiwam>
Component: [OLD] Core systemAssignee: Tom Gall (RETIRED) <tgall>
Status: VERIFIED FIXED    
Severity: normal    
Priority: High    
Version: 2004.1   
Hardware: PPC64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 52617    
Bug Blocks:    

Description Philippe Trottier (RETIRED) gentoo-dev 2004-05-31 11:18:28 UTC
I have some troubles since I upgraded binutils-2.15.90.0.3 and binutils-2.15.91.0.

gcc is 3.4.0-r5
glibc is 2.3.3_pre20040529

=====================================

gcc -o libperl.so.1.5.8 -L/usr/local/lib perl.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/powerpc64-unknown-linux-gnu/3.4.0/../../../../lib64/crt1.o(.data.rel.ro.local+0x8): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [libperl.so.1.5.8] Error 1

!!! ERROR: sys-devel/libperl-5.8.4 failed.
!!! Function src_compile, Line 206, Exitcode 2
!!! Unable to make libperl.so
Comment 1 Philippe Trottier (RETIRED) gentoo-dev 2004-05-31 12:02:51 UTC
From tgall: this line misses the -shared ... Now tryiing to find how this thing libperl is making the makefile in the first place. then patch it.
Comment 2 Tom Gall (RETIRED) gentoo-dev 2004-05-31 20:37:24 UTC
As it turns out these two are related
Comment 3 Tom Gall (RETIRED) gentoo-dev 2004-05-31 20:44:17 UTC
fix for bug #51617 commited .. this one should be better now
Comment 4 Philippe Trottier (RETIRED) gentoo-dev 2004-05-31 22:44:37 UTC
this patch should do it, made for libperl-5.8.4, this is just an ugly swing in the the dark, it might break other stuff too ...


======================================================
--- Makefile.SH.orig    2004-06-01 08:41:56.445000648 +0300
+++ Makefile.SH 2004-06-01 08:42:50.167954592 +0300
@@ -511,7 +511,7 @@
        case "$useshrplib" in
        true)
                $spitshell >>Makefile <<'!NO!SUBS!'
-       $(LD) -o $@ $(SHRPLDFLAGS) perl$(OBJ_EXT) $(obj) $(libs) -Wl,-soname -Wl,libperl.so.`echo $(LIBPERL) | cut -d. -f3`
+       $(LD) -o $@ $(SHRPLDFLAGS) perl$(OBJ_EXT) $(obj) $(libs) -shared -Wl,-soname -Wl,libperl.so.`echo $(LIBPERL) | cut -d. -f3`
 !NO!SUBS!
                case "$osname" in
                aix)
Comment 5 Philippe Trottier (RETIRED) gentoo-dev 2004-06-01 06:50:10 UTC
The problem originated in coreutils... -splat- close the coffin !