Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52603 - libperl-5.8.x fail to compile with binutils-
Summary: libperl-5.8.x fail to compile with binutils-
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: Tom Gall (RETIRED)
Depends on: 52617
  Show dependency tree
Reported: 2004-05-31 11:18 UTC by Philippe Trottier (RETIRED)
Modified: 2004-07-13 20:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Trottier (RETIRED) gentoo-dev 2004-05-31 11:18:28 UTC
I have some troubles since I upgraded binutils- and binutils-

gcc is 3.4.0-r5
glibc is 2.3.3_pre20040529


gcc -o -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,`echo | cut -d. -f3`
/usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.0/../../../../lib64/crt1.o( undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [] Error 1

!!! ERROR: sys-devel/libperl-5.8.4 failed.
!!! Function src_compile, Line 206, Exitcode 2
!!! Unable to make
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
                $spitshell >>Makefile <<'!NO!SUBS!'
-       $(LD) -o $@ $(SHRPLDFLAGS) perl$(OBJ_EXT) $(obj) $(libs) -Wl,-soname -Wl,`echo $(LIBPERL) | cut -d. -f3`
+       $(LD) -o $@ $(SHRPLDFLAGS) perl$(OBJ_EXT) $(obj) $(libs) -shared -Wl,-soname -Wl,`echo $(LIBPERL) | cut -d. -f3`
                case "$osname" in
Comment 5 Philippe Trottier (RETIRED) gentoo-dev 2004-06-01 06:50:10 UTC
The problem originated in coreutils... -splat- close the coffin !