[postgis-devel] GCC4 errors

Mark Cave-Ayland m.cave-ayland at webbased.co.uk
Wed Sep 28 01:46:24 PDT 2005


> -----Original Message-----
> From: postgis-devel-bounces at postgis.refractions.net 
> [mailto:postgis-devel-bounces at postgis.refractions.net] On 
> Behalf Of Devrim GUNDUZ
> Sent: 27 September 2005 23:03
> To: PostGIS Development Discussion
> Subject: [postgis-devel] GCC4 errors
> 
> 
> 
> Hi,
> 
> While trying to build PostGIS on Fedora Core 4, I got many errors and 
> warnings:
> 
> Compiling it with CFLAGS=-Wno-pointer-sign surpresses warnings ;) ; 
> however we have another problem:
> 
> ==============================================================
> ==============
> lwgeom_gist.c: In function 'LWGEOM_gist_consistent':
> lwgeom_gist.c:624: error: 'StrategyNumber' undeclared (first 
> use in this 
> function)
> lwgeom_gist.c:624: error: (Each undeclared identifier is 
> reported only 
> once
> lwgeom_gist.c:624: error: for each function it appears in.)
> lwgeom_gist.c:624: error: syntax error before 'strategy'
> lwgeom_gist.c:647: warning: pointer targets in passing argument 1 of 
> 'getbox2d_p' differ in signedness
> lwgeom_gist.c:655: error: 'strategy' undeclared (first use in this 
> function)
> lwgeom_gist.c: At top level:
> lwgeom_gist.c:668: error: syntax error before 'StrategyNumber'
> lwgeom_gist.c:669: warning: 
> 'lwgeom_rtree_internal_consistent' was used 
> with no prototype before its definition
> lwgeom_gist.c: In function 'lwgeom_rtree_internal_consistent':
> lwgeom_gist.c:669: warning: old-style function definition
> lwgeom_gist.c:676: error: 'strategy' undeclared (first use in this 
> function)
> lwgeom_gist.c:678: error: 'key' undeclared (first use in this 
> function)
> lwgeom_gist.c:678: error: 'query' undeclared (first use in 
> this function)
> lwgeom_gist.c: At top level:
> lwgeom_gist.c:750: error: syntax error before 'StrategyNumber'
> lwgeom_gist.c:751: warning: 'lwgeom_rtree_leaf_consistent' 
> was used with 
> no prototype before its definition
> lwgeom_gist.c: In function 'lwgeom_rtree_leaf_consistent':
> lwgeom_gist.c:751: warning: old-style function definition
> lwgeom_gist.c:758: error: 'strategy' undeclared (first use in this 
> function)
> lwgeom_gist.c:761: error: 'key' undeclared (first use in this 
> function)
> lwgeom_gist.c:761: error: 'query' undeclared (first use in 
> this function)
> make[1]: *** [lwgeom_gist.o] Error 1
> make: *** [liblwgeom] Error 2 
> ==============================================================
> ==============
> 
> I'll try to fix all GCC4 warnings ( I mean, like "lwgeom_gist.c:463: 
> warning: pointer targets in passing argument 1 of 
> 'getbox2d_p' differ in 
> signedness"), but I could not see the fix for the above.
> 
> Any comments?


Hi Devrim,

That's strange, as we're happily running PostGIS 1.0.3 on FC4 here in
production. Maybe it is an SELinux problem preventing access to certain
files?


Kind regards,

Mark.

------------------------
WebBased Ltd
South West Technology Centre
Tamar Science Park
Plymouth
PL6 8BT 

T: +44 (0)1752 791021
F: +44 (0)1752 791023
W: http://www.webbased.co.uk





More information about the postgis-devel mailing list