Kismet Wireless

Kismet Forums

 

Posted by:yoyoma
Subject:compiling wispy-tools-svn on openbsd 3.9-release
Date:20:25:47 19/06/2006

> > > > > produces the following:
> > > > >
> > > > > checking usb.h usability... no
> > > > > checking usb.h presence... no
> > > > > checking for usb.h... no
> > > > > configure: error: *** LibUSB required.
> > > > >
> > > > > grabbed the source for libusb 0.1.12, compiled and installed:
> > > > >
> > > > > $ ls -l /usr/local/include/usb.h
> > > > > -rw-r--r-- 1 root wheel 8347 Jun 19 13:54 /usr/local/include/usb.h
> > > > >
> > > > > still the same error appears ... thoughts?
> > > >
> > > > look at config.log and see what exactly is failing.
> > > >
> > > > I'm going to guess, however, that /usr/local/include/ isn't in your include path. You can probably force it with CFLAGS="-I/usr/local/include" ./configure.
> > > >
> > > > I'd expect configure to have picked it up, maybe on the obsd port it doesn't check in /usr/local/include? I'll take a look next time I'm near my obsd box.
> > > >
> > > > -m
> > >
> > > thanks ... for what it's worth ... from config.log:
> > >
> > > conftest.c:58:17: usb.h: No such file or directory
> > >
> > > ./configure --help<cr> states:
> > >
> > > Installation directories:
> > > --prefix=PREFIX install architecture-independent files in PREFIX
> > > [/usr/local]
> > > and
> > >
> > > --includedir=DIR C header files [PREFIX/include]
> > >
> > > ./configure --includedir=/usr/local/include<cr> still produces the same error message.
> >
> > the plot thickens ... i created a symbolic link:
> >
> > sudo ln -s /usr/local/include/usb.h /usr/include/usb.h
> >
> > ./configure<cr> then states:
> >
> > checking for usb.h... yes
> > checking for usb_init in -lusb... no
> > configure: error: *** LibUSB required. Linking -lusb failed.
> >
> > i'm guessing that it's looking for something in the usb.h libary named usb_init:
> >
> > $ grep -i usb_init /usr/include/usb.h<cr> shows:
> >
> > void usb_init(void);
>
> also ... config.log shows:
>
> configure:3464: checking for usb.h
> configure:3471: result: yes
> configure:3484: checking for usb_init in -lusb
> configure:3514: gcc -o conftest -g -O2 conftest.c -lusb >&5
> /usr/bin/ld: cannot find -lusb


Reply to this message