[postgis-users] error loading data using shp2pgsql

Dylan Keon keon at nacse.org
Sat Aug 24 08:40:05 PDT 2002


Steffen Macke wrote:
>> Hi, I'm just getting started with PostGIS.  I tried loading two 
>> shapefiles for practice...cities (point) and rivers (line).  The first 
>> went just fine, the second is giving me errors.
> 
> Dylan,
> 
> could you try the CVS version of shp2pgsql? It contains some fixes
> regarding NULL values and proper string escaping.
> A CVS snapshot should be available on the download page.

I tried compiling the CVS snapshot that I grabbed this morning, but make 
bails with a number of errors.  Any suggestions?  v0.7.1 compiles on my 
SuSE box without a hitch.  Thanks.

=========================== error text ===============================
# make
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -g  -I. 
-I../../src/include  -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' 
-c -o postgis_debug.o postgis_debug.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -g  -I. 
-I../../src/include  -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' 
-c -o postgis_ops.o postgis_ops.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -g  -I. 
-I../../src/include  -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' 
-c -o postgis_fn.o postgis_fn.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -g  -I. 
-I../../src/include  -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' 
-c -o postgis_inout.o postgis_inout.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -g  -I. 
-I../../src/include  -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' 
-c -o postgis_proj.o postgis_proj.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -g  -I. 
-I../../src/include  -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' 
-c -o postgis_chip.o postgis_chip.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -g  -I. 
-I../../src/include  -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' 
-c -o postgis_transform.o postgis_transform.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -g  -I. 
-I../../src/include  -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' 
-c -o postgis_gist.o postgis_gist.c
postgis_gist.c: In function `ggeometry_compress':
postgis_gist.c:104: structure has no member named `pred'
postgis_gist.c:114: structure has no member named `pred'
postgis_gist.c:120: structure has no member named `pred'
postgis_gist.c:126: warning: assignment makes integer from pointer 
without a cast
postgis_gist.c:130: warning: assignment makes integer from pointer 
without a cast
postgis_gist.c: In function `ggeometry_consistent':
postgis_gist.c:155: structure has no member named `pred'
postgis_gist.c:160: structure has no member named `pred'
postgis_gist.c:166: structure has no member named `pred'
postgis_gist.c: In function `rtree_union':
postgis_gist.c:338: structure has no member named `pred'
postgis_gist.c:343: structure has no member named `pred'
postgis_gist.c:331: warning: `tmp' might be used uninitialized in this 
function
postgis_gist.c: In function `rtree_penalty':
postgis_gist.c:364: structure has no member named `pred'
postgis_gist.c:364: structure has no member named `pred'
postgis_gist.c:368: structure has no member named `pred'
postgis_gist.c: In function `rtree_picksplit':
postgis_gist.c:406: structure has no member named `pred'
postgis_gist.c:408: structure has no member named `pred'
postgis_gist.c:453: structure has no member named `pred'
postgis_gist.c:455: structure has no member named `pred'
postgis_gist.c:459: structure has no member named `pred'
postgis_gist.c:461: structure has no member named `pred'
postgis_gist.c:499: structure has no member named `pred'
postgis_gist.c:524: warning: assignment makes integer from pointer 
without a cast
postgis_gist.c:525: warning: assignment makes integer from pointer 
without a cast
postgis_gist.c:379: warning: `datum_alpha' might be used uninitialized 
in this function
postgis_gist.c:379: warning: `datum_beta' might be used uninitialized in 
this function
make: *** [postgis_gist.o] Error 1
#
======================================================================





More information about the postgis-users mailing list