develooper Front page | perl.perl5.porters | Postings from February 2013

[perl #59332] Perl 5.10 make problems - math.h references

From:
James E Keenan via RT
Date:
February 24, 2013 23:20
Subject:
[perl #59332] Perl 5.10 make problems - math.h references
Message ID:
rt-3.6.HEAD-31961-1361748025-841.59332-15-0@perl.org
On Fri Sep 26 05:22:53 2008, doughera wrote:
> On Fri, 26 Sep 2008, H.Merijn Brand wrote:
> 
> > On Thu, 25 Sep 2008 10:02:51 -0700, Nathan Reed (via RT)
> > <perlbug-followup@perl.org> wrote:
> > 
> > > To whom it may concern,
> > >      After running the Configure step and verifying that the 
> > > config.sh file had the appropriate information for the make step, I 
> > > ran the make step.  I am getting the following error:
> > > :
> > > gcc -L/usr/local/lib -L/usr/local/BerkeleyDB.4.2/lib -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
> > > Undefined                       first referenced
> > >   symbol                             in file
> > > cos                                 pp.o
> > > exp                                 pp.o
> > > log                                 pp.o
> > > pow                                 pp.o
> > > sin                                 pp.o
> > > ceil                                pp.o
> > > fmod                                pp.o
> > > sqrt                                pp.o
> > > atan2                               pp.o
> > > floor                               pp.o
> > 
> > You're missing the math library, not the include file. How did it not
> > find libm.a/libm.so/libm.sl?
> 
> > So, you're building for a 32bit perl, and you have chosen to answer the
> > questions, instead of choosing the default answers (I see no -de option)
> 
> Yes, that's what happened.  It's a reasonable thing to do, but for some 
> reason it's also a common thing for users to delete the list of 
> directories to search for libraries.
> 
> > >      libpth=/usr/local/lib /usr/ccs/lib
> 
> > So my guess is that you have entered '/usr/local/lib /usr/ccs/lib'
> > where Configure came with a much longer list of path elements, and
> > doing it that way, you've removed the default list.
> 
> Yes.  That's the culprit.  It's missing /usr/lib at the very least.
> 
> To fix this, you need to start at the very beginning all over again.  See 
> the section 
> 
>     =item Missing functions and Undefined symbols
> 
> in the INSTALL file for more information.
> 


H.Merijn Brand and Andy Dougherty appear to have given reasonable
responses to the original poster's problem, which appears to have been
at least partially self-induced.

I am therefore marking this ticket resolved.

Thank you very much.
Jim Keenan

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=59332



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About