[postgis-devel] Unable to compile with MinGW/MSYS - GEOS Problem

Paul Ramsey pramsey at cleverelephant.ca
Fri Dec 11 08:10:19 PST 2009


Following those instructions it "werks for me". Did you do the obscure
edit to the MinGW header files described in the page?

P

On Fri, Dec 11, 2009 at 7:36 AM, Pierre Racine
<Pierre.Racine at sbf.ulaval.ca> wrote:
> Hi,
>
> I'm carefully following the instructions in:
>
> http://trac.osgeo.org/postgis/wiki/UsersWikiWinCompile
>
> trying to compile PostGIS 1.4.1 RC2 with PostgreSQL 8.4.1, but GEOS does not compile.
>
> The first attempt with the geos-svn version ends with:
>
> ---------------------------------------
> g++ -g -O2 -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -o .libs/IteratedBufferStressTest.exe IteratedBufferStressTest.o  ../../../..//source/.libs/libgeos.dll.a -L/c/postgres/lib
> creating IteratedBufferStressTest.exe
> .libs/lt-IteratedBufferStressTest.exe.c: In function `main':
> .libs/lt-IteratedBufferStressTest.exe.c:79: warning: passing arg 2 of `execv' from incompatible pointer type
> make[4]: Leaving directory `/c/thesrc/geos-svn/tests/perf/operation/buffer'
> ...
> ---------------------------------------
>
> Another attempt using geos-3.2.0rc4 ends with:
>
> ---------------------------------------
> g++ -DHAVE_CONFIG_H -I. -I../../../../source/headers -I../../../../source/headers/geos -I../../../../source/headers -I../../../../source/io/markup    -g -O2 -DGEOS_INLINE  -pedantic -Wall -ansi -Wno-long-long  -ffloat-store -MT IteratedBufferStressTest.o -MD -MP -MF .deps/IteratedBufferStressTest.Tpo -c -o IteratedBufferStressTest.o IteratedBufferStressTest.cpp
> mv -f .deps/IteratedBufferStressTest.Tpo .deps/IteratedBufferStressTest.Po
> /bin/sh ../../../../libtool --tag=CXX   --mode=link g++  -g -O2 -DGEOS_INLINE  -pedantic -Wall -ansi -Wno-long-long  -ffloat-store   -o IteratedBufferStressTest.exe IteratedBufferStressTest.o ../../../../source/libgeos.la ../../../../source/libgeos.la
> libtool: link: g++ -g -O2 -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ff
> loat-store -o .libs/IteratedBufferStressTest.exe IteratedBufferStressTest.o  ../../../../source/.libs/libgeos.dll.a -L/c/postgres/lib
> ./.libs/lt-IteratedBufferStressTest.c:267: warning: string length `4299' is greater than the length `509' ISO C89 compilers are required to support
> ./.libs/lt-IteratedBufferStressTest.c: In function `main':
> ./.libs/lt-IteratedBufferStressTest.c:362: warning: implicit declaration of function `_spawnv'
> ./.libs/lt-IteratedBufferStressTest.c:362: error: `_P_WAIT' undeclared (first use in this function)
> ./.libs/lt-IteratedBufferStressTest.c:362: error: (Each undeclared identifier is reported only once
> ./.libs/lt-IteratedBufferStressTest.c:362: error: for each function it appears in.)
> c:\MinGW\bin\strip.exe: './IteratedBufferStressTest.exe': pas de fichier comme tel
> ../../../../libtool: line 7842: 1: ambiguous redirect
>
> -------------------------------------------------
>
> What version should I use? How can I fix this?
>
> Thanks for any hint.
>
> Pierre
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>



More information about the postgis-devel mailing list