[uClibc] compile perl-5.8.0 with uclibc
Michael Rowley
os2doc at bellsouth.net
Mon Jul 7 01:37:28 UTC 2003
On Sat, 2003-07-05 at 13:32, Erik Andersen wrote:
> On Sat Jul 05, 2003 at 12:30:00AM -0400, Michael Rowley wrote:
> > Hello!
> >
> > Problems compiling perl5.8.0. I am not using buildroot, just compiling
> > with a modified path as per the uclibc install file, and it has worked
> > well to now, but I can't get perl to compile. I applied the patch I
> > found in the archives for perl, but it didn't help. I get the following
> > error:
> >
> > cc -o miniperl \
> > miniperlmain.o opmini.o libperl.a
> > libperl.a(pp.o)(.text+0x170a): In function `Perl_pp_pow':
> > : undefined reference to `pow'
> > libperl.a(pp.o)(.text+0x54d9): In function `Perl_pp_sin':
> > : undefined reference to `sin'
> > libperl.a(pp.o)(.text+0x55e5): In function `Perl_pp_cos':
> > : undefined reference to `cos'
> > libperl.a(pp.o)(.text+0x58c5): In function `Perl_pp_exp':
> > : undefined reference to `exp'
> > libperl.a(pp.o)(.text+0x5a07): In function `Perl_pp_log':
> > : undefined reference to `log'
> > collect2: ld returned 1 exit status
> > make: *** [miniperl] Error 1
> >
> > Any ideas/assistance? I need perl for my system to work... :(
>
> As a guess, it looks like you have failed to link with libm.
> Tried adding -lm?
>
> -Erik
No, as stupid as this sounds, it was a problem with the path to where
the code was.... I had a directory with a space, and the perl config
script read it as 2 files... Changed the path, fixed the problem.
One of those that makes you want to bang your head against the
keyboard... :|
Michael.
More information about the uClibc
mailing list