[Shapelib] shpdiff.c building, compiling error
laboratorio sig inti
laboratoriosiginti at gmail.com
Fri Nov 30 01:17:59 EST 2007
Hi, we are building shapelib to use with mapserver 5, with this recipe:
http://www.nabble.com/Installing-ShapeLib-and-its-tools-p9172934.html
almost all compile good... but when I tried to compile shpdiff from:
http://www.obviously.com/gis/shpdiff/
We have a lot of warnings, ok, but one error:
shpdiff.c:355: error: label at end of compound statement
Is possible to work with shapelib in mapserver 5???, is neccesary to
do???, there are a new library to do this job???, thanks for any
advice. We are using debian etch 4.0 r1
*******************************************************
this is the output of command make all
*****************************************************
cc -g -I.. -DPROJ4 -D_LITTLE_ENDIAN -DDEBUG -DDEBUG2 shpdxf.c
../shpopen.o ../dbfopen.o /usr/lib/libdmalloc.a -o shpdxf
shpdxf.c: In function 'main':
shpdxf.c:218: warning: incompatible implicit declaration of built-in
function 'exit'
shpdxf.c:221: warning: incompatible implicit declaration of built-in
function 'strcpy'
shpdxf.c:222: warning: incompatible implicit declaration of built-in
function 'strncpy'
shpdxf.c:222: warning: incompatible implicit declaration of built-in
function 'strlen'
shpdxf.c:223: warning: incompatible implicit declaration of built-in
function 'strcat'
cc -g -I.. -DPROJ4 -D_LITTLE_ENDIAN -DDEBUG -DDEBUG2 -c shpgeo.c
shpgeo.c: In function 'asFileName':
shpgeo.c:103: warning: incompatible implicit declaration of built-in
function 'strcpy'
shpgeo.c:104: warning: incompatible implicit declaration of built-in
function 'strlen'
shpgeo.c: In function 'SHPReadSHPStream':
shpgeo.c:286: warning: incompatible implicit declaration of built-in
function 'memcpy'
shpgeo.c: In function 'SHPWriteSHPStream':
shpgeo.c:344: warning: incompatible implicit declaration of built-in
function 'memcpy'
shpgeo.c: In function 'WKBStreamWrite':
shpgeo.c:374: warning: incompatible implicit declaration of built-in
function 'memcpy'
shpgeo.c: In function 'WKBStreamRead':
shpgeo.c:394: warning: incompatible implicit declaration of built-in
function 'memcpy'
shpgeo.c: In function 'SHPClone':
shpgeo.c:1460: warning: incompatible implicit declaration of built-in
function 'memcpy'
shpgeo.c:1465: warning: incompatible implicit declaration of built-in
function 'memcpy'
shpgeo.c:1490: warning: incompatible implicit declaration of built-in
function 'memcpy'
shpgeo.c:1496: warning: incompatible implicit declaration of built-in
function 'memcpy'
shpgeo.c:1502: warning: incompatible implicit declaration of built-in
function 'memcpy'
shpgeo.c:1508: warning: incompatible implicit declaration of built-in
function 'memcpy'
cc -g -I.. -DPROJ4 -D_LITTLE_ENDIAN -DDEBUG -DDEBUG2 shpproj.c
../shpopen.o ../dbfopen.o ./shpgeo.o -lm -lproj -lm -lproj
/usr/lib/libdmalloc.a -o shpproj
shpproj.c: In function 'main':
shpproj.c:121: warning: incompatible implicit declaration of built-in
function 'strcpy'
shpproj.c:139: warning: incompatible implicit declaration of built-in
function 'strlen'
shpproj.c:140: warning: incompatible implicit declaration of built-in
function 'strcpy'
shpproj.c:152: warning: incompatible implicit declaration of built-in
function 'strlen'
shpproj.c:156: warning: incompatible implicit declaration of built-in
function 'strcpy'
shpproj.c:168: warning: incompatible implicit declaration of built-in
function 'strlen'
shpproj.c:169: warning: incompatible implicit declaration of built-in
function 'strcpy'
shpproj.c:180: warning: incompatible implicit declaration of built-in
function 'strlen'
shpproj.c:184: warning: incompatible implicit declaration of built-in
function 'strcpy'
shpproj.c:227: warning: incompatible implicit declaration of built-in
function 'memcpy'
cc -g -I.. -DPROJ4 -D_LITTLE_ENDIAN -DDEBUG -DDEBUG2 dbfinfo.c
../shpopen.o ../dbfopen.o /usr/lib/libdmalloc.a -o dbfinfo
dbfinfo.c: In function 'main':
dbfinfo.c:41: warning: incompatible implicit declaration of built-in
function 'exit'
dbfinfo.c:51: warning: incompatible implicit declaration of built-in
function 'exit'
dbfinfo.c:67: warning: incompatible implicit declaration of built-in
function 'malloc'
dbfinfo.c:76: warning: incompatible implicit declaration of built-in
function 'strcpy'
cc -g -I.. -DPROJ4 -D_LITTLE_ENDIAN -DDEBUG -DDEBUG2 shpcentrd.c
../shpopen.o ../dbfopen.o /usr/lib/libdmalloc.a ./shpgeo.o -lm -lproj
-o shpcentrd
shpcentrd.c: In function 'main':
shpcentrd.c:122: warning: incompatible implicit declaration of
built-in function 'memcpy'
shpcentrd.c:141: warning: incompatible implicit declaration of
built-in function 'memcpy'
cc -g -I.. -DPROJ4 -D_LITTLE_ENDIAN -DDEBUG -DDEBUG2 shpdata.c
../shpopen.o ../dbfopen.o /usr/lib/libdmalloc.a ./shpgeo.o -lm -lproj
-o shpdata
cc -g -I.. -DPROJ4 -D_LITTLE_ENDIAN -DDEBUG -DDEBUG2 shpwkb.c
../shpopen.o ../dbfopen.o /usr/lib/libdmalloc.a ./shpgeo.o -lm -lproj
-o shpwkb
cc -g -I.. -DPROJ4 -D_LITTLE_ENDIAN -DDEBUG -DDEBUG2 dbfcat.c
../shpopen.o ../dbfopen.o /usr/lib/libdmalloc.a -o dbfcat
dbfcat.c: In function 'main':
dbfcat.c:48: warning: incompatible implicit declaration of built-in
function 'exit'
dbfcat.c:55: warning: incompatible implicit declaration of built-in
function 'strcpy'
dbfcat.c:56: warning: incompatible implicit declaration of built-in
function 'strcat'
dbfcat.c:61: warning: incompatible implicit declaration of built-in
function 'exit'
dbfcat.c:71: warning: incompatible implicit declaration of built-in
function 'exit'
dbfcat.c:78: warning: incompatible implicit declaration of built-in
function 'exit'
dbfcat.c:115: warning: incompatible implicit declaration of built-in
function 'exit'
dbfcat.c:118: warning: incompatible implicit declaration of built-in
function 'exit'
cc -g -I.. -DPROJ4 -D_LITTLE_ENDIAN -DDEBUG -DDEBUG2 shpinfo.c
../shpopen.o ../dbfopen.o /usr/lib/libdmalloc.a ./shpgeo.o -lm -lproj
-o shpinfo
shpinfo.c: In function 'main':
shpinfo.c:61: warning: incompatible implicit declaration of built-in
function 'exit'
shpinfo.c:72: warning: incompatible implicit declaration of built-in
function 'exit'
shpinfo.c:79: warning: incompatible implicit declaration of built-in
function 'strcpy'
cc -g -I.. -DPROJ4 -D_LITTLE_ENDIAN -DDEBUG -DDEBUG2 shpfix.c
../shpopen.o ../dbfopen.o /usr/lib/libdmalloc.a -o shpfix
shpfix.c: In function 'main':
shpfix.c:54: warning: incompatible implicit declaration of built-in
function 'exit'
shpfix.c:68: warning: incompatible implicit declaration of built-in
function 'exit'
shpfix.c:82: warning: incompatible implicit declaration of built-in
function 'exit'
cc -g -I.. -DPROJ4 -D_LITTLE_ENDIAN -DDEBUG -DDEBUG2 shpcat.c
../shpopen.o ../dbfopen.o /usr/lib/libdmalloc.a -o shpcat
shpcat.c: In function 'main':
shpcat.c:50: warning: incompatible implicit declaration of built-in
function 'exit'
shpcat.c:61: warning: incompatible implicit declaration of built-in
function 'exit'
shpcat.c:75: warning: incompatible implicit declaration of built-in
function 'exit'
shpcat.c:96: warning: incompatible implicit declaration of built-in
function 'exit'
cc -g -I.. -DPROJ4 -D_LITTLE_ENDIAN -DDEBUG -DDEBUG2 shpdiff.c
../shpopen.o ../dbfopen.o /usr/lib/libdmalloc.a ./shpgeo.o -lm -lproj
-o shpdiff
shpdiff.c: In function 'main':
shpdiff.c:108: warning: incompatible implicit declaration of built-in
function 'exit'
shpdiff.c:118: warning: incompatible implicit declaration of built-in
function 'exit'
shpdiff.c:124: warning: incompatible implicit declaration of built-in
function 'exit'
shpdiff.c:129: warning: incompatible implicit declaration of built-in
function 'exit'
shpdiff.c:137: warning: incompatible implicit declaration of built-in
function 'exit'
shpdiff.c:143: warning: incompatible implicit declaration of built-in
function 'exit'
shpdiff.c:148: warning: incompatible implicit declaration of built-in
function 'exit'
shpdiff.c:355: error: label at end of compound statement
shpdiff.c:368: warning: incompatible implicit declaration of built-in
function 'exit'
shpdiff.c: In function 'compareDBF':
shpdiff.c:506: warning: incompatible implicit declaration of built-in
function 'memcpy'
shpdiff.c: In function 'compareDBFkey':
shpdiff.c:556: warning: incompatible implicit declaration of built-in
function 'memcpy'
make: *** [shpdiff] Error 1
More information about the Shapelib
mailing list