LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-11-2004, 08:31 PM   #1
laclac01
Member
 
Registered: Feb 2004
Posts: 36

Rep: Reputation: 15
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
 
Old 05-11-2004, 08:39 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
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.
 
Old 05-11-2004, 08:46 PM   #3
laclac01
Member
 
Registered: Feb 2004
Posts: 36

Original Poster
Rep: Reputation: 15
I downloaded the current stable, should i have something else?
 
Old 05-11-2004, 08:53 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
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?

Last edited by leonscape; 05-11-2004 at 08:55 PM.
 
Old 05-11-2004, 09:02 PM   #5
laclac01
Member
 
Registered: Feb 2004
Posts: 36

Original Poster
Rep: Reputation: 15
http://libusb.sourceforge.net/download.html#stable
is there i got it from....
 
Old 05-11-2004, 09:05 PM   #6
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
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. )
 
Old 05-11-2004, 09:10 PM   #7
laclac01
Member
 
Registered: Feb 2004
Posts: 36

Original Poster
Rep: Reputation: 15
I did not set the prefix in configure, what would i set it to?
 
Old 05-11-2004, 09:12 PM   #8
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
usually you should set the prefix for /usr ( this is normally where things reside ).
 
Old 08-19-2006, 05:47 PM   #9
aztler
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Really, really Weird trouble with make (make error 2) flyeater SUSE / openSUSE 5 06-20-2005 12:05 PM
xprobe2 "make" error make[1]: *** [config_set.o] Error 1 rsharma2000 Linux - Security 1 11-24-2004 04:10 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 11:19 AM
make failing to make with this error. Help needed? vdemuth Linux - Software 4 06-20-2004 03:08 PM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration