Perl error

Gilles Espinasse g.esp at free.fr
Thu Nov 13 01:53:21 PST 2008


Selon Tobias Gasser <lfs at ebp-gasser.ch>:

> im sticking with perl 5.10.0 (chapter 6.26)
>
>
> ** log stdout:
> cc  -o miniperl \
> 	    `echo   gv.o toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o
> reentr.o mro.o hv.o av.o perl.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 mathoms.o
> locale.o pp_pack.o pp_sort.o  | sed 's/ op.o / /'` \
> 	    miniperlmain.o opmini.o
>
>
> ** log stderr:
> pp.o: In function `Perl_pp_int':
> pp.c:(.text+0x9e24): undefined reference to `floor'
> pp.c:(.text+0x9eb1): undefined reference to `ceil'
> pp.o: In function `Perl_pp_sin':
> pp.c:(.text+0xa0d5): undefined reference to `sin'
> pp.c:(.text+0xa191): undefined reference to `sqrt'
> pp.c:(.text+0xa22f): undefined reference to `cos'
> pp.c:(.text+0xa247): undefined reference to `log'
> pp.c:(.text+0xa25f): undefined reference to `exp'
> pp.o: In function `Perl_pp_atan2':
> pp.c:(.text+0xa3e0): undefined reference to `atan2'
> pp.o: In function `Perl_pp_modulo':
> pp.c:(.text+0xc1fa): undefined reference to `floor'
> pp.c:(.text+0xc25b): undefined reference to `fmod'
> pp.c:(.text+0xc430): undefined reference to `floor'
> pp.o: In function `Perl_pp_pow':
> pp.c:(.text+0xc714): undefined reference to `pow'
> pp_pack.o: In function `S_pack_rec':
> pp_pack.c:(.text+0x3dad): undefined reference to `floor'
> pp_pack.c:(.text+0x3de1): undefined reference to `floor'
> collect2: ld returned 1 exit status
> make: *** [miniperl] Error 1
>
>
>
>
> i really have no clue what happens. possibly missing a library, but i
> can't see which and/or why. i'm shure to have followed the book except
> CFLAGS="-O3 -march=i486"
>
You could look at http://www.gossamer-threads.com/lists/perl/porters/205466
That's because your machine is 64b, has /lib64 and configure script fail to
handle properly your case.

Gilles



More information about the lfs-dev mailing list