[postgis-users] Can't compile Postgis 0.9.0 onPostgress7.4.5.1(Cygwin)

strk at refractions.net strk at refractions.net
Mon Oct 4 22:48:44 PDT 2004


On Tue, Oct 05, 2004 at 11:27:47AM +0700, Januar V. Simarmata wrote:
> Hi Strk,
> 
> It seems that my platform support preprocessor:
> 
> ******************
> $ cpp test
> # 1 "test"
> # 1 "<built-in>"
> # 1 "<command line>"
> # 1 "test"
> 
> 
> less then 100
> ******************
> 
> Needs help,

My only guess is you somehow got to corrupt source files.

> > > > > > > postgis_geos_wrapper.cpp:203:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:245:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:278:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:363:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:399:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:437:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:469:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:533:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:565:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:1519:5: invalid character '\206' in #if

See line 203..1519 with an hex dumper and find that \206 char.
Also, run the compiler and not cpp directly on the 'test' file you
wrote before to make sure you use the same 'cpp' as the one used 
when building.
Note that the compiler is the C++ compiler for postgis_geos_wrapper.cpp

--strk;

> 
> Jan
> ----- Original Message ----- 
> From: <strk at refractions.net>
> To: "PostGIS Users Discussion" <postgis-users at postgis.refractions.net>
> Sent: Monday, October 04, 2004 6:59 PM
> Subject: Re: [postgis-users] Can't compile Postgis 0.9.0
> onPostgress7.4.5.1(Cygwin)
> 
> 
> > On Mon, Oct 04, 2004 at 06:29:54PM +0700, Januar V. Simarmata wrote:
> > > Hi Strk,
> > >
> > > I am sure it is an environmental issue, not a code bug.
> > > Anyway, I've looked at behind the "letter" and found that it is "3C".
> That's
> > > different with the ascii code you mentioned before.
> >
> > 3C is hex for \074 octal, which is a '<'.
> > That's correct!
> >
> > > Other thing,
> > > I don't understand very much about preprocessor. How to check this?
> > > I am using:
> > >
> > > $ gcc --version
> > > gcc (GCC) 3.3.3 (cygwin special)
> > > Copyright (C) 2003 Free Software Foundation, Inc.
> > > This is free software; see the source for copying conditions.  There is
> NO
> > > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> > >
> > > $ make --version
> > > GNU Make 3.80
> > > Copyright (C) 2002  Free Software Foundation, Inc.
> > > This is free software; see the source for copying conditions.
> > > There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> > > PARTICULAR PURPOSE.
> > >
> > > Needs you help,
> >
> > Edit a file 'test':
> > #define NUMBER 10
> > #if NUMBER < 100
> > less then 100
> > #else
> > greater or equal 100
> > #endif
> > $ cpp test
> > see the output.
> > --strk;
> >
> > >
> > > Jan
> > > ----- Original Message ----- 
> > > From: <strk at refractions.net>
> > > To: "PostGIS Users Discussion" <postgis-users at postgis.refractions.net>
> > > Sent: Monday, October 04, 2004 2:46 PM
> > > Subject: Re: [postgis-users] Can't compile Postgis 0.9.0 on
> > > Postgress7.4.5.1(Cygwin)
> > >
> > >
> > > > On Mon, Oct 04, 2004 at 10:34:34AM +0700, Januar V. Simarmata wrote:
> > > > > I found that it is already '<' character:
> > > > >
> > > > > #if GEOS_LAST_INTERFACE < 2
> > > > >
> > > > > How to fix it?
> > > >
> > > > It's not a bug!
> > > > My guess was the '<' is not really a '<' but an equivalent-looking
> > > > char. Two things to check:
> > > > 1) Is it really a '<' ?
> > > > 2) Does you preprocessor accept that kind of expression ?
> > > > --strk;
> > > >
> > > > >
> > > > > cheers,
> > > > > Jan
> > > > > ----- Original Message ----- 
> > > > > From: <strk at refractions.net>
> > > > > To: "'PostGIS Users Discussion'"
> <postgis-users at postgis.refractions.net>
> > > > > Sent: Sunday, October 03, 2004 11:00 PM
> > > > > Subject: Re: [postgis-users] Can't compile Postgis 0.9.0 on
> Postgress
> > > > > 7.4.5.1(Cygwin)
> > > > >
> > > > >
> > > > > > On Sun, Oct 03, 2004 at 09:15:14PM +0700, Januar V. Simarmata
> wrote:
> > > > > > > postgis_geos_wrapper.cpp:203:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:245:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:278:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:363:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:399:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:437:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:469:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:533:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:565:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:1519:5: invalid character '\206' in #if
> > > > > > > postgis_geos_wrapper.cpp:1535:5: invalid character '\206' in #if
> > > > > > > make: *** [postgis_geos_wrapper.o] Error 1
> > > > > >
> > > > > > Is it the '<' char ??
> > > > > > Can it be something changed it into a weird char ?
> > > > > > Check those line and make sure the '<' is actually an ascii '<'
> > > > > > (\074)
> > > > > >
> > > > > > --strk;
> 
> _______________________________________________
> 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