Subject: Re: Wacom USB tablet and XF86 4.3.0?
To: Lennart Augustsson <lennart@augustsson.net>
From: Dave Huang <khym@azeotrope.org>
List: tech-x11
Date: 01/01/2004 00:55:31
[ 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?

> Dave Huang wrote:
> >On Mon, Dec 29, 2003 at 01:59:50PM +0100, Lennart Augustsson wrote:
> >
> >>The tablet support is not integrated in XF86 4.x yet.
> >>But OpenBSD has done it, so you can probably grab it from
> >>their X tree.
> >
> >
> >Perhaps this message is more appropriate for tech-x11... I got the
> >driver compiled, put usbtablet_drv.o in /usr/X11/lib/modules/input,
> >added the appropriate lines to my XF86Config file to load it, but it's
> >not working. Now when I start X, I get a bunch of
> >Symbol hid_get_data from module 
> >/usr/X11R6/lib/modules/input/usbtablet_drv.o is unresolved!
> >messages (also hid_get_report_desc, hid_start_parse, hid_get_item,
> >hid_end_parse, hid_report_size, and hid_dispose_report_desc), followed
> >by:
> >        This should not happen!
> >        An unresolved function was called!
> >
> >How do I tell it that it needs to look in libusbhid for those
> >functions? The XFree86 binary is linked against it:
> >/usr/X11R6/bin/XFree86:
> >         -lz.0 => /usr/lib/libz.so.0
> >         -lm.0 => /usr/lib/libm387.so.0
> >         -lm.0 => /usr/lib/libm.so.0
> >         -lusbhid.1 => /usr/lib/libusbhid.so.1
> >         -li386.1 => /usr/lib/libi386.so.1
> >         -lc.12 => /usr/lib/libc.so.12
> >
> >Or do I need to link in libusbhid.a instead? I guess I'll give that a
> >try :)
> 
> 

-- 
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym@azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 28 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++