Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Building Perl 5.10 failure

by tqisjim (Beadle)
on Mar 15, 2013 at 13:38 UTC ( #1023695=perlquestion: print w/ replies, xml ) Need Help??
tqisjim has asked for the wisdom of the Perl Monks concerning the following question:

Hello. I am trying to build Perl 5.10 on my machine, Ubuntu 12.04 32bit. I can build other versions, such as 5.8, 5.12, 5.14, and 5.16. Here is the output:
cc -fstack-protector -L/usr/local/lib -o miniperl \ gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reent +r.o mro.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 mathoms.o locale.o pp_pack.o p +p_sort.o \ miniperlmain.o opmini.o perlmini.o pp.o: In function `Perl_pp_pow': pp.c:(.text+0x29f4): undefined reference to `pow' pp.o: In function `Perl_pp_modulo': pp.c:(.text+0x33b0): undefined reference to `floor' pp.c:(.text+0x33d7): undefined reference to `floor' pp.c:(.text+0x36be): undefined reference to `fmod' pp.o: In function `Perl_pp_atan2': pp.c:(.text+0x7e4f): undefined reference to `atan2' pp.o: In function `Perl_pp_sin': pp.c:(.text+0x7fc4): undefined reference to `sin' pp.o: In function `Perl_pp_int': pp.c:(.text+0x8431): undefined reference to `floor' pp.c:(.text+0x8451): undefined reference to `ceil' pp.o:(.rodata+0x164): undefined reference to `cos' pp.o:(.rodata+0x168): undefined reference to `sin' pp.o:(.rodata+0x16c): undefined reference to `sin' pp.o:(.rodata+0x170): undefined reference to `exp' pp.o:(.rodata+0x174): undefined reference to `log' pp.o:(.rodata+0x178): undefined reference to `sqrt' pp_pack.o: In function `S_pack_rec': pp_pack.c:(.text+0x30ea): undefined reference to `floor' pp_pack.c:(.text+0x310c): undefined reference to `floor' pp_pack.c:(.text+0x3128): undefined reference to `floor' collect2: ld returned 1 exit status make: *** [miniperl] Error 1
I always run ./Configure -des . Can anyone tell me if this version has special requirements? Thanks! Jim

Comment on Building Perl 5.10 failure
Download Code
Re: Building Perl 5.10 failure
by Tux (Monsignor) on Mar 15, 2013 at 13:52 UTC

    You are missing the math library (-lm).

    But WHY are you building such an ancient version? perl-5.16.3 is out. I see no reason to use 5.10.1.


    Enjoy, Have FUN! H.Merijn

      Personally I've got one version of each stable line from 5.6.x to 5.16.x for testing purposes. I do nearly all development on 5.16.2 though. (I haven't seen a compelling reason to go 5.16.3 given that 5.18.0 will be out Real Soon Now.)

      package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

        I have over 100 versions of perl on my laptop starting with perl1 and including all development releases. When you do so - like you - to test (your own) stuff, one might be expected to have enough experience to recognize build errors and fix them where appropriate. For all others, there is Devel::PatchPerl if one really needs a historic build for whatever purpose,

        The OP did not mention a single reason for building a perl so old.


        Enjoy, Have FUN! H.Merijn
Re: Building Perl 5.10 failure
by tobyink (Abbot) on Mar 15, 2013 at 13:57 UTC

    I've successfully built Perl 5.10.1 on Ubuntu 12.10 32-bit via App::perlbrew.

    If you don't want to use perlbrew, then I'd suggest at least using Devel::PatchPerl to apply known fixes to the source tree before building it, though I can't say for sure whether any of them specifically solve the error you're getting.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1023695]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2014-12-27 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls