1833717 Members
1940 Online
110063 Solutions
New Discussion

Linking error

 
Gorka Juan
New Member

Linking error

When I link whith the cc compiler it returns this error message:

/usr/ccs/bin/ld: Unsatisfied symbols:
__nwa__FUi (code)
__nw__FUi (code)

What is wrong?
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: Linking error

Since you didn't bother to identify your OS, it's difficult to identify the library with certainty. Instead, I'll give you the general method to resolve linker problems.

1) cd /usr/lib (or in special case to other library locations)
2) nm lib* > /tmp/list

/tmp/list now contains a list of symbols along with the library in which they are found.

3) vi /tmp/list
4) search for a symbol; e.g. /__nwa_Fui/; when found then do a reverse search for "Symbols from", e.g. ?Symbols from? and that will display the library file.
5) Add that library to your ld (or cc) command and you should be fixed.
If it ain't broke, I can fix that.
Mark Grant
Honored Contributor

Re: Linking error

I can't be too sure here but I believe this is what you get when attempting to use a shared library built on HP-UX 10.20 with a HP-UX 11.* build. This isn't actually supported and the shared library needs to be re-built on 11.*
Never preceed any demonstration with anything more predictive than "watch this"
Umapathy S
Honored Contributor

Re: Linking error

Gorka,
Add that library which have the functions defined in your library path when linking.

Since I havnt seen these functions, I am not able to pinpoint which library/product it belongs to.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
ranganath ramachandra
Esteemed Contributor

Re: Linking error

as mark said, there is some library on the link line that was built on 10.20, as documented page 68 of this (old?) hpux faq :
http://h21007.www2.hp.com/dspp/files/unprotected/hpux/u_faqs.pdf

but i wonder if its a shared library that has references to these symbols, as the linker would not stop linking if weak unsats are left unresolved.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo