[postgis-users] GDALFPolygonize undefined in rtpostgis-2.0

Gold, Jack L (US SSA) jack.gold at baesystems.com
Fri Apr 20 05:04:10 PDT 2012


Running ldconfig did not help, but it was worth a shot.  Running "make check" in raster/test/core yields a symbol lookup error on GDALFPolygonize.   Below is the dump of make check:
--Jack

[ciduser at CIDServerT core]$ make check
make -C ../../rt_core
make[1]: Entering directory `/home/ciduser/workspace/DB/PostGIS_2.0/postgis-2.0.1SVN/raster/rt_core'
gcc -g -O2  -fPIC -DPIC  -I../../liblwgeom -I/usr/local/include  -I/usr/local/include   -c -o rt_api.o rt_api.c
rt_api.c: In function \u2018rt_util_clamp_to_1BB\u2019:
rt_api.c:87: warning: incompatible implicit declaration of built-in function \u2018fmin\u2019
rt_api.c:87: warning: incompatible implicit declaration of built-in function \u2018fmax\u2019
rt_api.c: In function \u2018rt_util_clamp_to_2BUI\u2019:
rt_api.c:92: warning: incompatible implicit declaration of built-in function \u2018fmin\u2019
rt_api.c:92: warning: incompatible implicit declaration of built-in function \u2018fmax\u2019
rt_api.c: In function \u2018rt_util_clamp_to_4BUI\u2019:
rt_api.c:97: warning: incompatible implicit declaration of built-in function \u2018fmin\u2019
rt_api.c:97: warning: incompatible implicit declaration of built-in function \u2018fmax\u2019
rt_api.c: In function \u2018rt_util_clamp_to_8BSI\u2019:
rt_api.c:102: warning: incompatible implicit declaration of built-in function \u2018fmin\u2019
rt_api.c:102: warning: incompatible implicit declaration of built-in function \u2018fmax\u2019
rt_api.c: In function \u2018rt_util_clamp_to_8BUI\u2019:
rt_api.c:107: warning: incompatible implicit declaration of built-in function \u2018fmin\u2019
rt_api.c:107: warning: incompatible implicit declaration of built-in function \u2018fmax\u2019
rt_api.c: In function \u2018rt_util_clamp_to_16BSI\u2019:
rt_api.c:112: warning: incompatible implicit declaration of built-in function \u2018fmin\u2019
rt_api.c:112: warning: incompatible implicit declaration of built-in function \u2018fmax\u2019
rt_api.c: In function \u2018rt_util_clamp_to_16BUI\u2019:
rt_api.c:117: warning: incompatible implicit declaration of built-in function \u2018fmin\u2019
rt_api.c:117: warning: incompatible implicit declaration of built-in function \u2018fmax\u2019
rt_api.c: In function \u2018rt_util_clamp_to_32BSI\u2019:
rt_api.c:122: warning: incompatible implicit declaration of built-in function \u2018fmin\u2019
rt_api.c:122: warning: incompatible implicit declaration of built-in function \u2018fmax\u2019
rt_api.c: In function \u2018rt_util_clamp_to_32BUI\u2019:
rt_api.c:127: warning: incompatible implicit declaration of built-in function \u2018fmin\u2019
rt_api.c:127: warning: incompatible implicit declaration of built-in function \u2018fmax\u2019
rt_api.c: In function \u2018rt_util_clamp_to_32F\u2019:
rt_api.c:132: warning: incompatible implicit declaration of built-in function \u2018fmin\u2019
rt_api.c:132: warning: incompatible implicit declaration of built-in function \u2018fmax\u2019
rt_api.c: In function \u2018rt_band_get_summary_stats\u2019:
rt_api.c:2448: warning: incompatible implicit declaration of built-in function \u2018round\u2019
rt_api.c: In function \u2018rt_band_get_histogram\u2019:
rt_api.c:2700: warning: incompatible implicit declaration of built-in function \u2018log2\u2019
rt_api.c: In function \u2018rt_band_get_quantiles_stream\u2019:
rt_api.c:3377: warning: incompatible implicit declaration of built-in function \u2018round\u2019
rt_api.c: In function \u2018rt_band_reclass\u2019:
rt_api.c:4374: warning: incompatible implicit declaration of built-in function \u2018round\u2019
rt_api.c: In function \u2018rt_raster_compute_skewed_raster\u2019:
rt_api.c:5732: warning: incompatible implicit declaration of built-in function \u2018fmax\u2019
rt_api.c: In function \u2018rt_raster_gdal_warp\u2019:
rt_api.c:8676: warning: incompatible implicit declaration of built-in function \u2018fmax\u2019
rt_api.c: In function \u2018rt_raster_gdal_rasterize\u2019:
rt_api.c:9700: warning: incompatible implicit declaration of built-in function \u2018fmax\u2019
rt_api.c: In function \u2018rt_raster_intersects_algorithm\u2019:
rt_api.c:10314: warning: incompatible implicit declaration of built-in function \u2018fmin\u2019
rt_api.c:10440: warning: incompatible implicit declaration of built-in function \u2018fmax\u2019
ar rs librtcore.a rt_api.o
ar: creating librtcore.a
make[1]: Leaving directory `/home/ciduser/workspace/DB/PostGIS_2.0/postgis-2.0.1SVN/raster/rt_core'
gcc -g -O2  -fPIC -DPIC -I../../rt_core -I../../../liblwgeom  -I/usr/local/include -I/usr/local/include -c testapi.c
mode=link gcc -g -O2  -fPIC -DPIC -I../../rt_core -I../../../liblwgeom  -I/usr/local/include -I/usr/local/include testapi.o ../../rt_core/librtcore.a ../../rt_core/librtcore.a ../../../liblwgeom/.libs/liblwgeom.a -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos_c -lm  -o testapi
gcc -g -O2  -fPIC -DPIC -I../../rt_core -I../../../liblwgeom  -I/usr/local/include -I/usr/local/include -c testwkb.c
mode=link gcc -g -O2  -fPIC -DPIC -I../../rt_core -I../../../liblwgeom  -I/usr/local/include -I/usr/local/include testwkb.o ../../rt_core/librtcore.a ../../rt_core/librtcore.a ../../../liblwgeom/.libs/liblwgeom.a -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos_c -lm  -o testwkb
./testapi
Checking empty and hasnoband functions...
Checking raster properties...
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
./testapi: symbol lookup error: ./testapi: undefined symbol: GDALFPolygonize
make: *** [check] Error 127

-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of Bborie Park
Sent: Thursday, April 19, 2012 6:08 PM
To: postgis-users at postgis.refractions.net
Subject: Re: [postgis-users] GDALFPolygonize undefined in rtpostgis-2.0

The "result: none required" indicates that the GDALFPolygonize function was found in whatever GDAL library the configure ran against.  If GDALFPolygonize was not found, polgonization of rasters is treated differently and uses the function GDALPolygonize instead.

Since you are using GDAL 1.9, we know that it has GDALFPolygonize.

If possible, can you go into raster/test/core and run "make check".
That'll test the C API for PostGIS Raster.

Completely a wild shot, can you run "ldconfig".  I sometimes find refreshing the shared libraries cache helps.

-bborie




More information about the postgis-users mailing list