[Xastir] Building dbfinfo
Bill Hammond
ka1ssr at earthlink.net
Sat Jul 10 22:49:16 EDT 2010
On 07/10/2010 04:43 PM, Tom Russo wrote:
> On Sat, Jul 10, 2010 at 12:59:43PM -0400, we recorded a bogon-computron collision of the<ka1ssr at earthlink.net> flavor, containing:
>
>> On 07/10/2010 11:07 AM, Curt, WE7U wrote:
>>
>>> Ah, I stand corrected.
>>>
>>> Then this means that Bill must have installed Shapelib in the OS.
>>> If he installed Shapelib from sources then he can build the tool
>>> there.
>>>
>>> If not, then removing the external Shapelib means he can re-run
>>> Xastir's configure and then build the tool in
>>> xastir/src/shapelib/contrib/
>>>
>>>
>> I ran ./configure --without-festival --with-internal-shapelib
>> CPPFLAGS="-I/usr/include/geotiff", then make. Changed to the
>> ~/xastir/src/shapelib/contrib directory and did a make there. No luck.
>> I then unistalled shapelib, libshp-dev and libshp1 and ran ./configure
>> --without-festival CPPFLAGS="-I/usr/include/geotiff". Still no luck.
>> Configure says that it's using the internal shapelib library in both cases.
>>
> Ah. I see what the issue is.
>
> There is no rule to create dbfinfo in our makefile. We only create dbfadd,
> dbfcreate, shpadd and shpcreate. Lemme see if I can fix that.
>
>
Hey, Curt and Tom. Thanks for working on this.
I did the configure/make clean/make routine and got...
[tons of make stuff]
make[3]: Leaving directory `/home/ka1ssr/xastir/src/rtree'
Making all in shapelib
make[3]: Entering directory `/home/ka1ssr/xastir/src/shapelib'
Making all in contrib
make[4]: Entering directory `/home/ka1ssr/xastir/src/shapelib/contrib'
gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/shapelib
-I/usr/local/include -I/usr/include/geotiff -I/usr/include/ImageMagick
-DXASTIR_DATA_BASE=\"/usr/local/share/xastir\" -g -O2 -pipe -W -Wall
-Wpointer-arith -Wstrict-prototypes -Wno-unused-parameter -pthread -MT
dbfinfo.o -MD -MP -MF .deps/dbfinfo.Tpo -c -o dbfinfo.o dbfinfo.c
dbfinfo.c: In function ‘main’:
dbfinfo.c:88: warning: format ‘%ld’ expects type ‘long int’, but
argument 2 has type ‘int’
dbfinfo.c:88: warning: format ‘%ld’ expects type ‘long int’, but
argument 3 has type ‘int’
dbfinfo.c:100: warning: unused variable ‘eType’
dbfinfo.c:61: warning: unused variable ‘ciRecord’
dbfinfo.c:61: warning: unused variable ‘ci’
dbfinfo.c:60: warning: unused variable ‘cType’
dbfinfo.c:60: warning: unused variable ‘hType’
dbfinfo.c:59: warning: unused variable ‘cDBF’
dbfinfo.c:58: warning: unused variable ‘cnDecimals’
dbfinfo.c:58: warning: unused variable ‘cnWidth’
dbfinfo.c:56: warning: unused variable ‘nTitle’
dbfinfo.c:56: warning: unused variable ‘cTitle’
dbfinfo.c:55: warning: unused variable ‘szField’
dbfinfo.c:55: warning: unused variable ‘szFormat’
dbfinfo.c:54: warning: unused variable ‘iRecord’
In file included from /usr/include/string.h:640,
from dbfinfo.c:48:
In function ‘strcpy’,
inlined from ‘main’ at dbfinfo.c:116:
/usr/include/bits/string3.h:107: warning: call to __builtin___strcpy_chk
will always overflow destination buffer
mv -f .deps/dbfinfo.Tpo .deps/dbfinfo.Po
make[4]: *** No rule to make target `../libshape.a', needed by
`dbfinfo'. Stop.
make[4]: Leaving directory `/home/ka1ssr/xastir/src/shapelib/contrib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ka1ssr/xastir/src/shapelib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ka1ssr/xastir/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ka1ssr/xastir'
make: *** [all] Error 2
ka1ssr at ernie:~/xastir$
Let me know if you want more of the spew from make.
73,
Bill KA1SSR
More information about the Xastir
mailing list