[postgis-users] HELP - Installation problem

Mark Gu mark.guxuan at gmail.com
Sat Jun 17 20:50:54 PDT 2006


Hello,

During my installation of PostGIS, I have encountered the following
error message when executing "make". Can anyone let me know why this
occurs and how to fix it...

I am using Mac OS X 10.4.6 and I have got the latest PostgresSQL,
XCode (gcc, g++, etc.), GEOS, PROJ4 installed.


============ ERROR message ================

make -C loader
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=81   -c -o shpopen.o shpopen.c
shpopen.c:176: warning: 'rcsid' defined but not used
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=81   -c -o dbfopen.o dbfopen.c
dbfopen.c:206: warning: 'rcsid' defined but not used
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=81   -c -o getopt.o getopt.c
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=81   -c -o shp2pgsql.o shp2pgsql.c
shp2pgsql.c: In function 'utf8':
shp2pgsql.c:1686: warning: passing argument 2 of 'libiconv' from
incompatible pointer type
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=81 shpopen.o dbfopen.o
getopt.o shp2pgsql.o -liconv -o shp2pgsql
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=81
-I/usr/local/pgsql/include -c pgsql2shp.c
pgsql2shp.c: In function 'parse_commandline':
pgsql2shp.c:2336: warning: implicit declaration of function 'getopt'
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=81   -c -o
PQunescapeBytea.o PQunescapeBytea.c
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=81 shpopen.o dbfopen.o
getopt.o PQunescapeBytea.o pgsql2shp.o -liconv -L/usr/local/pgsql/lib
-lpq -lpgport -lz -lreadline -lresolv -ldl -lm  -o pgsql2shp
/usr/bin/ld: table of contents for archive:
/usr/local/pgsql/lib/libpgport.a is out of date; rerun ranlib(1)
(can't load from it)
collect2: ld returned 1 exit status
make[1]: *** [pgsql2shp] Error 1
make: *** [loaderdumper] Error 2


-- 


Thanks in advance,

Mark



More information about the postgis-users mailing list