On Tue, 20 Aug 2002, Rich Richardson wrote:
>
> Hi!
>
> I'm currently hacking a dynamic module for xfree86 v4.x. The module eventually ends
>up in /usr/X11R6/lib/modules/foobar.so. For some of my debugging, however, I need
>access to a few Xlib functions from within this module (e.g. XGetGeometry). I've
>tried a number of things to get the library to link correctly, but I always get the
>following on server start-up:
>
> dlopen: /usr/X11R6/lib/modules/foobar.so: undefined symbol: XGetGeometry
>
> What's the "correct" (i.e. idiomatic) way of including/linking to Xlib from modules
>like this?
X is client-server.
Xlib is client-side.
Modules are server-side.
You should to find the code in Xlib for the routines you are interested
in, and see which X requests that code makes to the server.
Then you need to find the the server code that implements those requests
and see how that code does it.
You may be able to short circuit some of this.
As a hint, Xlib code is in
xc/lib
and X server code is in
xc/programs/Xserver
--
Dr. Andrew C. Aitchison Computer Officer, DPMMS, Cambridge
[EMAIL PROTECTED] http://www.dpmms.cam.ac.uk/~werdna
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert