Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libperl problem PPC64 G5 (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
asv
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2003
Posts: 138
Location: State College, PA United States

PostPosted: Fri Jun 04, 2004 11:15 pm    Post subject: libperl problem PPC64 G5 (solved) Reply with quote

I'm trying out the latest ppc64 ISO's on my dual 2.0 G5. Stage 1 went without a hitch but stage2 has been problematic. I've ran in this problem when emerging libperl:

Code:

       CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -O3 -mcpu=power4 -mtune=power4 -mabi=altivec -maltivec -fno-strict-aliasing -pipe  -Wall
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-lib/powerpc64-unknown-linux-gnu/3.3.3/../../../../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.2 failed.
!!! Function src_compile, Line 206, Exitcode 2
!!! Unable to make libperl.so


Any suggestions?


Last edited by asv on Sun Jun 06, 2004 2:53 am; edited 1 time in total
Back to top
View user's profile Send private message
tobybot11
n00b
n00b


Joined: 21 Nov 2002
Posts: 4

PostPosted: Sat Jun 05, 2004 12:02 am    Post subject: current hack to fix this problem Reply with quote

I've been working on this one for the whole afternoon
on an IBM pSeries 630.

Added -Wl,-shared to the link line.

Had to go back to the patch for libperl and fix it there for the libperl to emerge correctly.

Not sure this is the best way but it worked.

Toby
Back to top
View user's profile Send private message
asv
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2003
Posts: 138
Location: State College, PA United States

PostPosted: Sat Jun 05, 2004 12:57 am    Post subject: Re: current hack to fix this problem Reply with quote

tobybot11 wrote:
I've been working on this one for the whole afternoon
on an IBM pSeries 630.

Added -Wl,-shared to the link line.

Had to go back to the patch for libperl and fix it there for the libperl to emerge correctly.

Not sure this is the best way but it worked.

Toby


Sorry to bother you, but is there any chance you can give me some step-by-step instructions on how to go about fixing this? I don't know anything about the link line or where to edit it.

Thanks so much!
Back to top
View user's profile Send private message
tobybot11
n00b
n00b


Joined: 21 Nov 2002
Posts: 4

PostPosted: Sat Jun 05, 2004 1:05 am    Post subject: Re: current hack to fix this problem Reply with quote

In /usr/portage/sys-devel/libperl/files there should be a .patch file for the libperl you are trying to build. Edit this file libperl-5.8.2-create-libperl-soname.patch and add the following

-Wl,-shared

to the end of the line that starts with

+ $(LD) .....

Then try starting the emerge again with..

emerge libperl


Toby
Back to top
View user's profile Send private message
JimH
n00b
n00b


Joined: 05 Jun 2004
Posts: 2

PostPosted: Sat Jun 05, 2004 1:23 am    Post subject: libperl undefined issues Reply with quote

Hello All,

I had the very same issues with libperl. As it turned out for me, the 'uname -a' calls were seg faulting confusing perl build.

I rebuilt the core utils (from generic source as I was bootstrapping and had no auto config scripts), and all went well. Just finished a clean bootstrap using CFLAGS="-O3 -pipe -mcpu=power4 -mtune=power4 -maltivec mabi=altivec". Other than some typos every thing built without issue.

Build was flawless using bootsrap.sh and flags above:
gcc-3.4.0
glibc-2.3.3_pre20040529
binutils-2.15.91.0.1

mac-fdisk-0.1-r2 needs the mac-fdisk-ppc64.patch commented out to build
the problem with uname is a missing right banana on line 182 of uname.c (ver. 5.2.1)


xfree building now.

had some trouble building kernel 2.6.7-r0 so just copied old stuff in for now.

Have a good weekend,

Jim

2x2gig
9800
Back to top
View user's profile Send private message
asv
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2003
Posts: 138
Location: State College, PA United States

PostPosted: Sat Jun 05, 2004 1:27 am    Post subject: Re: current hack to fix this problem Reply with quote

tobybot11 wrote:
In /usr/portage/sys-devel/libperl/files there should be a .patch file for the libperl you are trying to build. Edit this file libperl-5.8.2-create-libperl-soname.patch and add the following

-Wl,-shared

to the end of the line that starts with

+ $(LD) .....

Then try starting the emerge again with..

emerge libperl


Toby


Worked Like a Charm! Thanks Again!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum