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]

# 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.