[postgis-devel] GCC4 errors

Devrim GUNDUZ devrim at gunduz.org
Tue Sep 27 15:02:45 PDT 2005


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?

Regards,
--
Devrim GUNDUZ
Kivi Bilişim Teknolojileri - http://www.kivi.com.tr
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
                       http://www.gunduz.org


More information about the postgis-devel mailing list