[postgis-users] building postgis 0.8.1 on Postgresql Native Win32
Norman Vine
nhv at cape.com
Tue Apr 6 00:18:14 PDT 2004
Hisaji ONO writes:
>
> I've tried to build building postgis 0.8.1 on Postgresql Native Win32(
> http://momjian.postgresql.org/main/writings/pgsql/win32.html, on latest
> MinGW + MSYS).
Oooh.. I will have to try this when I get some time :-)
> For default(enabling GEOS), I've got many error messages and this didn't
> stop.
>
> And disenable GEOS, I've got following error messages.
>
> gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
> ns -g -I. -I../../src/include
> -I./src/include/port/win32 -DEXEC_BACKEND "-I../../s
> rc/include/port/win32" -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -DUS
> E_VE RSION=73 -c -o
> postgis_debug.o postgis_debug.c
> In file included from postgis_debug.c:34:
> postgis.h:547:1: warning: "max" redefined
> postgis.h:548:1: warning: "min" redefined
Arrgh... I thought the latest MingW compiler didn't have this problem.
In any case we probably shouldn't be using raw min(), max() macros
but something like PG_MAX(), PG_MIN().
However adding
-DNO_MIN_MAX
to your compiler flags should get you by this one
> postgis_debug.c: In function `decode_wkb_collection':
> postgis_debug.c:213: `BYTE_ORDER' undeclared (first use in this function)
> postgis_debug.c:213: `LITTLE_ENDIAN' undeclared (first use in this function)
> postgis_debug.c:282: `BYTE_ORDER' undeclared (first use in this function)
#ifdef __MINGW32__
#include <sys/param.h>
#endif
HTH
Norman
More information about the postgis-users
mailing list