<span class="gmail_quote"></span>
<div>Dear peers,</div>
<div> </div>
<div> </div>
<div>I want to use dlopen(), dlsym(), etc. in select files of XServer. I'm particularly stuck with files in the <strong>..xc/programs/Xserver/fb</strong> folder. The files compile correctly; however at startup, using either
<em>startx</em> or <em>init 5, gnome </em>does not load up. Instead the following message gets displayed on the console:</div>
<div> </div>
<div>XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"</div>
<div> after 0 requests (0 known processed) with 0 events remaining</div>
<div> </div>
<div>This very same approach (ie, using dlopen(), dlsym() ) works fine with Xlib functions.</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>As an aside, my original library files have ".a" extensions; corresponding compiled sources from Xorg have library files with ".so" extensions. <em>make</em> in the ../fb folder using local Makefile yields both
<strong>libfb.so</strong> and <strong>libfb.a </strong>files. Are these different file formats the culprits.</div>
<div> </div>
<div>I know I pose a tricky question, but you people are good at your job :)</div>
<div> </div>
<div> </div>
<div>Any and all suggestions are welcome.</div>
<div> </div>
<div> </div>
<div>Many Thanks</div><span class="sg">
<div> </div>
<div>Kartikay</div></span>