Kismet Wireless

Kismet Forums

 

Posted by:yoyoma
Subject:compiling wispy-tools-svn on openbsd 3.9-release
Date:20:29:12 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

got a little further ... uninstalled libsub ... configured it's source again specifying the following:

./configure --includedir=/usr/include -- libdir=/usr/lib<cr>

configure returned the following:

*** Configuration complete
*** Check the configure output if a target you want is not configured.
*** The following targets are configured:
wispy_raw wispy_log wispy_curses wispy_gtk

make<cr> followed:

$ make
gcc -o wispy_raw -lusb
/usr/lib/crt0.o(.text+0xa4): In function `___start':
: undefined reference to `main'
collect2: ld returned 1 exit status
*** Error code 1


Reply to this message