Solaris 10 - Sun Studio 11 - libsocket.a static libraries

Dear Developers,

Appreciate your valulable time and help. I am not a developer, but my developer getting below error while compliation, and asking me to put static libraries ( libsocket.a libnsl.a ..et..etc). I am aware that Solaris10 does not have a static lib (?).

The errors from compiler were

ld: fatal: library -lnsl: not found

ld: fatal: library -lsocket: not found

ld: fatal: File processing errors. No output written to micro_inetd

make: *** [micro_inetd] Error 1

-

Highly appreciate if you help.

-Anand

[573 byte] By [OnlySource] at [2007-11-26 9:26:09]
# 1
That's right. Solaris 10 doesn't provide static libraries for anyof these things. Can you explain why you can't dynamically link your application? Ask the developer to remove the -Bstatic flag and seeif it links.
ChrisQuenelle at 2007-7-7 0:04:12 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

Solarsi 10 does not provide static versions of any system library. You must allow the program to link with the dynamic libraries.

The reason for dropping static libraries is that we can't be sure that a program linked iwth a static system library will run on a Solaris installation that is not identical to the one on which it was created. (Not just the same Solaris version, but with all the same patches.)

A program linked with dynamic system libraries will run on any Solaris installation that is the same version or later than the system on which is was created.

clamage45 at 2007-7-7 0:04:12 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
Thank you, the '-Bstatic' flag worked well. Developers are now happy :-)
OnlySource at 2007-7-7 0:04:12 > top of Java-index,Development Tools,Solaris and Linux Development Tools...