Operating System - HP-UX
1833780 Members
2037 Online
110063 Solutions
New Discussion

11.00 strange ld behaviour

 
Andrew Cunningham
Frequent Advisor

11.00 strange ld behaviour

I am getting ld messages such as .....
/usr/ccs/bin/ld: Unsatisfied shared library symbols:
first referenced in .sl (code)

Whay are they strange? Because
1. the symbols/functions are definitely defined , and should not be "unsattisfied" - guaranteed. If for example, the link was missing the object file, I would have got 100's of errors.

2. The "first referenced in" is a complete lie anyway. The .sl has no references to my classes

3. This is a straight port of a 10.2 C++ application that always linked without error on 10.2


I am running acc 03.34
I have installed the latest Quality Pack for 11.0

Andrew
2 REPLIES 2
Olav Baadsvik
Esteemed Contributor

Re: 11.00 strange ld behaviour

Hi,

First of all, check if you have the latest
patch for ld installed. It is PHSS_24303

You say you run aCC 03.34. I thought the
latest version was 03.33?

Make sure that everything you link in is
compiled on hp-ux 11.00. You can not
mix objects from 10.20 and 11.00.

If your application on 10.20 was written
for the old cfront c++, check the porting
guide to aCC

Regards
Olav
Andrew Cunningham
Frequent Advisor

Re: 11.00 strange ld behaviour

OK, I found the problem.

- I am using linker switch +vshlibunsats

- ld was right about the unsatisfied externals. They were from a FORTRAN library that needed to be compiled +uppercase.

- ld was wrong about where the unsatisfied externals were referenced from.

There appears to a bug in the way ld reports "vshlibunsats".

- The lastest aCC compiler is 3.34

Andrew