[postgis-devel] GCC4 errors

strk at refractions.net strk at refractions.net
Wed Sep 28 01:18:31 PDT 2005


The StrategyNumber undeclared error looks like a mismatch between
USE_VERSION and actual pgsql version being used during build.

Can you show full gcc line, and verify correctness of USE_VERSION ?

Also, did you use autoconf-based configuration (head branch) ?

--strk;


On Wed, Sep 28, 2005 at 01:02:45AM +0300, Devrim GUNDUZ wrote:
> 
> 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

> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel




More information about the postgis-devel mailing list