Technical article 109460

"Dynamic linker" error when running a binary compiled with the UDK on another version of OpenServer.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4

Written · Last revised

Problem

I have compiled my program using the UnixWare/OpenServer Development
Kit (UDK) 7.0.0 on my SCO OpenServer Release 5.0.4 system.  Now I
want to run the binary on either the 5.0.0 or 5.0.2 version of the
operating system.

When I run it, I get an error similar to the following:

dynamic linker: ./random: symbol not found: random
Killed

Cause

At run time, the binary calls for certain libraries that it isn't finding on the system. The UDK Compatibility Module for OpenServer needs to be installed.

Solution

Insert the UnixWare/OpenServer Development Kit CD-ROM in the CD-ROM
device.  Install the OSRcompat package with the following command:
$ pkgadd -d /dev/cd0 OSRcompat

Once installed, you can run the binary on the system without having any dynamic linker errors.

See also

ta100872, "Using dlopen() on my own DLL fails with 'relocation error: symbol not found'."

ta100781, "I get a relocation error when loading my DLL using dlopen(S)."

From the Xinuos technical article database, record 109460. Reproduced with permission. The original is at www.sco.com/ta/109460, 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.