LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-28-2005, 01:47 AM   #1
Perfidia
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
Gpsd Make problems (DeLorme Tripmate)


So I found my old Tripmate GPS by DeLorme, and I thought it would be cool if I could start mapping access points with Kismet. I researched it a bit, and found out I needed gpsd to run the GPS.

I downloaded gpsd, and it configured fine. I went to make it, and it came back with an error...

CODE
root@Brian:~/Desktop/gpsd-2.29# make
make all-am
make[1]: Entering directory `/root/Desktop/gpsd-2.29'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -I/usr/X11R6/include -MT xgpsspeed.o -MD -MP -MF ".deps/xgpsspeed.Tpo" -c -o xgpsspeed.o xgpsspeed.c; \
then mv -f ".deps/xgpsspeed.Tpo" ".deps/xgpsspeed.Po"; else rm -f ".deps/xgpsspeed.Tpo"; exit 1; fi
In file included from xgpsspeed.c:12:
/usr/X11R6/include/Xm/XmStrDefs.h:959: error: syntax error before "extern"
xgpsspeed.c:13:25: ltsys/filio.h: No such file or directory
make[1]: *** [xgpsspeed.o] Error 1
make[1]: Leaving directory `/root/Desktop/gpsd-2.29'
make: *** [all] Error 2


It runs the same error when I am running as my user, not just when I am root. I searched google far and Wide, and never found anything relevant. So, I decided to try getting GpsDrive. It said it used a form of Gpsd, so I figured it wouldn’t hurt to try.

GpsDrive made fine, and it runs great, but it won't recognize my Tripmate. I run it on the serial port, and it's device path is /dev/ttys3, I believe. I set this all up, and it still doesn't work. It just stays centered somewhere in Europe, moving at 999 m/h.

Now, there is obviously a version of Gpsd installed on my machine, because it recognizes the command, but it won't recognize the commands of the programs bundles with gpsd, such as xgps. Is the version I have because of installing GpsDrive good enough to run with Kismet? Also, what am I doing wrong? I have the Baudrate set at 4800 and I try running "gpsd" with the -T t specification for the Tripmate, but I never get results. Kismet just keep searching for the Gps.

I am running Slackware 10.1 on an HP Omnibook 4150, so it’s a pretty old computer. Are there any live distros that have gpsd already on them that I could try out?

Any help at all would be great. I have been stuck here for about 4 hours of troubleshooting, and it's starting to bug me. Thanks in advance!
 
Old 10-25-2005, 09:26 PM   #2
lordlazar
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
For what it's worth I'm going to reply to this even though it was posted some time ago. I got the same error when I ran make on gpsd-2.30.

/usr/X11R6/include/Xm/XmStrDefs.h:959: error: syntax error before "extern"

I took a look inside the file XmStrDefs.h here is what's on line 959:

XMLIBEXPORT extern const char _XmStrings[];

Here is what I did to get the make to run.

/*XMLIBEXPORT
*/
extern const char _XmStrings[];

I don't have a clue what XMLIBEXPORT does, but when I commented it out the make ran fine, as did the make install. When I run gpsd it works. Both kismet and gpsdrive are receiving gps data.

If someone could enlighten me on what XMLIBEXPORT does and how to properly fix this, I would appreciate it. For now my stuff works, so I guess that's good enough.

I'm running Slackware 10.2 with kernel 2.6.13.4 on an IBM Thinkpad T30.
 
Old 10-26-2005, 07:02 AM   #3
Perfidia
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Oops!

I forgot about this thread! Yeah, I got it to work by commenting out that same line. I have no clue what it does, but gpsd has been working fine without it, so I am not worried. Thanks for the reply though!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
BASH problems: "configure, make, make install" commands don't work ditch* Linux - General 3 07-19-2005 04:37 PM
gpsd on a zaurus 6000L skunkburner Linux - Laptop and Netbook 4 07-07-2005 11:31 AM
make and make install problems jabird Red Hat 1 10-11-2004 09:05 PM
make-problems stalemate Mandriva 10 09-20-2003 10:49 AM
make problems jayakrishnan Linux - General 1 09-13-2003 05:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:10 PM.

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