I have the --with-pg_config and --with-projdir define so configure works. Make gives the following error:

make[1]: Entering directory `/home/bruce/postgis-svn/loader'
gcc -g -O2 -DDLL_EXPORT -DPIC -Wall -Wmissing-prototypes -liconv -lm stringbuffer.o shpopen.o dbfopen.o shp2pgsql-core.o shp2pgsql-cli.o ../liblwgeom/liblwgeom.a -o shp2pgsql-cli.exe
shp2pgsql-core.o: In function `pgis_logf':
C:/msys/1.0/home/bruce/postgis-svn/loader/shp2pgsql-core.c:177: undefined reference to `vasprintf'
shp2pgsql-core.o: In function `DropTable':
C:/msys/1.0/home/bruce/postgis-svn/loader/shp2pgsql-core.c:1518: undefined reference to `asprintf' C:/msys/1.0/home/bruce/postgis-svn/loader/shp2pgsql-core.c:1538: undefined reference to `asprintf' C:/msys/1.0/home/bruce/postgis-svn/loader/shp2pgsql-core.c:1510: undefined reference to `asprintf' C:/msys/1.0/home/bruce/postgis-svn/loader/shp2pgsql-core.c:1530: undefined reference to `asprintf'
shp2pgsql-core.o: In function `utf8':
C:/msys/1.0/home/bruce/postgis-svn/loader/shp2pgsql-core.c:1677: undefined reference to `libiconv_open' C:/msys/1.0/home/bruce/postgis-svn/loader/shp2pgsql-core.c:1695: undefined reference to `libiconv' C:/msys/1.0/home/bruce/postgis-svn/loader/shp2pgsql-core.c:1701: undefined reference to `libiconv_close'
shp2pgsql-core.o: In function `LoadData':
C:/msys/1.0/home/bruce/postgis-svn/loader/shp2pgsql-core.c:739: undefined reference to `asprintf' C:/msys/1.0/home/bruce/postgis-svn/loader/shp2pgsql-core.c:744: undefined reference to `asprintf'
collect2: ld returned 1 exit status
make[1]: *** [shp2pgsql-cli.exe] Error 1
make[1]: Leaving directory `/home/bruce/postgis-svn/loader'
make: *** [loaderdumper] Error 2

Any suggestions here?
Thanks!
Bruce


Mark Cave-Ayland wrote:
Bruce Rindahl wrote:

Using WinXP SP3 and MingW. Compiled and installed GEOS-3.1.0rc2. Compiled and installed PostgreSQL-8.3.5.
I got the following errors when running configure  postGIS-1.1.0SVN:

configure: error: the PGXS Makefile c:/Postgresql/8.3/lib/pgxs/src/makefiles/pgxs.mk cannot be found. Please install the PostgreSQL server development packages and re-run configure.

What did I miss?
Thanks
Bruce

Hi Bruce,

I'd say that configure has picked up the wrong pg_config from the system path - make sure you explicitly choose the MingW pg_config using the --with-pgconfig=/c/path/to/mingw/pg_config option.


HTH,

Mark.

_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to