Go to the first, previous, next, last section, table of contents.


dlopen

(This section adapted from the file `dlsym.c' in the X distribution.)

The Xlib library uses the standard C function wcstombs. Under SunOS 4.1, wcstombs uses the `dlsym' interface defined in `libdl.so'. Unfortunately, the SunOS 4.1 distribution does not include a static `libdl.a' library.

As a result, if you try to link an X program statically under SunOS, you may get undefined references to dlopen, dlsym, and dlclose. One workaround is to include these definitions when you link:

void *dlopen() { return 0; }
void *dlsym()  { return 0; }
int dlclose()  { return -1; }

These are contained in the `dlsym.c' file in the MIT X distribution.


Go to the first, previous, next, last section, table of contents.