[postgis-users] error compling postgis fron cvs on win32

TECHER Jean David davidtecher at yahoo.fr
Mon Oct 25 05:28:15 PDT 2004


I use windows xp pack 1, mingw and msys

can you give me a example :

it is ok if i put

#if defined(__MINGW32__) || defined(_MSC_VER)
#include <sys/param.h>
#include <sys/types.h>
#endif

????
----------------------------------------------------------------
TECHER Jean David
Responsable Informatique 01MAP
e-mail: davidtecher at yahoo.fr
site: http://techer.pascal.free.fr/postgis/
------------------------------------------------------------
----- Original Message -----
From: "Norman Vine" <nhv at cape.com>
To: "PostGIS Users Discussion" <postgis-users at postgis.refractions.net>
Sent: Monday, October 25, 2004 2:25 PM
Subject: RE: [postgis-users] error compling postgis fron cvs on win32


> TECHER Jean David writes:
> >
> > Seems that in lwgeom/wktunparse.c, I have to made the follownig changes:
> > (adding
>
> What system / compiler are you using ??
>
> The includes you commented out are necessary for Unix like systems
> so these changes if necessary should be #ifdefed
>
> i.e. if this is for Native Win32 perhaps something like
>
> #if defined(__MINGW32__) || defined(_MSC_VER)
> .....
> #else
> ....
> #endif
>
> Norman
>
> >
> > #include <sys/param.h>
> > #include <sys/types.h>
> >
> > file:
> > lwgeom/wktunparse.c ---------------------------------------------------
> > #include "wktparse.h"
> > #include <string.h>
> > #include <math.h>
> > #include <stdio.h>
> > //TO get byte order
> > +++#include <sys/param.h>
> > +++#include <sys/types.h>
> > //#include <netinet/in.h>
> > //#include <netinet/in_systm.h>
> > //#include <netinet/ip.h>
> >
> > #include "liblwgeom.h"
> > --------------------------------------------------------------------
> >
> > Then in lwgeom/lwgeom_inout.c
> > file:  lwgeom/lwgeom_inout.c ---------------------------------------
> > #include "postgres.h"
> >
> > #include <math.h>
> > #include <float.h>
> > #include <string.h>
> > #include <stdio.h>
> > #include <errno.h>
> >
> > ++#include <sys/param.h>
> > ++#include <sys/types.h>
> >
> > #include "access/gist.h"
> > #include "access/itup.h"
> > #include "access/rtree.h"
> > ---------------------------------------------------------------------
> >
> > QUESTION: Is it correct...Let me know????
> > ----------------------------------------------------------------
> > TECHER Jean David
> > Responsable Informatique 01MAP
> > e-mail: davidtecher at yahoo.fr
> > site: http://techer.pascal.free.fr/postgis/
> > ------------------------------------------------------------
> > ----- Original Message -----
> > From: "TECHER Jean David" <davidtecher at yahoo.fr>
> > To: "PostGIS Users Discussion" <postgis-users at postgis.refractions.net>
> > Sent: Monday, October 25, 2004 12:16 PM
> > Subject: [postgis-users] error compling postgis fron cvs on win32
> >
> >
> > > Hi
> > >
> > > I tried to compil postgis from cvs with postgresql 8.0.0 beta 3 - geos
> > 2.0.0
> > > and proj 4.4.8
> > >
> > > I got this error
> > >
> > > $ make
> > > make -C lwgeom
> > > make[1]: Entering directory
> > > `/home/postgresql-8.0.0beta3/contrib/postgis-cvs/lwgeom'
> > > ../geos_version.sh /c/PostgreSQLWin32 > postgis_geos_version.h
> > >
> >
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
> > >
> >
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/c/PostgreSQLWin32/etc/post
> > >
> >
gresql"'  -DUSE_VERSION=80 -DPOSTGIS_LIB_VERSION='"1.0.0"' -DPOSTGIS_SCRIPTS
> > >
> >
_VERSION='"0.1.0"' -I/c/PostgreSQLWin32/include -DUSE_GEOS -I/c/PostgreSQLWi
> > >
> >
2/include -DUSE_PROJ  -DUSE_STATS  -I/home/postgresql-8.0.0beta3/contrib/p
> > > ostgis-cvs/../../src/include -I./src/include/port/win32 -DEXEC_BACKEND
> > >
> >
"-I/home/postgresql-8.0.0beta3/contrib/postgis-cvs/../../src/include/port/wi
> > > n32"  -c -o wktunparse.o wktunparse.c
> > > wktunparse.c:18:30: netinet/in_systm.h: No such file or directory
> > > wktunparse.c:19:24: netinet/ip.h: No such file or directory
> > > wktunparse.c: In function `getMachineEndian':
> > > wktunparse.c:31: `LITTLE_ENDIAN' undeclared (first use in this
function)
> > > wktunparse.c:31: (Each undeclared identifier is reported only once
> > > wktunparse.c:31: for each function it appears in.)
> > > wktunparse.c:35: `BIG_ENDIAN' undeclared (first use in this function)
> > > wktunparse.c: In function `unparse_WKB':
> > > wktunparse.c:544: `LITTLE_ENDIAN' undeclared (first use in this
function)
> > > make[1]: *** [wktunparse.o] Error 1
> > > make[1]: Leaving directory
> > > `/home/postgresql-8.0.0beta3/contrib/postgis-cvs/lwgeom'
> > > make: *** [liblwgeom] Error 2
> > >
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users





More information about the postgis-users mailing list