Bug 2240334 - flann missing lz4-devel dependency
Summary: flann missing lz4-devel dependency
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: flann
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Rich Mattes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-23 08:21 UTC by Bruno Postle
Modified: 2023-12-04 01:34 UTC (History)
1 user (show)

Fixed In Version: flann-1.9.2-4.fc40 flann-1.9.2-4.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-24 22:57:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bruno Postle 2023-09-23 08:21:45 UTC
On f39 and rawhide, builds that require flann-devel fail because there is no Requires: lz4-devel

    /usr/include/flann/util/serialization.h:9:10: fatal error: lz4.h: No such file or directory

Reproducible: Always

Comment 1 Bruno Postle 2023-09-23 08:50:02 UTC
Further, when trying to build with flann I get these linker errors, so it looks like flann is built without lz4:

[ 60%] Linking CXX executable verdandi
cd /builddir/build/BUILD/hugin-2023.0.0/redhat-linux-build/src/tools && /usr/bin/cmake -E cmake_link_script CMakeFiles/verdandi.dir/link.txt --verbose=1
/usr/bin/g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -fopenmp CMakeFiles/verdandi.dir/verdandi.cpp.o -o verdandi  -Wl,-rpath,/builddir/build/BUILD/hugin-2023.0.0/redhat-linux-build/src/hugin_base: ../hugin_base/libhuginbase.so.0.0 /usr/lib64/libpano13.so ../foreign/levmar/libhuginlevmar.a /usr/lib64/libGLEW.so /usr/lib64/libboost_filesystem.so.1.81.0 /usr/lib64/libboost_system.so.1.81.0 /usr/lib64/libfftw3.so /usr/lib64/libvigraimpex.so /usr/lib64/libOpenEXR.so /usr/lib64/libImath-3_1.so /usr/lib64/libIex-3_1.so /usr/lib64/libIlmThread-3_1.so /usr/lib64/libz.so /usr/lib64/libjpeg.so /usr/lib64/libtiff.so /usr/lib64/libpng.so /usr/lib64/libz.so /usr/lib64/libz.so /usr/lib64/libexiv2.so /usr/lib64/liblcms2.so /usr/lib64/libvigraimpex.so /usr/lib64/libOpenEXR.so /usr/lib64/libImath-3_1.so /usr/lib64/libIex-3_1.so /usr/lib64/libIlmThread-3_1.so /usr/lib64/libz.so /usr/lib64/libjpeg.so /usr/lib64/libtiff.so /usr/lib64/libpng.so /usr/lib64/libz.so /usr/lib64/libz.so /usr/lib64/libexiv2.so /usr/lib64/libboost_atomic.so.1.81.0 /usr/lib64/libX11.so /usr/lib64/libpano13.so /usr/lib64/libOpenGL.so /usr/lib64/libGLX.so /usr/lib64/libGLU.so /usr/lib64/libGLEW.so /usr/lib64/libsqlite3.so /usr/lib64/libOpenEXR.so /usr/lib64/libImath-3_1.so /usr/lib64/libIex-3_1.so /usr/lib64/libIlmThread-3_1.so /usr/lib64/libjpeg.so /usr/lib64/libpng.so /usr/lib64/libOpenEXR.so /usr/lib64/libImath-3_1.so /usr/lib64/libIex-3_1.so /usr/lib64/libIlmThread-3_1.so /usr/lib64/libz.so /usr/lib64/libjpeg.so /usr/lib64/libpng.so /usr/lib64/libvigraimpex.so /usr/lib64/libexiv2.so /usr/lib64/libtiff.so /usr/lib64/liblcms2.so 
/usr/bin/ld: /tmp/cckml5Mr.ltrans1.ltrans.o: in function `flann::serialization::SaveArchive::flushBlock()':
/usr/include/flann/util/serialization.h:425: undefined reference to `LZ4_compress_HC_continue'
/usr/bin/ld: /usr/include/flann/util/serialization.h:443: undefined reference to `LZ4_compress_HC_continue'
/usr/bin/ld: /tmp/cckml5Mr.ltrans4.ltrans.o: in function `flann::KMeansIndex<flann::L2<double> >::saveIndex(_IO_FILE*)':
/usr/include/flann/util/serialization.h:406: undefined reference to `LZ4_resetStreamHC'
/usr/bin/ld: /tmp/cckml5Mr.ltrans4.ltrans.o: in function `flann::LinearIndex<flann::L2<double> >::saveIndex(_IO_FILE*)':
/usr/include/flann/util/serialization.h:406: undefined reference to `LZ4_resetStreamHC'
/usr/bin/ld: /tmp/cckml5Mr.ltrans4.ltrans.o: in function `flann::KDTreeIndex<flann::L2<double> >::saveIndex(_IO_FILE*)':
/usr/include/flann/util/serialization.h:406: undefined reference to `LZ4_resetStreamHC'
/usr/bin/ld: /tmp/cckml5Mr.ltrans4.ltrans.o: in function `flann::KDTreeSingleIndex<flann::L2<double> >::saveIndex(_IO_FILE*)':
/usr/include/flann/util/serialization.h:406: undefined reference to `LZ4_resetStreamHC'
/usr/bin/ld: /tmp/cckml5Mr.ltrans3.ltrans.o: in function `flann::LshIndex<flann::L2<double> >::saveIndex(_IO_FILE*)':
/usr/include/flann/util/serialization.h:406: undefined reference to `LZ4_resetStreamHC'
/usr/bin/ld: /tmp/cckml5Mr.ltrans3.ltrans.o:/usr/include/flann/util/serialization.h:406: more undefined references to `LZ4_resetStreamHC' follow

See: https://download.copr.fedorainfracloud.org/results/bpostle/panorama/fedora-39-aarch64/06437242-hugin/builder-live.log.gz

Comment 2 Bruno Postle 2023-09-24 11:17:33 UTC
Ignore comment1 above, I probably need to fix this elsewhere. However flann-devel should still require lz4-devel

Comment 3 Bruno Postle 2023-09-24 17:39:59 UTC
The second problem appears to be caused by a stray semicolon in the flann.pc file:

    $ pkg-config flann --libs
    -L/usr/lib64\;-llz4 -lflann -lflann_cpp

Comment 4 Bruno Postle 2023-09-26 07:31:07 UTC
See also debian bug report: https://bugs.debian.org/1052649

Comment 5 Bruno Postle 2023-10-03 12:25:26 UTC
See also upstream bug report:
https://github.com/flann-lib/flann/issues/514

Comment 6 Fedora Update System 2023-11-24 22:55:28 UTC
FEDORA-2023-037074502f has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-037074502f

Comment 7 Fedora Update System 2023-11-24 22:57:40 UTC
FEDORA-2023-037074502f has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2023-11-25 02:15:56 UTC
FEDORA-2023-d1b29c8ae9 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-d1b29c8ae9

Comment 9 Fedora Update System 2023-11-26 04:24:13 UTC
FEDORA-2023-d1b29c8ae9 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-d1b29c8ae9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-d1b29c8ae9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2023-12-04 01:34:23 UTC
FEDORA-2023-d1b29c8ae9 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.