LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   error on make (https://www.linuxquestions.org/questions/linux-software-2/error-on-make-180503/)

laclac01 05-11-2004 08:31 PM

error on make
 
Hi, I am trying to compile gpsd, a version of it for my earthmate delorme GPS and I get an error on make, I can't seem to figure it out. The website for the version of gpsd that I am using is here http://trans.civil.northwestern.edu/~jay/gpsd.html

Here are the errors I am getting

gcc -o gpsd gpsd.o -L. -lgpsd -lnsl -lm -lc -lusb
./libgpsd.a(m8.o): In function `takeover_device':
/root/gpsd-1.10_earthmate_usb/m8.c:129: undefined
reference to `usb_get_driver_np'
/root/gpsd-1.10_earthmate_usb/m8.c:135: undefined
reference to `usb_detach_kernel_driver_np'
./libgpsd.a(m8.o): In function `m8_findDevice':
/root/gpsd-1.10_earthmate_usb/m8.c:211: undefined
reference to `usb_get_string_simple'
/root/gpsd-1.10_earthmate_usb/m8.c:201: undefined
reference to `usb_get_string_simple'
/root/gpsd-1.10_earthmate_usb/m8.c:190: undefined
reference to `usb_get_string_simple'
./libgpsd.a(m8.o): In function `handle_M8input':
/root/gpsd-1.10_earthmate_usb/m8.c:361: undefined
reference to `usb_interrupt_read'
collect2: ld returned 1 exit status
make: *** [gpsd] Error 1


I am using redhat 8.0 with stock kernel. I thought it was the libusb so i downloaded the newest version and still get the same error.
HELP
thanks

leonscape 05-11-2004 08:39 PM

Did you download a development version of the lib with header files?

The headers may not match the version of the lib and is giving you problems.

laclac01 05-11-2004 08:46 PM

I downloaded the current stable, should i have something else?

leonscape 05-11-2004 08:53 PM

Most packages dont have header files with libs, so they have a devlopment versions of the libraries that have headers installed as well. Where did you get libusb from?

laclac01 05-11-2004 09:02 PM

http://libusb.sourceforge.net/download.html#stable
is there i got it from....

leonscape 05-11-2004 09:05 PM

Hmm, this does contain the headers and everthing.

Sorry if you have but I gotta ask...
do you configure make and make install ( as root ) libusb? Also you did set the correct prefix for configure? ( it defaults too /usr/local which would be wrong for most systems. )

laclac01 05-11-2004 09:10 PM

I did not set the prefix in configure, what would i set it to?

leonscape 05-11-2004 09:12 PM

usually you should set the prefix for /usr ( this is normally where things reside ).

aztler 08-19-2006 05:47 PM

What it is happenning with 'undefined reference to'?
 
I'm working with gnokii proyect and a get the same problem:
undefined reference to 'usb_get_string_simple'

Do I have to update my kernel? I use kernel 2.4.20-8 but my friend laclac01 says that the problem follows.

./configure --prefix=/usr/ --enable-security : this is well
gmake : this is bad. Here is the trouble.

What can/should I do?


All times are GMT -5. The time now is 08:52 PM.