Bug#1027934: libflann-dev: pkg-config file now requires hdf5 but doesn't find it

Jochen Sprickerhof jspricke at debian.org
Wed Jan 4 21:52:58 GMT 2023


Control: reassign -1 src:hugin 2022.0.0+dfsg

* Adrian Bunk <bunk at debian.org> [2023-01-04 22:02]:
>https://buildd.debian.org/status/fetch.php?pkg=hugin&arch=amd64&ver=2022.0.0%2Bdfsg-1%2Bb2&stamp=1672840532&raw=0
>
>...
>/usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,-z,defs -fopenmp CMakeFiles/cpfind.dir/PanoDetector.cpp.o CMakeFiles/cpfind.dir/PanoDetectorLogic.cpp.o CMakeFiles/cpfind.dir/TestCode.cpp.o CMakeFiles/cpfind.dir/Utils.cpp.o CMakeFiles/cpfind.dir/main.cpp.o -o cpfind  -Wl,-rpath,/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/hugin_cpfind/localfeatures:/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/celeste:/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/hugin_base: ../localfeatures/liblocalfeatures.so.0.0 /usr/lib/x86_64-linux-gnu/libvigraimpex.so /usr/lib/x86_64-linux-gnu/libOpenEXR.so /usr/lib/x86_64-linux-gnu/libImath-3_1.so /usr/lib/x86_64-linux-gnu/libIex-3_1.so /usr/lib/x86_64-linux-gnu/libIlmThread-3_1.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libexiv2.so /usr/lib/x86_64-linux-gnu/libpano13.so ../../foreign/levmar/libhuginlevmar.a /usr/lib/x86_64-linux-gnu/libGLEW.so /usr/lib/x86_64-linux-gnu/libfftw3.so /usr/lib/x86_64-linux-gnu/libvigraimpex.so /usr/lib/x86_64-linux-gnu/libOpenEXR.so /usr/lib/x86_64-linux-gnu/libImath-3_1.so /usr/lib/x86_64-linux-gnu/libIex-3_1.so /usr/lib/x86_64-linux-gnu/libIlmThread-3_1.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libexiv2.so /usr/lib/x86_64-linux-gnu/liblcms2.so ../../celeste/libceleste.so.0.0 -lflann -lflann_cpp -lhdf5 -lmpi -llz4 ../../hugin_base/libhuginbase.so.0.0 /usr/lib/x86_64-linux-gnu/libX11.so /usr/lib/x86_64-linux-gnu/libOpenGL.so /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libsqlite3.so /usr/lib/x86_64-linux-gnu/libpano13.so ../../foreign/levmar/libhuginlevmar.a /usr/lib/x86_64-linux-gnu/libGLEW.so /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.74.0 /usr/lib/x86_64-linux-gnu/libfftw3.so /usr/lib/x86_64-linux-gnu/libvigraimpex.so /usr/lib/x86_64-linux-gnu/libOpenEXR.so /usr/lib/x86_64-linux-gnu/libImath-3_1.so /usr/lib/x86_64-linux-gnu/libIex-3_1.so /usr/lib/x86_64-linux-gnu/libIlmThread-3_1.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libexiv2.so /usr/lib/x86_64-linux-gnu/liblcms2.so
>/usr/bin/ld: cannot find -lhdf5: No such file or directory
>collect2: error: ld returned 1 exit status
>make[3]: *** [src/hugin_cpfind/cpfind/CMakeFiles/cpfind.dir/build.make:221: src/hugin_cpfind/cpfind/cpfind] Error 1
>
>
>
>Relevant /usr/lib/x86_64-linux-gnu/pkgconfig/flann.pc diff:
>│ │ │ -Version: 1.9.1
>│ │ │ -Requires:  liblz4
>│ │ │ +Version: 1.9.2
>│ │ │ +Requires:  hdf5 liblz4
>
>
>$ pkgconf --libs flann
>-L/usr/lib/x86_64-linux-gnu\;-llz4 -lflann -lflann_cpp -L/usr/lib/x86_64-linux-gnu/hdf5/openmpi -lhdf5 -L/usr/lib/x86_64-linux-gnu/openmpi/lib -lmpi -llz4
>$ dpkg -S libhdf5.so
>libhdf5-openmpi-dev: /usr/lib/x86_64-linux-gnu/hdf5/openmpi/libhdf5.so
>$

 From the log above:

Unpacking libopenmpi-dev:amd64 (4.1.4-3) ...

The problem is that hugin ignores the FLANN_LIBRARY_DIRS. This patch 
fixes it:

--- hugin-2022.0.0+dfsg/CMakeModules/FindFLANN.cmake    2018-11-01 18:26:55.000000000 +0100
+++ hugin-2022.0.0+dfsg-1/CMakeModules/FindFLANN.cmake  2023-01-04 22:49:27.667327549 +0100
@@ -11,6 +11,7 @@
  if(UNIX)
    find_package(PkgConfig QUIET)
    pkg_check_modules(FLANN flann)
+  link_directories(${FLANN_LIBRARY_DIRS})
  else()
    find_path(FLANN_INCLUDE_DIRS flann/flann.hpp)



Cheers Jochen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20230104/b74e15a6/attachment.sig>


More information about the debian-science-maintainers mailing list