[sane-devel] Finding libusb during compilation time...

Henning Meier-Geinitz henning@meier-geinitz.de
Mon, 5 Jul 2004 20:16:51 +0200


Hi,

On Mon, Jul 05, 2004 at 07:59:19PM +0200, Samuele Kaplun wrote:
> > Please show us your config.log file.

I haven't approved your mail to sane-devel because it was a bit too
long. I'll cite the relevant part of the config log in this mail,
however.

> Some notes:
> I use gcc-3.4.0, linux-2.6.7-ck4, libusb-0.1.8, sane-backends-1.0.14

At least with gcc 3.3.4 I don't see this problem.

> configure:9247: checking for usb_get_busses in -lusb
> configure:9277: gcc -o conftest -O2 -march=athlon-xp -pipe -W -Wall  -DPATH_SANE_CONFIG_DIR=$(configdir) 	  -DPATH_SANE_DATA_DIR=$(datadir) 	  -DV_MAJOR=1 -DV_MINOR=0  conftest.c -lusb  -lnsl -lm  -ljpeg -lieee1284 >&5
> /tmp/cc52Qh9e.o(.text+0xd): In function `main':
> : undefined reference to `usb_get_busses'
> collect2: ld returned 1 exit status

Your libusb doesn't seem to contain "usb_get_busses" at all. Maybe you
still have an old version? 0.1.6 is the minimum I think.

Bye,
  Henning