Your message dated Fri, 17 Sep 2021 01:37:37 +0200
with message-id <[email protected]>
and subject line Re: [Pkg-cmake-team] Bug#853028: cmake does not find bzip2
(libbz2)
has caused the Debian Bug report #853028,
regarding cmake does not find bzip2 (libbz2)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
853028: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=853028
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cmake
Version: 3.7.2-1
Severity: normal
Dear Maintainer,
Cmake can't find libbz2, nor by using find_package(BZip2) nor using
find_library(). The cmake module is is the one shipped with cmake-data I think.
libbz2 is found at /lib/x86_64-linux-gnu/ and linking the so manually into
/usr/lib/x86_64-linux-gnu/ seems to work.
Look at CMakeFiles/CMakeOutput.txt,the LIBRARY_PATH variable seems to be correct
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../:/lib/:/usr/lib/
I guess that something is wrong with find_library.
What would be the preferred work around for this?
Regards,
Enrico
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages cmake depends on:
ii cmake-data 3.7.2-1
ii dpkg 1.18.18
ii libarchive13 3.2.1-5
ii libc6 2.24-8
ii libcurl3 7.52.1-1
ii libexpat1 2.2.0-2
ii libgcc1 1:6.2.1-5
ii libjsoncpp1 1.7.4-3
ii libstdc++6 6.2.1-5
ii libuv1 1.9.1-3
ii procps 2:3.3.12-3
ii zlib1g 1:1.2.8.dfsg-4
Versions of packages cmake recommends:
ii gcc 4:6.2.1-1
ii make 4.1-9
Versions of packages cmake suggests:
pn codeblocks <none>
pn eclipse <none>
pn ninja-build <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
Control: notfound 3.21.2-1
Control: tag + wontfix
On Sun, 29 Jan 2017 18:20:40 +0100 Enrico Lumetti <[email protected]>
wrote:
Sure, these are the two that I've tried:
cmake_minimum_required(VERSION 3.7)
project(bug)
find_package (BZip2)
if(NOT BZIP2_LIBRARIES)
message("bzip2 not found")
endif()
its output:
-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
bzip2 not found
This one with find_library:
cmake_minimum_required(VERSION 3.7)
project(bug)
find_library(BZ2_LIBRARY bz2 libbz2)
if(NOT BZ2_LIBRARY)
message("bzip2 not found")
endif()
Output: bzip2 not found
Neither of these test cases fail any more, so I assume this has been
resolved upstream at some point.
Cheers
Timo
--
⢀⣴⠾⠻⢶⣦⠀ ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁ │ Timo Röhling │
⢿⡄⠘⠷⠚⠋⠀ │ 9B03 EBB9 8300 DF97 C2B1 23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀ ╰────────────────────────────────────────────────────╯
signature.asc
Description: PGP signature
--- End Message ---