Operating System - HP-UX
1751837 Members
4919 Online
108782 Solutions
New Discussion юеВ

Re: Can't find library ABI for lnsl_s on HP-UX 11.31

 
George Wann
New Member

Can't find library ABI for lnsl_s on HP-UX 11.31

Would anyone kindly provide information about this issue?

When I compile our customized programs on HP-UX 11.11, the compiler works without any error. However, when we switched to 11.31 (both rp and rx platform), we get the error messages as following:

ld├п┬╝ Can't find library or mismatched ABI for -lnsl_s

Does anyone have any idea to solve it?

Environmental info,
HP rx2600
HP-UX 11.31
Informix 11.5
Tai-Shin System

Part of our makefile as following:
----
LIBSQL = -L $(INFORMIXDIR)/lib \
-L $(INFORMIXDIR)/lib/esql \
$(INFORMIXDIR)/lib/esql/libsql.a \
$(INFORMIXDIR)/lib/esql/libos.a \
$(INFORMIXDIR)/lib/libasf.a \
$(INFORMIXDIR)/lib/esql/libgen.a \
$(INFORMIXDIR)/lib/esql/libgls.a \
$(INFORMIXDIR)/lib/esql/libos.a \
$(INFORMIXDIR)/lib/esql/libgen.a \
$(INFORMIXDIR)/lib/esql/libsql.a \
-lnsl_s -lm -lxnet -lsec
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Can't find library ABI for lnsl_s on HP-UX 11.31

>ld: Can't find library or mismatched ABI for -lnsl_s

(You need a newer ld where the above message has been split into two.)

Where do you think libnsl_s should be?
Is it in one of your -L paths?

I don't see +DD64, so do you have a 32 bit version of libnsl_s on those paths?
Dennis Handly
Acclaimed Contributor

Re: Can't find library ABI for lnsl_s on HP-UX 11.31

On Integrity, I see libnsl_s.so only in /usr/lib/hpux32.
It is part of the Streams.STREAMS-MIN fileset.
George Wann
New Member

Re: Can't find library ABI for lnsl_s on HP-UX 11.31

Hi, Dennis,

I'm new to HP-UX. Could you tell it more?

Where to get the Streams.STREAMS-MIN fileset? And, if I get and install the fileset on HP-UX IA-64 platform, any modification for makefile is needed?

Thanks for your quick response.
Dennis Handly
Acclaimed Contributor

Re: Can't find library ABI for lnsl_s on HP-UX 11.31

>Where to get the Streams.STREAMS-MIN fileset?

On your installation DVDs. What does "swlist Streams" show?

>if I get and install the fileset on HP-UX IA-64 platform, any modification for makefile is needed?

No, the shlib is in the default path.