Subject: Re: Wacom USB tablet and XF86 4.3.0?
To: Dave Huang <khym@azeotrope.org>
From: Matthieu Herrb <matthieu.herrb@laas.fr>
List: tech-x11
Date: 01/01/2004 10:00:34
You wrote (in your message from Thursday 1)
 > [ moving from netbsd-help to tech-x11; see bottom of message for
 >   what's been going on ]
 > 
 > On Wed, Dec 31, 2003 at 11:43:16AM +0100, Lennart Augustsson wrote:
 > > Since the server is linked against libusbhid you'd think that
 > > the symbols should be found.  Do the symbols appear in libusbhid?
 > 
 > Yes, they're in libusbhid. I noticed that nm wasn't showing them in
 > the XFree86 binary though, so I put
 > -Wl,--whole-archive/no-whole-archive around -lusbhid. That got the
 > symbols included as undefined ("U" in the nm output), but I still got 
 > the unresolved symbol errors when starting X. So then I tried
 > -Wl,--whole-archive /usr/lib/libusbhid.a -Wl,--no-whole-archive; the
 > functions are now included in the XFree86 binary ("T" in the nm
 > output), but still getting unresolved symbols.
 > 
 > I have no clue how XF86's loader works... anyone have some thoughts on
 > why it's not finding the symbols?

The X server need to export the symbols to its modules. Look at the
following change in OpenBSD:

http://www.openbsd.org/cgi-bin/cvsweb.cgi/XF4/xc/programs/Xserver/hw/xfree86/loader/xf86sym.c.diff?r1=1.3&r2=1.4

-- 
					Matthieu