Problem
The idld(M) COFF link editor command may fail giving errors about libraries that can't be found. Examples of such errors are:
i386ld <program name>: can't find library libsocket.a i386ld <program name>: can't find library libnsl_s.a
This causes problems when installing applications, such as Oracle, that use idld(M). (The above errors have been seen with Oracle version 7.3.2.)
The following simple program and linker commands demonstrate the problem (although the idld(M) utility is not usually used in this way).
The program:*/ test.c */
void main (void) {}Compiler and linker commands:# cc -otest.o -c test.c
# /bin/idld test.o -lsocketThis will give the error:i386ld test.o: can't find library libsocket.aThis problem is only seen on SCO OpenServer Release 5.0.4 and 5.0.5 systems, and is not an issue on earlier SCO releases.
Cause
This problem is caused by the idld(M) program failing to search the /usr/lib directory to find the required libraries. The program should perform the following search routines:
search all "-L" directories specified on the link line
search the "-YP" directory list specified on the link line
if "-YP" is not present on the link line then search the "-YL" directory specified on the link line
if "-YL" is not present on the link line then search /lib
search the "-YU" directory specified on the link line
if "-YU" is not present on the link line then search /usr/lib
The last step above is not being performed by the idld(M) program that is distributed with SCO OpenServer Release 5.0.4.
Solution
SCO Support Level Supplement (SLS) OSS459B, the COFF Linker Supplement for SCO OpenServer Release 5.0.4 and 5.0.5, provides a new version of idld(M). This SLS is available from:
http://www.sco.com/support/ftplists/OSR5list.htmlNOTES: Note that the SCO OpenServer 5.0.4 Development System COFF link
editor, ld(CP), also exhibits this problem. The idld(M) command
from SLS OSS459B can be used to replace the COFF ld(CP) binary.
In order to do this, copy the /bin/idld binary to the following
location:/opt/K/SCO/unixds/5.1.0Ha/usr/ccs/bin/coff/ld See also
idld(M), ld(CP)