ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 11009] New: cmake fails to configure if libusan not instal

Date: Wed, 25 Feb 2015 16:06:01 +0000
Bug ID 11009
Summary cmake fails to configure if libusan not installed
Product Wireshark
Version Git
Hardware All
OS Fedora
Status UNCONFIRMED
Severity Normal
Priority Low
Component Build process
Assignee [email protected]
Reporter [email protected]

Build Information:
Current git
--
I tried building with cmake for the first time in a long while but it fails
with:

~~~
% cmake ..
[...]
-- Check if the system is big endian
-- Searching 16 bit integer
CMake Error at /usr/share/cmake/Modules/TestBigEndian.cmake:51 (message):
  no suitable type found
Call Stack (most recent call first):
  CMakeLists.txt:816 (test_big_endian)


-- Configuring incomplete, errors occurred!
~~~

CMakeError.log says:

~~~
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec1643664593.dir/link.txt --verbose=1
/usr/bin/cc   -Wall -W -Wextra -Wendif-labels -Wpointer-arith -Warray-bounds
-Wformat-security -fwrapv -fno-strict-overflow -fno-delete-null-pointer-checks
-fsanitize=undefined -Wvla -Waddress -Wattributes -Wdiv-by-zero
-Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wwrite-strings
-Wno-long-long -fexcess-precision=fast -Wc++-compat
-Wdeclaration-after-statement -Wshadow -Wno-pointer-sign -Wold-style-definition
-Wstrict-prototypes -Wlogical-op -Wjump-misses-init     
CMakeFiles/cmTryCompileExec1643664593.dir/CMAKE_SIZEOF_UNSIGNED_LONG.c.o  -o
cmTryCompileExec1643664593 -rdynamic 
/usr/bin/ld: cannot find /usr/lib64/libubsan.so.0.0.0
collect2: error: ld returned 1 exit status
~~~

It appears cmake is setting "-fsanitize=undefined" without verifying it
actually works (builds linkable executables).  I'm pretty sure installing the
libubsan package would make the problem go away.


You are receiving this mail because:
  • You are watching all bug changes.