Technical article 105760

The COFF link editor command idld(M) fails, giving errors about libraries that can't be found; Oracle7 fails to install on SCO OpenServer Release 5

OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

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 -lsocket
This will give the error:
i386ld test.o: can't find library libsocket.a

This 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.html
NOTES:    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)

From the Xinuos technical article database, record 105760. Reproduced with permission. The original is at www.sco.com/ta/105760, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.