Technical article 110171

OpenServer 5.0.5 reports "dynamic linker: symbol not found: dlopen" while running a binary that uses dynamic libraries.

OpenServer 5.0.5

Written · Last revised

Problem

A binary that uses dynamic libraries was built and run on SCO
OpenServer Release 5.0.5.  At runtime, an error similar to this
was displayed:
dynamic linker: <binaryname> : symbol not found: dlopen

Solution

To work around the problem, edit /usr/include/dlfcn.h, and add the following lines:

#define dlopen _dlopen
#define dlsym _dlsym
#define dlclose _dlclose
#define dlerror _dlerror
Then re-compile the binary.

These changes ensure backward compatibility of SCO OpenServer 5.0.5 code with previous versions.

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