LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Gpsd Make problems (DeLorme Tripmate) (https://www.linuxquestions.org/questions/slackware-14/gpsd-make-problems-delorme-tripmate-357703/)

Perfidia 08-28-2005 01:47 AM

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!

lordlazar 10-25-2005 09:26 PM

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.

Perfidia 10-26-2005 07:02 AM

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!


All times are GMT -5. The time now is 03:32 AM.