Bug#747436: libvtk6: Libraries are possibly underlinked

Marco Nolden debbugs at manol.org
Thu May 8 16:42:44 UTC 2014


Package: libvtk6
Version: 6.0.0-6
Severity: normal

Dear Maintainer,

trying to build a project using libvtk6, I encountered link errors:

/usr/bin/c++     -Wno-deprecated     CMakeFiles/JPEGWriter.dir/JPEGWriter.cxx.o  -o JPEGWriter -rdynamic /usr/lib/x86_64-linux-gnu/libvtkIOImage-6.0.so.6.0.0 /usr/lib/x86_64-linux-gnu/libvtkDICOMParser-6.0.so.6.0.0 /usr/lib/x86_64-linux-gnu/libvtkIOCore-6.0.so.6.0.0 /usr/lib/x86_64-linux-gnu/libvtkCommonExecutionModel-6.0.so.6.0.0 /usr/lib/x86_64-linux-gnu/libvtkCommonDataModel-6.0.so.6.0.0 /usr/lib/x86_64-linux-gnu/libvtkCommonSystem-6.0.so.6.0.0 /usr/lib/x86_64-linux-gnu/libvtkCommonTransforms-6.0.so.6.0.0 /usr/lib/x86_64-linux-gnu/libvtkCommonMisc-6.0.so.6.0.0 /usr/lib/x86_64-linux-gnu/libvtkCommonMath-6.0.so.6.0.0 /usr/lib/x86_64-linux-gnu/libvtkCommonCore-6.0.so.6.0.0 /usr/lib/x86_64-linux-gnu/libvtksys-6.0.so.6.0.0 -ldl /usr/lib/x86_64-linux-gnu/libvtkmetaio-6.0.so.6.0.0 -ljpeg -lpng -lz -ltiff 
CMakeFiles/JPEGWriter.dir/JPEGWriter.cxx.o: In function `vtkIOImage_AutoInit::vtkIOImage_AutoInit()':
JPEGWriter.cxx:(.text._ZN19vtkIOImage_AutoInitC2Ev[_ZN19vtkIOImage_AutoInitC5Ev]+0xd): undefined reference to `vtkIOMPIImage_AutoInit_Construct()'
CMakeFiles/JPEGWriter.dir/JPEGWriter.cxx.o: In function `vtkIOImage_AutoInit::~vtkIOImage_AutoInit()':
JPEGWriter.cxx:(.text._ZN19vtkIOImage_AutoInitD2Ev[_ZN19vtkIOImage_AutoInitD5Ev]+0xd): undefined reference to `vtkIOMPIImage_AutoInit_Destruct()'
collect2: error: ld returned 1 exit status

They do not occur with a self-compiled VTK.

I could reduce it to a minimal example:

CMakeLists.txt
==============
cmake_minimum_required(VERSION 2.8)
PROJECT(JPEGWriter)
find_package(VTK REQUIRED)
include(${VTK_USE_FILE})
add_executable(JPEGWriter JPEGWriter.cxx)
target_link_libraries(JPEGWriter vtkIOImage)

JPEGWriter.cxx
==============
#include <vtkJPEGWriter.h>
#include <vtkSmartPointer.h>
 
int main ( int argc, char *argv[] )
{
  vtkSmartPointer<vtkJPEGWriter> writer =
    vtkSmartPointer<vtkJPEGWriter>::New();
  return EXIT_SUCCESS;
}


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libvtk6 depends on:
ii  libavcodec54              6:9.13-1
ii  libavformat54             6:9.13-1
ii  libavutil52               6:9.13-1
ii  libc6                     2.18-5
ii  libexpat1                 2.1.0-4
ii  libfontconfig1            2.11.0-5
ii  libfreetype6              2.5.2-1
ii  libgcc1                   1:4.9.0-2
ii  libgdal1h                 1.10.1+dfsg-5+b1
ii  libgl1-mesa-glx [libgl1]  10.1.1-1
ii  libgl2ps0                 1.3.8-1
ii  libglu1-mesa [libglu1]    9.0.0-2
ii  libhdf5-7 [libhdf5-7]     1.8.12+docs-1.1
ii  libhwloc5                 1.9-3
ii  libice6                   2:1.0.8-2
ii  libjpeg8                  8d-2
ii  libjsoncpp0               0.6.0~rc2-3
ii  libmysqlclient18          5.5.37-1
ii  libodbc1                  2.3.1-3
ii  libogg0                   1.3.1-1
ii  libopenmpi1.6             1.6.5-8
ii  libpng12-0                1.2.50-1
ii  libpq5                    9.3.4-1
ii  libpython2.7              2.7.6-8
ii  libqt4-network            4:4.8.6+dfsg-1
ii  libqt4-opengl             4:4.8.6+dfsg-1
ii  libqt4-sql                4:4.8.6+dfsg-1
ii  libqt4-xmlpatterns        4:4.8.6+dfsg-1
ii  libqtcore4                4:4.8.6+dfsg-1
ii  libqtgui4                 4:4.8.6+dfsg-1
ii  libqtwebkit4              2.2.1-7
ii  libsm6                    2:1.2.1-2
ii  libstdc++6                4.9.0-2
ii  libswscale2               6:9.13-1
ii  libtcl8.6                 8.6.1-6
ii  libtheora0                1.1.1+dfsg.1-3.2
ii  libtiff5                  4.0.3-8
ii  libtk8.6                  8.6.1-5
ii  libx11-6                  2:1.6.2-1
ii  libxext6                  2:1.3.2-1
ii  libxml2                   2.9.1+dfsg1-3
ii  libxt6                    1:1.1.4-1
ii  zlib1g                    1:1.2.8.dfsg-1

libvtk6 recommends no packages.

Versions of packages libvtk6 suggests:
ii  libvtk6-dev                6.0.0-6
pn  openmpi-bin | lam-runtime  <none>
pn  vtk6-doc                   <none>
pn  vtk6-examples              <none>

-- no debconf information



More information about the debian-science-maintainers mailing list