[postgis-users] GDALFPolygonize undefined in rtpostgis-2.0

Bborie Park bkpark at ucdavis.edu
Thu Apr 19 15:08:23 PDT 2012


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

On 04/19/2012 02:33 PM, Gold, Jack L (US SSA) wrote:
> BBorie,
> 
> The config.log indicates "result: none required".  I know this is for the ac_cv_search, but does that have any effect on the symbol being compiled in?  I searched my system for alternate gdal installs and found none.
> 
> --Jack
> 
> -----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 5:10 PM
> To: postgis-users at postgis.refractions.net
> Subject: Re: [postgis-users] GDALFPolygonize undefined in rtpostgis-2.0
> 
> Jack,
> 
> My guess is that there are more than one GDAL libraries on your system and the GDAL library used for testing the presence of GDAFPolygonize is different than the GDAL library attempting to be loaded.  Since you built postgis from source, you should be able to check config.log and inspect the lines regarding the GDALFPolygonize test.
> 
> -bborie
> 
> On 04/19/2012 02:02 PM, Gold, Jack L (US SSA) wrote:
>> I am building and installing PostGIS 2.0.1SVN.  Whenever I attempt to load rtpostgis.sql I receive the following error:
>>
>> ERROR:  could not load library "/usr/local/pgsql/lib/rtpostgis-2.0": 
>> /usr/local/pgsql/lib/rtpostgis-2.0: undefined symbol: GDALFPolygonize
>>
>>
>> ********** Error **********
>>
>> ERROR: could not load library "/usr/local/pgsql/lib/rtpostgis-2.0": 
>> /usr/local/pgsql/lib/rtpostgis-2.0: undefined symbol: GDALFPolygonize 
>> SQL state: XX000
>>
>>
>> I built and installed postgresql-9.1.3 (--with-python),  proj-4.8.0 (--without-jni), geos-3.3.2 (--enable-python), and gdal-1.9.0 (--with-python --with-java=/opt/jdk1.6.0_26 --with-geos=../geos-3.3.2/tools/geos-config).
>>
>> Finally, I built PostGIS-2.0.1SVN --with-raster -with-pgconfig=/usr/local/pgsql/bin/pg_config -with-geosconfig=../geos-3.3.2/tools/geos-config.
>>
>> /etc/ld.so.conf.d contains postgresql.conf:
>>
>> /usr/local/pgsql/lib
>> /usr/local/lib
>> /usr/lib
>>
>> All libraries are stored in one of these locations.
>>
>> $nm -u /usr/local/pgsql/lib/rtpostgis-2.0 | grep GDALFPolygonize U 
>> GDALFPolygonize
>>
>> $ nm --dynamic /usr/local/lib/libgdal.so.1.16.0 | grep GDALFPolygonize
>> 004b4a40 T GDALFPolygonize
>>
>> Any idea why the symbol is undefined in rtpostgis-2.0?
>>
>> --Jack Gold
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> postgis-users mailing list
>> postgis-users at postgis.refractions.net
>> http://postgis.refractions.net/mailman/listinfo/postgis-users
> 
> --
> Bborie Park
> Programmer
> Center for Vectorborne Diseases
> UC Davis
> 530-752-8380
> bkpark at ucdavis.edu
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> 

-- 
Bborie Park
Programmer
Center for Vectorborne Diseases
UC Davis
530-752-8380
bkpark at ucdavis.edu



More information about the postgis-users mailing list