Technical article 114882

After installing RS506A, my application fails to link with unresolved symbols in libsocket.a

OpenServer 5.0.6

Written · Last revised

Problem

Since installing Release Supplement RS506A on my OpenServer 5.0.6 system, I can no longer build binaries, which use the static libsocket archive. When I issue either of the commands:

$ cc stest.c -o stest -lsocket
OR
$ CC stest.C -o stest -lsocket

The link phase fails with errors similar to the following:

undefined                       first referenced
 symbol                             in file
inet_aton                           stest.o
herror                              stest.o
dn_expand                           /usr/lib/libsocket.a
h_errno                             /usr/lib/libsocket.a
__dn_skipname                       /usr/lib/libsocket.a
_getshort                           /usr/lib/libsocket.a
_res                                /usr/lib/libsocket.a
__res_init                          /usr/lib/libsocket.a
__res_search                        /usr/lib/libsocket.a
__res_query                         /usr/lib/libsocket.a
inet_addr                           /usr/lib/libsocket.a
inet_ntoa                           /usr/lib/libsocket.a
i386ld fatal: Symbol referencing errors. No output written to stest

Cause

RS506A has introduced a new version of libsocket, and some symbols have been moved to a new library called "libresolv".

Cross referencing issues between these libraries, which cannot be handled by the COFF linker, have been identified and may cause linking to fail in the manner described above.

Solution

This has been reported to SCO Engineering.

A possible workaround to the problem could be to recompile the application source using ELF objects (cc -b elf ...), and the dynamic shared libraries.

NOTES:    The OpenServer Development System's C++ front end will not allow the
          use of dynamic shared objects.

ELF binaries, which use the shared object /usr/lib/libsocket.so.1, should still work, as the new libsocket library has been introduced as libsocket.so.2.

Binaries built with the UnixWare and OpenServer Development Kit (UDK) should not be affected.

UPDATE:   oss640a has been reported to fix this problem on OpenServer 5.0.6 with
          RS506a installed using the OpenServer Development System.

See also

ta#114142, "What is Release Supplement 5.0.6a and where can I get it?"

From the Xinuos technical article database, record 114882. Reproduced with permission. The original is at www.sco.com/ta/114882, which is reachable but blocked from search engines.

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.