1833405 Members
2917 Online
110052 Solutions
New Discussion

Compiling Error

 
Jim Adamson
Frequent Advisor

Compiling Error

Hi,
Can anyone help. I have been asked to look into a compiling promlem but know nothing about software development.

A researcher is trying to compile some HP Fortran 90 code into an applicatiion called Sesam Proban (used in offshore engineering).

Running the Makefile results in the error message -

'Unsatisfied symbols:
libliom (code)
funclb (code)
*** Error exit code 1'

Funclb is a directory under the Seam home directory ie $SESAM_HOME/proban/funclb. This contains various makefiles and fortran code. The researcher says he has compiled fortran into proban successfully before but is stuck with this current message.

Any pointers would be greatfully received.
thanks,
Jim
Oh dear
9 REPLIES 9
Jim Adamson
Frequent Advisor

Re: Compiling Error

I should add that we are using HPUX 10.20.

thanks,
Jim
Oh dear
Deepak Extross
Honored Contributor

Re: Compiling Error

Can you post your makefile?
Jim Adamson
Frequent Advisor

Re: Compiling Error

Deepak,
I have attached the Makefile
Thanks
Jim
Oh dear
Deepak Extross
Honored Contributor

Re: Compiling Error

Does the file
/eng/apps1/sesam/proban/lib/funclb.a
exist?

Also, as the comments in the makefile say, make sure that PHSS 11669 is installed.
Jim Adamson
Frequent Advisor

Re: Compiling Error

Deepak,
Thanks for taking a look at the makefile - funclb.a is installed at /eng/apps1/sesam/proban/lib though it had a permissions of 600 (read/write ofr the owner). I have changed this to 755.

Patch PHSS_11669 had been superseded by patch PHSS_21110 which is installed.

I have attached the full errorlog message for you to look at.

thanks for your help.
Jim
Oh dear
Helen French
Honored Contributor

Re: Compiling Error

Helen French
Honored Contributor

Re: Compiling Error

Steven Gillard_2
Honored Contributor

Re: Compiling Error

Do the two unsatisfied symbols appear in any of the object files you are trying to link together? Use the 'nm' command to dump the symbol tables in all your .o and .a files, eg:

$ nm user.a | grep funclb
$ nm funclb.a | grep funclb

etc. This will at least tell you which object is referencing these symbols.

Perhaps there is another library you need to be linking with that contains these routines?

Regards,
Steve
Deepak Extross
Honored Contributor

Re: Compiling Error

1. Can you verify that all the following exist and have read permission for the ID from which you are compiling:
/eng/apps1/sesam/proban/lib/proban.o
/eng/apps1/sesam/proban/lib/user.a
/eng/apps1/sesam/proban/lib/funclb.a
/usr/lib/Motif1.2/libMrm.a
/usr/lib/Motif1.2/libXm.a
/usr/lib/X11R5/libXt.sl
/usr/lib/X11R5/libX11.sl

2. As Steven suggests, run 'nm' or 'strings' on each of these and grep for funclb to make sure funclb will be found. Ditto for liblim.