Error using dlopen(), dlsym() in XServer

kartikay malhotra kartikay.malhotra at gmail.com
Wed Sep 21 07:39:06 PDT 2005


 Dear peers,
  I want to use dlopen(), dlsym(), etc. in select files of XServer. I'm
particularly stuck with files in the *..xc/programs/Xserver/fb* folder. The
files compile correctly; however at startup, using either *startx* or *init
5, gnome *does not load up. Instead the following message gets displayed on
the console:
 XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
 after 0 requests (0 known processed) with 0 events remaining
 This very same approach (ie, using dlopen(), dlsym() ) works fine with Xlib
functions.
 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.
 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.
 I know I pose a tricky question, but you people are good at your job :)
  Any and all suggestions are welcome.
  Many Thanks
 Kartikay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20050921/9f56d75c/attachment.html>


More information about the xorg mailing list