Bug#751130: vtk: FTBFS: undefined reference to `vtkPostgreSQLDatabase::New()'

Colin Watson cjwatson at ubuntu.com
Mon Jun 23 22:41:05 UTC 2014


Control: tag -1 patch

On Tue, Jun 10, 2014 at 06:10:27PM +0200, Andreas Cadhalpun wrote:
> in a current sid/amd64 chroot vtk fails to build:
> Linking CXX executable ../../../bin/DumpXMLFile
> ../../../bin/libvtkIO.so.5.8.0: undefined reference to
> `vtkPostgreSQLDatabase::New()'
> collect2: error: ld returned 1 exit status
> Examples/IO/Cxx/CMakeFiles/DumpXMLFile.dir/build.make:90: recipe for
> target 'bin/DumpXMLFile' failed
> make[3]: *** [bin/DumpXMLFile] Error 1

Here's a patch:

  * Look for PostgreSQL libraries in multiarch locations (closes: #751130).

diff -Nru vtk-5.8.0/debian/patches/multiarch-libpq.patch vtk-5.8.0/debian/patches/multiarch-libpq.patch
--- vtk-5.8.0/debian/patches/multiarch-libpq.patch	1970-01-01 01:00:00.000000000 +0100
+++ vtk-5.8.0/debian/patches/multiarch-libpq.patch	2014-06-23 11:03:15.000000000 +0100
@@ -0,0 +1,38 @@
+Description: Look for PostgreSQL libraries in multiarch locations
+Author: Colin Watson <cjwatson at ubuntu.com>
+Bug-Debian: https://bugs.debian.org/751130
+Forwarded: no
+Last-Update: 2014-06-23
+
+Index: b/CMake/FindPOSTGRES.cmake
+===================================================================
+--- a/CMake/FindPOSTGRES.cmake
++++ b/CMake/FindPOSTGRES.cmake
+@@ -14,6 +14,11 @@
+   find_library( POSTGRES_LIBRARIES
+     NAMES pq libpq
+     PATHS
++      ${_POSTGRES_DIR}/lib/${CMAKE_LIBRARY_ARCHITECTURE}
++      ${CMAKE_INSTALL_PREFIX}/lib/${CMAKE_LIBRARY_ARCHITECTURE}
++      /usr/local/pgsql/lib/${CMAKE_LIBRARY_ARCHITECTURE}
++      /usr/local/lib/${CMAKE_LIBRARY_ARCHITECTURE}
++      /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}
+       ${_POSTGRES_DIR}/lib64
+       ${CMAKE_INSTALL_PREFIX}/lib64
+       /usr/local/pgsql/lib64
+Index: b/CMake/FindPQXX.cmake
+===================================================================
+--- a/CMake/FindPQXX.cmake
++++ b/CMake/FindPQXX.cmake
+@@ -13,6 +13,11 @@
+     find_library( PQXX_LIBRARY
+       NAMES libpqxx pqxx
+       PATHS
++        ${_PQXX_DIR}/lib/${CMAKE_LIBRARY_ARCHITECTURE}
++        ${CMAKE_INSTALL_PREFIX}/lib/${CMAKE_LIBRARY_ARCHITECTURE}
++        /usr/local/pgsql/lib/${CMAKE_LIBRARY_ARCHITECTURE}
++        /usr/local/lib/${CMAKE_LIBRARY_ARCHITECTURE}
++        /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}
+         ${_PQXX_DIR}/lib
+         ${_PQXX_DIR}
+         ${CMAKE_INSTALL_PREFIX}/lib
diff -Nru vtk-5.8.0/debian/patches/series vtk-5.8.0/debian/patches/series
--- vtk-5.8.0/debian/patches/series	2014-05-16 13:32:22.000000000 +0100
+++ vtk-5.8.0/debian/patches/series	2014-06-23 10:52:44.000000000 +0100
@@ -4,3 +4,4 @@
 tcl-links.patch
 libav10.patch
 java15.patch
+multiarch-libpq.patch

-- 
Colin Watson                                       [cjwatson at ubuntu.com]



More information about the debian-science-maintainers mailing list