Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perl under HPUX 11.00 #1000

Closed
p5pRT opened this issue Dec 28, 1999 · 3 comments
Closed

perl under HPUX 11.00 #1000

p5pRT opened this issue Dec 28, 1999 · 3 comments

Comments

@p5pRT
Copy link

p5pRT commented Dec 28, 1999

Migrated from rt.perl.org#1950 (status was 'resolved')

Searchable as RT1950$

@p5pRT
Copy link
Author

p5pRT commented Dec 28, 1999

From Brooksct@pobox.HBCS.Org

  I have installed the Gnu software gcc, make, binutils, flex, and bison I got
from the HP Software Porting and Download Center successfully. I have
made certain that the gcc binaries and includes and the gnu make bin
directory are in my path before any HP binaries or includes.

  I have downloaded source for the latest stable perl (5.005_3) and
unzipped/untarred it. I have run Configure and aswered the questions as
appropriately as I know how. I checked all the tough questions rather
thoroughly, and I specified the gcc compiler since I cannot afford the HP
ANSI C environment.

  The make fails after generating a fairly large error stream; mostly warnings
that there are conflicting definitions for the functions memcmp, memset, and
memcpy. The last set of errors looks like​:

  gcc -o miniperl miniperlmain.o libperl.a
/usr/bin/ld​: Unsatisfied symbols​:
  cos (code)
  frexp (code)
  sin (code)
  floor (code)
  exp (code)
  sqrt (code)
  modf (code)
  atan2 (code)
  log (code)
  pow (code)
collect2​: ld returned 1 exit status
*** Error exit code 1

  If you have any suggestions or recommendations I would greatly appreciate
them! I can supply copies of the Makefile, etc. if you require.

Thanks,
--Charlie

PS- This machine is running the 32-bit version of HPUX 11.00 but I plan to
upgrade to 64-bit now that HP field service has fixed the hardware flaw that
was preventing me from doing so earlier.
--CTB

@p5pRT
Copy link
Author

p5pRT commented Dec 29, 1999

From @doughera88

On Tue, 28 Dec 1999, Charlie Brooks wrote​:

  gcc   \-o miniperl miniperlmain\.o libperl\.a

/usr/bin/ld​: Unsatisfied symbols​:
cos (code)

[ etc. ]

The problem is that you didn't specify any libraries to include.
When Configure ran, it should have suggested a list of extra libraries,
such as -lm, to include. You should have just accepted the default list.

Your best bet is to

  make realclean
  rm config.sh

and start over again.

The wording of the relevant prompt has been clarified in the development
versions of perl to try to avoid this confusion in the future.

Hope this helps,

  Andy Dougherty doughera@​lafayette.edu
  Dept. of Physics
  Lafayette College, Easton PA 18042

@p5pRT
Copy link
Author

p5pRT commented Dec 29, 1999

From [Unknown Contact. See original ticket]

Hope this isn't too stupid; I'm not a HPUX guru (but I may end up one if I don't
bleed all my brain cells out my ears first).

Neither am I. But try keeping your brain cells​: put in your ears corks :-)

I have installed the Gnu software gcc, make, binutils, flex, and bison I got
from the HP Software Porting and Download Center successfully. I have
made certain that the gcc binaries and includes and the gnu make bin
directory are in my path before any HP binaries or includes.

Fine.

I have downloaded source for the latest stable perl (5.005_3) and
unzipped/untarred it. I have run Configure and aswered the questions as
appropriately as I know how. I checked all the tough questions rather
thoroughly, and I specified the gcc compiler since I cannot afford the HP
ANSI C environment.

Still fine.

The make fails after generating a fairly large error stream; mostly warnings
that there are conflicting definitions for the functions memcmp, memset, and
memcpy. The last set of errors looks like​:

It looks as there is a twist in include files. I don't know why. Maybe harmless,
maybe not.

  gcc   \-o miniperl miniperlmain\.o libperl\.a

/usr/bin/ld​: Unsatisfied symbols​:
cos (code)
frexp (code)
sin (code)
floor (code)
exp (code)
sqrt (code)
modf (code)
atan2 (code)
log (code)
pow (code)
collect2​: ld returned 1 exit status
*** Error exit code 1

This one is easy​: you're missing the math library. Add '-lm' to the
library list.

If you have any suggestions or recommendations I would greatly appreciate
them! I can supply copies of the Makefile, etc. if you require.

Hope it helps.

François

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant