Error using dlopen(), dlsym() in XServer
ajax at nwnk.net
Wed Sep 21 09:54:59 PDT 2005
On Wednesday 21 September 2005 10:39, kartikay malhotra wrote:
> Dear peers,
> Can the problem be traced to Imakefile? Some C files in Xserver source
> code seemlessly use dlopen. They don't even bother to include dlfcn.h. So
> I'm positive the problem is due to the Makefile.
You can not use dlopen from loadable modules. Use the xf86Loader interface,
which is documented in programs/Xserver/hw/xfree86/doc/DESIGN (section 17.4),
and refer to the glide(4) driver for an example.
> As an aside, my original library files have ".a" extensions; corresponding
> compiled sources from Xorg have library files with ".so" extensions.
> *make*in the ../fb folder using local Makefile yields both
> *libfb.so* and *libfb.a *files. Are these different file formats the
Yes, we've changed module formats in 6.9. If your server was using libfb.so,
dlopen would have magically worked, but you should still use the Loader
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the xorg