09-02-2011 03:30 AM
Having a problem when attempting to compile Perl 5.10.0/5.10.1 on an Itanium system.
Run the sh -Dprefix=/opt/perl-5.10.1 -Duse64bitall -Dcc=gcc -de which completes and then when I run a make I get the following error
gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.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 glob
als.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o \
miniperlmain.o opmini.o perlmini.o
ld: Unsatisfied symbol "cos" in file pp.o
ld: Unsatisfied symbol "exp" in file pp.o
ld: Unsatisfied symbol "log" in file pp.o
ld: Unsatisfied symbol "pow" in file pp.o
ld: Unsatisfied symbol "sin" in file pp.o
ld: Unsatisfied symbol "atan2" in file pp.o
ld: Unsatisfied symbol "floor" in file pp.o
ld: Unsatisfied symbol "frexp" in file sv.o
ld: Unsatisfied symbol "ceil" in file pp.o
ld: Unsatisfied symbol "fmod" in file pp.o
ld: Unsatisfied symbol "modf" in file pp_pack.o
ld: Unsatisfied symbol "sqrt" in file pp.o
collect2: ld returned 1 exit status
*** Error exit code 1
09-02-2011 08:19 AM
Why oh why are you trying to build a perl that is almost 4 years old. 5.10.0 was released Dec 2007. The current release is 5.14.1 and should build out of the box on all HP-UX versions from 10.20 up to 11.31. I know, I do so every day.
and my own site
Do you have a good reason to build your own (old) binary?
09-02-2011 05:47 PM
>do I need to add -lm in the configuration. What is -lm means?
>do I need give the "What libraries to use?" -lm?
-lm tells the linker to link in libm. I would have thought that was already there?
09-04-2011 09:28 PM
Client want to have 5.10.0, hence that i am trying build it.
Also i have tried with prebuilt binaries but it taking 32 bit as default and could not configure for 64 bit. So i trying to build 64 bit on my own.
09-04-2011 11:03 PM
The depots for 5.10.1 on my site include both 32bit and 64bit binaries. They are built with gcc-3.4.6.
The 5.10.0 binaries are (partly) built with gcc-4.2.2 which was not a very good gcc build.
If they still insist on 5.10.0, which is not a good sign, then you should check on your system if all that needs to be available for libm (the math library) is available, including! the header files.
Please specify the exact OS version you build on, so we could check what depot those are in.
09-06-2011 01:47 AM
This is the OS version
HP-UX suvsm01p B.11.23 U ia64 2592651913 unlimited-user license
This is the module model
ia64 hp server rx6600
Also, please let me know how to install 64 bit using depot.
09-06-2011 02:25 AM
# cd /tmp
# bzip2 -d perl-5.10.1-11.23-ia64.sd.bz
# swinstall -s /tmp/ perl-5.10.1-11.23-ia64.sd perl.perl5-64
# cd /tmp
# swinstall -s /tmp/ bzip2-1.0.6-11.23.sd bzip2