FS#46346 - [vtk] Linking broken after gdal upgrade to 2.0.0-1

Attached to Project: Community Packages
Opened by Rafael Reggiani Manzo (manzo) - Saturday, 19 September 2015, 01:06 GMT
Last edited by Ray Rashif (schivmeister) - Wednesday, 23 September 2015, 22:18 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Ray Rashif (schivmeister)
Jaroslav Lichtblau (Dragonlord)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

After running a full system upgrade, linking of VTK starts to return the following error:

/usr/bin/ld: warning: libgdal.so.1, needed by /usr/lib/libvtkIOGDAL-6.1.so.1, not found (try using -rpath or -rpath-link)
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRFeature::GetFieldAsString(int)'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRPolygon::getInteriorRing(int)'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRPolygon::getExteriorRing()'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRFree'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRRegisterAll'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRGeometryCollection::getGeometryRef(int)'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRSFDriverRegistrar::Open(char const*, int, OGRSFDriver**)'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRLineString::getZ(int) const'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `CPLGetLastErrorMsg'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRFeature::GetGeometryRef()'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRPolygon::getNumInteriorRings() const'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRFeature::GetFieldAsDouble(int)'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRDataSource::DestroyDataSource(OGRDataSource*)'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRFeature::DestroyFeature(OGRFeature*)'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRGeometryCollection::getNumGeometries() const'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRSpatialReference::exportToWkt(char**) const'
/usr/lib/libvtkIOGDAL-6.1.so.1: undefined reference to `OGRFeature::GetFieldAsInteger(int)'
collect2: error: ld returned 1 exit status
CMakeFiles/energy.dir/build.make:373: recipe for target 'energy' failed
make[2]: *** [energy] Error 1
CMakeFiles/Makefile2:69: recipe for target 'CMakeFiles/energy.dir/all' failed

Additional info:

This may be just a question to recompile the vtk package against the new version of gdal installed.


Steps to reproduce:

* Do a full system upgrade (which upgrades gdal)
* Compile code that tries to link VTK


This task depends upon

Closed by  Ray Rashif (schivmeister)
Wednesday, 23 September 2015, 22:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  gdal is a core dependency, there is no way to build without it. A gdal1 has been provided tentatively, but this will conflict with some packages. One has to choose between vtk or those packages.
Comment by Rafael Reggiani Manzo (manzo) - Saturday, 19 September 2015, 01:08 GMT
Forgot to include this on the report but downgrading gdal fixes
Comment by Jaroslav Lichtblau (Dragonlord) - Sunday, 20 September 2015, 14:25 GMT
There is a bug report open in the vtk bug tracker
http://www.vtk.org/Bug/view.php?id=15692
Comment by Ray Rashif (schivmeister) - Sunday, 20 September 2015, 19:53 GMT
The vtk package has been neglected for a long, long time and it's my fault for keeping it away from the AUR. Jaroslav's gdal2.x rebuild was already overdue. I will build a gdal1.x or remove support for gdal if it looks reasonable. I am taking a look within a day.
Comment by Ray Rashif (schivmeister) - Wednesday, 23 September 2015, 09:51 GMT
Sorry, the gdal1 push was premature -- it should not provide gdal. The update will break. Furthermore, I forgot to make it clear that the few other packages would have to be sacrificed if you wish to install vtk. I will take a look at manipulating the installation to make them co-exist.

Not making a front-page announcement since only a few packages are affected.

edit: Please follow this forum announcement for further updates on this issue https://bbs.archlinux.org/viewtopic.php?pid=1564811
Comment by Rafael Reggiani Manzo (manzo) - Wednesday, 23 September 2015, 21:55 GMT
Thanks schivmeister!

I've upgraded both my desktop and notebook with gdal1 and now both are able to build my code correctly. So I confirm that gdal1, fixes the issue. Though my code does not use gdal, everything fine in my specific case.

I hope you can sort out the packaging issues soon. Thanks again!

Loading...