1752633 Members
5767 Online
108788 Solutions
New Discussion юеВ

SOCKETS!

 
SOLVED
Go to solution
Scott McDade
Frequent Advisor

SOCKETS!

I an trying to get a C++ program running on 10.20 that has been running on a Sun workstation running Solaris 5.6 (CShell).

I am running into problems linking functions that appear to be defined in the "libsocket.a" and "libnsl.a" libraries. Does anyone know anything about these 2 libs and if so where I can find them?
Keep it Simple!~
4 REPLIES 4
Roger Baptiste
Honored Contributor

Re: SOCKETS!



I don''t find both the files
in my 10.20 box.
But, in the 11.00 system,
libnls.a file is under
/usr/lib as well as
/usr/lib/pa20_64 directories
The other library file is
not there on the system.

-raj
Take it easy.
Sridhar Bhaskarla
Honored Contributor

Re: SOCKETS!

There is libnsl.a in hp. YOu can probably do an ar -x of libnsl.a to see what object files are there and if they help you.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Klaus Crusius
Trusted Contributor

Re: SOCKETS!


You don't need libsocket.* on hpux.
libnsl.* contains extension araound rpc and NIS.

Klaus
There is a live before death!
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: SOCKETS!

Hi Scott:

You have libnsl but not libsocket. My standard technique for finding missing symbols is to cd to /usr/lib and then do an nm *.sl (or *.a) > /var/tmp/list. You can then examine /var/tmp/list using grep or vi to find the symbols you are looking for. When you find them, go up a few lines (or a few tens of lines) and there will be a line indicating which file the symbol is found within.

I do assume you are running the aC++ compiler.


If it ain't broke, I can fix that.