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 <[email protected]> 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@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@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@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@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@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@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@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@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRGetLinearUnits@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@GDAL_1.8
> '
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to `VSIFree@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to `OSRExportToWkt@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRGetAttrValue@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `SetCSVFilenameHook@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@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@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGRRegisterAll@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@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@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to `CSLDestroy@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `OGRGetDriverByName@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to `OGROpen@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@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRExportToProj4@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to `OSRIsProjected@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@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@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@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@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@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@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@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@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRNewSpatialReference@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRExportToPrettyWkt@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRMorphFromESRI@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@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRIsGeographic@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to `OSRMorphToESRI@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRImportFromProj4@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@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@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@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@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@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@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@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_vector.7.0.svn.so: undefined reference to
> `CSLSetNameValue@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@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to `OSRGetUTMZone@GDAL_1.8'
> /code/grass/grass70/dist.x86_64-unknown-linux-gnu/lib/
> libgrass_gproj.7.0.svn.so: undefined reference to
> `OSRDestroySpatialReference@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@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@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@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
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to