[obdgpslogger] build errrors on Raspbian [SOLVED]

ken gebser at mousecar.com
Sat Apr 19 15:16:39 EDT 2014


Long story short, I got suspicious of the zipfile I'd downloaded and 
attempted to build.  I've forgotten where it came from, but it was 
called obdgpslogger-master.zip and I noticed that the download at 
icculus.org/obdgpslogger/#Download was named obdgpslogger-0.16.tar.gz. 
In and of itself this name difference is meaningless... or should have 
been.  But I downloaded the second package gunzipped it and scripted a 
'diff' wrapper to compare all the files in the first package with all 
the files in the second.  Most files were identical, but there were a 
few differences.  Oddly, the Changelog files in the two packages are 
identical... which they shouldn't be if a conscientious developer had 
made changes.

So then I did a build on the obdgpslogger-0.16.tar.gz package and it ran 
fine.  Well, there were some warnings, but those are not unusual in most 
all compiles.  Just for thoroughness and for possible future reference, 
here are those warnings:

....
[ 63%] Building C object src/csv/CMakeFiles/obd2csv.dir/obdgpscsv.c.o
/home/zl/bin/obdgpslogger-0.16/src/csv/obdgpscsv.c: In function ‘main’:
/home/zl/bin/obdgpslogger-0.16/src/csv/obdgpscsv.c:256:26: warning: 
assignment from incompatible pointer type [enabled by default]
/home/zl/bin/obdgpslogger-0.16/src/csv/obdgpscsv.c:288:3: warning: 
passing argument 1 of ‘gzwrite’ from incompatible pointer type [enabled 
by default]
/usr/include/zlib.h:1324:21: note: expected ‘gzFile’ but argument is of 
type ‘struct gzFile_s **’
/home/zl/bin/obdgpslogger-0.16/src/csv/obdgpscsv.c:308:4: warning: 
passing argument 1 of ‘gzwrite’ from incompatible pointer type [enabled 
by default]
/usr/include/zlib.h:1324:21: note: expected ‘gzFile’ but argument is of 
type ‘struct gzFile_s **’
/home/zl/bin/obdgpslogger-0.16/src/csv/obdgpscsv.c:328:3: warning: 
passing argument 1 of ‘gzclose’ from incompatible pointer type [enabled 
by default]
/usr/include/zlib.h:1494:24: note: expected ‘gzFile’ but argument is of 
type ‘struct gzFile_s **’
Linking C executable /home/zl/bin/obdgpslogger-0.16/bin/obd2csv
[ 63%] Built target obd2csv
....

Perhaps there should be a warning on the web page to avoid other 
packages purporting to be Chunky's and to get the package either from 
the obdgpslogger.icculus.org page or from the svn page linked from there.



On 04/18/2014 05:36 AM ken wrote:
> Raspbian is the Debian version for the Raspberry Pi.
>
> Running cmake first yielded a few warnings:
>
> ....
> [ 61%] Building C object src/csv/CMakeFiles/obd2csv.dir/obdgpscsv.c.o
> /home/pi/bin/obdgpslogger-master/src/csv/obdgpscsv.c: In function ‘main’:
> /home/pi/bin/obdgpslogger-master/src/csv/obdgpscsv.c:256:26: warning:
> assignment from incompatible pointer type [enabled by default]
> /home/pi/bin/obdgpslogger-master/src/csv/obdgpscsv.c:288:3: warning:
> passing argument 1 of ‘gzwrite’ from incompatible pointer type [enabled
> by default]
> /usr/include/zlib.h:1324:21: note: expected ‘gzFile’ but argument is of
> type ‘struct gzFile_s **’
> /home/pi/bin/obdgpslogger-master/src/csv/obdgpscsv.c:308:4: warning:
> passing argument 1 of ‘gzwrite’ from incompatible pointer type [enabled
> by default]
> /usr/include/zlib.h:1324:21: note: expected ‘gzFile’ but argument is of
> type ‘struct gzFile_s **’
> /home/pi/bin/obdgpslogger-master/src/csv/obdgpscsv.c:328:3: warning:
> passing argument 1 of ‘gzclose’ from incompatible pointer type [enabled
> by default]
> /usr/include/zlib.h:1494:24: note: expected ‘gzFile’ but argument is of
> type ‘struct gzFile_s **’
> Linking C executable /home/pi/bin/obdgpslogger-master/bin/obd2csv
> ...
>
> but then then some errors:
>
> ....
> [ 92%] Building CXX object src/sim/CMakeFiles/obdsim.dir/tcpsimport.cc.o
> /home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc: In destructor
> ‘virtual TCPSimPort::~TCPSimPort()’:
> /home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc:62:16: error:
> ‘close’ was not declared in this scope
> /home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc:65:18: error:
> ‘close’ was not declared in this scope
> /home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc: In member
> function ‘virtual char* TCPSimPort::readLine()’:
> /home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc:114:82: error:
> ‘read’ was not declared in this scope
> /home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc:117:18: error:
> ‘close’ was not declared in this scope
> /home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc:123:18: error:
> ‘close’ was not declared in this scope
> /home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc:134:54: error:
> ‘strnstr’ was not declared in this scope
> /home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc: In member
> function ‘virtual void TCPSimPort::writeData(const char*, int)’:
> /home/pi/bin/obdgpslogger-master/src/sim/tcpsimport.cc:159:36: error:
> ‘write’ was not declared in this scope
> make[2]: *** [src/sim/CMakeFiles/obdsim.dir/tcpsimport.cc.o] Error 1
> make[1]: *** [src/sim/CMakeFiles/obdsim.dir/all] Error 2
> make: *** [all] Error 2
> ....
>
> I'm no C++ programmer at all, but these errors seem as thought they
> could derive from a minor syntactical error... or?
>
> This seems like a great project, not just for the functionality it
> offers, but for the well thought out structure of them, that they are
> built as several distinct executables.  I've been looking for months for
> code (something in C) just to log several chosen PIDs to a log file in
> plain text on an RPi.  I was planning then to add other functionality
> later, but this project already has most of what I'd planned!!  Very
> cool.  I really hope I can get this code to run properly, at least the
> part which logs selected PIDs.
>
> Thanks for any help toward that end.
> _______________________________________________
> obdgpslogger mailing list
> obdgpslogger at icculus.org
> http://icculus.org/mailman/listinfo/obdgpslogger


More information about the obdgpslogger mailing list