[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Question building Perl-5.005.02



Hello - I'm trying to build the referenced package from Sunsite sources
(the version in SRPM wasn't up to what I needed), and I get two surprising
errors at library link time:
**************************************************************************
cc -L/usr/local/lib -o libperl.so.5.2 perl.o  gv.o toke.o perly.o op.o
regcomp.o
 dump.o util.o mg.o byterun.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 taint.o deb.o universal.o globals.o
perlio.o 
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x57): undefined reference to `main'
pp.o: In function `Perl_pp_pow':
pp.o(.text+0x1c0a): undefined reference to `pow'
pp.o: In function `Perl_pp_atan2':
pp.o(.text+0x4ad6): undefined reference to `atan2'
pp.o: In function `Perl_pp_sin':
pp.o(.text+0x4ba0): undefined reference to `sin'
pp.o: In function `Perl_pp_cos':
pp.o(.text+0x4c8c): undefined reference to `cos'
pp.o: In function `Perl_pp_exp':
pp.o(.text+0x4fcc): undefined reference to `exp'
pp.o: In function `Perl_pp_log':
pp.o(.text+0x50fd): undefined reference to `log'
pp.o: In function `Perl_pp_sqrt':
pp.o(.text+0x523e): undefined reference to `sqrt'
pp.o: In function `Perl_pp_pack':
pp.o(.text+0xa9d4): undefined reference to `floor'
pp.o(.text+0xab46): undefined reference to `floor'
make: *** [libperl.so.5.2] Error 1
**************************************************************************

1) Generic libm stuff not found:

Even though I identified "-lm" among the libraries to link, it doesn't
seem to be used.  If I re-enter the link command manually with a trailing
'-lm', then those are resolved. @#$!!

2) Missing 'main':

 -- Why is this in a library linkage anyway, and what should I do here? 

I'm running RH4.2 and libc5

TIA - mills

  John M. Mills, Senior Research Engineer -- john.mills at gtri.gatech.edu
  Georgia Tech Research Institute, Georgia Tech, Atlanta, GA 30332-0834
        Phone contacts: 404.894.0151 (voice), 404.894.6285 (FAX)
         "The cardinal virtues of a programmer are Laziness,
            Impatience, and Hubris." -- attr. Larry Wall