Error using dlopen(), dlsym() in XServer
Adam Jackson
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
> culprits.
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
interface.
- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20050921/c02df68f/attachment.pgp>
More information about the xorg
mailing list