> I'm pretty sure the following isn't a hugs bug, but I can't find
> another appropriate email list.

Sounds like you're installing according to the instructions and it
ain't working.  I'd call that a bug - so this is the right place to
report it.

> When I try to install Hugs under Unix using the short version,
> i get the following error message
> 
> [johanj@pubhp]-: make install
>         [...]
>         gcc  hugs.o storage.o input.o static.o type.o compiler.o  plugin.o
> builtin.o machine.o output.o  -lm  -o hugs 
> collect2: ld returned 1 exit status
> /bin/ld: Unsatisfied symbols:
>    shl_findsym (code)
>    shl_load (code)
> *** Error code 1

Gosh, it's a while since we had a portability report like this.
Here's a couple of things to try.  Please let me know how you get on.

Short answer:

  Add -ldld to the LIBS line of the Makefile and try again.

  If that doesn't work and you're not using GreenCard, comment
  out the definition of HAVE_DL_H in config.h.

Long answer

shl is the shared-library library used to load .so files if you happen to be
using GreenCard.  

configure detected that you had dl.h on your machine (which suggests you're
using HPUX) so the compiled code calls the shl functions.

but configure didn't detect libdld.o (or .so or ....) on your machine
so the link step failed.

Possible explanations:

1) I messed up - maybe it's not called libdld?
2) HP messed up - maybe HP changed the name of the library on that 
   particular version of HPUX.
   (Which version are you using?  Do you have any of libdld, libdl, libshl?)
3) Your sysadmin messed up - maybe you have a very badly installed copy
   of HPUX.  (This happens - I've wasted lots of time chasing "portability
   problems" that were due to misinstalled compilers, libraries, header files,
   etc.)

Alastair


Reply via email to