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 -lsocketOR$ CC stest.C -o stest -lsocketThe 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?"