[GRASS-dev] gdal link error

Rashad M mohammedrashadkm at gmail.com
Thu May 9 00:20:02 PDT 2013


The problem was caused by a compiled gdal on /usr/local. I removed all
libgdal* files from /usr/local/lib and issue was gone.

grass7.0 compilation works fine now.




On Mon, May 6, 2013 at 7:55 PM, Rashad M <mohammedrashadkm at gmail.com> wrote:

> I am using Ubuntu 12.04 LTS and grass7.0 svn 56136
>
>
> after a distclean, ./configure and make
> I am getting these errors.
>
> I had ubuntugis PPA added to my apt repositories
>
> Any idea why this happens?
>
> grass/grass70/dist.x86_64-unknown-linux-gnu/lib
> -L/code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib
> -Wl,--export-dynamic
> -Wl,-rpath-link,/code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib  -o
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/bin/g.copy
> OBJ.x86_64-unknown-linux-gnu/main.o    -lgrass_manage.7.0.svn
> -lgrass_gis.7.0.svn  -lm
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGRGeometryTypeToName at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_L_TestCapability at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to `OGR_G_GetY at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_F_SetGeometry at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to `OGR_F_Create at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to `OGR_F_GetFID at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_DS_GetLayer at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_L_GetLayerDefn at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_Fld_Create at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRGetLinearUnits at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to `OGR_F_Destroy at GDAL_1.8
> '
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to `VSIFree at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to `OSRExportToWkt at GDAL_1.8
> '
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_G_AddPoint at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRGetAttrValue at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `SetCSVFilenameHook at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_DS_GetLayerCount at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_L_CreateField at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_Fld_SetWidth at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGRRegisterAll at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_F_SetFieldInteger at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to `OGR_G_GetZ at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_FD_GetFieldIndex at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to `CSLDestroy at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_G_AddGeometry at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGRGetDriverByName at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_F_GetFieldIndex at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to `OGROpen at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_G_GetGeometryCount at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_L_GetFeature at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRExportToProj4 at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_FD_GetGeomType at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to `OSRIsProjected at GDAL_1.8
> '
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_G_CreateGeometry at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_F_UnsetField at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_G_DestroyGeometry at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_Fld_Destroy at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_L_ResetReading at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_L_StartTransaction at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_L_CommitTransaction at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_DS_DeleteLayer at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_L_CreateFeature at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRNewSpatialReference at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_G_GetGeometryRef at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRExportToPrettyWkt at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRMorphFromESRI at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_L_GetNextFeature at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_G_GetPointCount at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRIsGeographic at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_Dr_CreateDataSource at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to `OSRMorphToESRI at GDAL_1.8
> '
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_Dr_GetName at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRImportFromProj4 at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_L_GetFIDColumn at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_F_GetGeometryRef at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_F_SetFieldString at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_DS_GetDriver at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_F_SetFieldDouble at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_FD_GetName at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_DS_Destroy at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_DS_CreateLayer at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `CSLSetNameValue at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_L_DeleteFeature at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to `OSRGetUTMZone at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRDestroySpatialReference at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to `OGR_G_GetX at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_DS_GetLayerByName at GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGR_G_GetGeometryType at GDAL_1.8'
> collect2: ld returned 1 exit status
> make: *** [/code/grass/grass70/dist.x86_64-unknown-linux-gnu/bin/g.copy]
> Error 1
>
>
> --
> Regards,
>    Rashad
>



-- 
Regards,
   Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130509/83966ad1/attachment-0001.html>


More information about the grass-dev mailing list