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
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.
As it turns out these two are related
fix for bug #51617 commited .. this one should be better now
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)
The problem originated in coreutils... -splat- close the coffin !