Skip to content

Executable looking for unversioned .so files when built with -DBUILD_SHARED_LIBS=ON option #4486

@solomoncyj

Description

@solomoncyj
cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
-- The C compiler identification is Clang 20.1.8
-- The CXX compiler identification is Clang 20.1.8
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Initiating compile using CMake 3.31.6
-- Found Git: /usr/bin/git (found version "2.50.1")
-- Checking submodules
-- Submodule 'monero' is up-to-date
CMake Warning (dev) at monero/CMakeLists.txt:40 (include):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/bin/python (found version "3.13.5")
CMake Deprecation Warning at monero/CMakeLists.txt:46 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- CMake version 3.31.6
-- ccache NOT found! Please install it for faster rebuilds.
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /usr/bin/clang
-- Looking for -Wl,--no-undefined linker flag
-- Looking for -Wl,--no-undefined linker flag - found
-- Looking for -Wl,-undefined,error linker flag
-- Looking for -Wl,-undefined,error linker flag - found
CMake Deprecation Warning at /home/solomoncyj/Downloads/monero-gui/build/CMakeFiles/CMakeTmp/test_project/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


CMake Deprecation Warning at /home/solomoncyj/Downloads/monero-gui/build/CMakeFiles/CMakeTmp/test_project/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Building without build tag
-- Checking submodules
-- Submodule 'external/miniupnp' is up-to-date
-- Submodule 'external/rapidjson' is up-to-date
-- Submodule 'external/trezor-common' is up-to-date
-- Submodule 'external/randomx' is up-to-date
-- Submodule 'external/supercop' is up-to-date
-- Could not find DEVELOPER_LOCAL_TOOLS in env (not required)
-- BOOST_IGNORE_SYSTEM_PATHS defaults to OFF
-- Building for a 64-bit system
-- Building internal libraries with position independent code
-- Using LMDB as default DB type
-- looking for liblzma
-- liblzma found
-- Found Libunwind: /usr/include
-- Stack trace on exception enabled (using libunwind)
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test _Werror__pthread_c
-- Performing Test _Werror__pthread_c - Success
-- Performing Test _Werror__pthread_cxx
-- Performing Test _Werror__pthread_cxx - Success
-- Found OpenSSL: /usr/lib64/libcrypto.so (found version "3.2.4")
-- Using OpenSSL include dir at /usr/include
-- Found HIDAPI: /usr/lib64/libhidapi-libusb.so
-- Looking for memset_s in c
-- Looking for memset_s in c - not found
-- Looking for explicit_bzero in c
-- Looking for explicit_bzero in c - found
-- Looking for strptime
-- Looking for strptime - found
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:441 (message):
  The package name passed to `find_package_handle_standard_args` (MiniUPnPc)
  does not match the name of the calling package (Miniupnpc).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  monero/cmake/FindMiniupnpc.cmake:39 (find_package_handle_standard_args)
  monero/external/CMakeLists.txt:38 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found MiniUPnPc: /usr/include/miniupnpc
-- Found miniupnpc API version 19
-- Using in-tree miniupnpc
CMake Deprecation Warning at monero/external/miniupnp/miniupnpc/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Looking for libunbound
-- Found libunbound include (unbound.h) in /usr/include
-- Found libunbound library
-- Using 64-bit LMDB from source tree
CMake Deprecation Warning at monero/external/easylogging++/CMakeLists.txt:29 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Backtrace_LIBRARY: 
-- Found Backtrace: /usr/include
CMake Deprecation Warning at monero/external/randomx/CMakeLists.txt:29 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Performing Test _march=native_cxx
-- Performing Test _march=native_cxx - Success
-- Setting CXX flag -march=native
-- Performing Test _march=native_c
-- Performing Test _march=native_c - Success
-- Setting C flag -march=native
-- Performing Test HAVE_CXX_ATOMICS
-- Performing Test HAVE_CXX_ATOMICS - Success
-- Using HIDAPI include dir at /usr/include/hidapi
-- Found Protobuf: /usr/lib64/libprotobuf.so (found version "3.19.6")
-- Protobuf lib: /usr/lib64/libprotobuf.so, inc: /usr/include, protoc: /usr/bin/protoc
-- Trezor protobuf messages regenerated out: "."
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.3.0")
-- Checking for module 'libusb-1.0'
--   Found libusb-1.0, version 1.0.28
-- Looking for libusb_get_device_list in /usr/lib64/libusb-1.0.so
-- Looking for libusb_get_device_list in /usr/lib64/libusb-1.0.so - found
-- Looking for libusb_get_port_numbers in /usr/lib64/libusb-1.0.so
-- Looking for libusb_get_port_numbers in /usr/lib64/libusb-1.0.so - found
-- LibUSB Compilation test: TRUE
-- Trezor compatible LibUSB found at: /usr/include/libusb-1.0
-- Building on x86_64 for native
-- Performing Test CC_SUPPORTS_MARCH_NATIVE
-- Performing Test CC_SUPPORTS_MARCH_NATIVE - Success
-- AES support enabled
-- Performing Test _Werror__Wformat_c
-- Performing Test _Werror__Wformat_c - Success
-- Performing Test _Werror__Wformat_cxx
-- Performing Test _Werror__Wformat_cxx - Success
-- Performing Test _Werror__Wformat_security_c
-- Performing Test _Werror__Wformat_security_c - Success
-- Performing Test _Werror__Wformat_security_cxx
-- Performing Test _Werror__Wformat_security_cxx - Success
-- Performing Test _Werror__fstack_protector_c
-- Performing Test _Werror__fstack_protector_c - Success
-- Performing Test _Werror__fstack_protector_cxx
-- Performing Test _Werror__fstack_protector_cxx - Success
-- Performing Test _Werror__fstack_protector_strong_c
-- Performing Test _Werror__fstack_protector_strong_c - Success
-- Performing Test _Werror__fstack_protector_strong_cxx
-- Performing Test _Werror__fstack_protector_strong_cxx - Success
-- Performing Test _Werror__fcf_protection=full_c
-- Performing Test _Werror__fcf_protection=full_c - Success
-- Performing Test _Werror__fcf_protection=full_cxx
-- Performing Test _Werror__fcf_protection=full_cxx - Success
-- Performing Test _Werror__fstack_clash_protection_c
-- Performing Test _Werror__fstack_clash_protection_c - Success
-- Performing Test _Werror__fstack_clash_protection_cxx
-- Performing Test _Werror__fstack_clash_protection_cxx - Success
-- Performing Test _Werror__mmitigate_rop_c
-- Performing Test _Werror__mmitigate_rop_c - Failed
-- Performing Test _Werror__mmitigate_rop_cxx
-- Performing Test _Werror__mmitigate_rop_cxx - Failed
-- Looking for -Wl,-pie linker flag
-- Looking for -Wl,-pie linker flag - not found
-- Looking for -Wl,-z,relro linker flag
-- Looking for -Wl,-z,relro linker flag - found
-- Looking for -Wl,-z,now linker flag
-- Looking for -Wl,-z,now linker flag - found
-- Looking for -Wl,-z,noexecstack linker flag
-- Looking for -Wl,-z,noexecstack linker flag - found
-- Looking for -Wl,-z,noexecheap linker flag
-- Looking for -Wl,-z,noexecheap linker flag - found
-- Performing Test _Werror__Werror=switch_c
-- Performing Test _Werror__Werror=switch_c - Success
-- Performing Test _Werror__Werror=switch_cxx
-- Performing Test _Werror__Werror=switch_cxx - Success
-- Performing Test _Werror__Werror=return_type_c
-- Performing Test _Werror__Werror=return_type_c - Success
-- Performing Test _Werror__Werror=return_type_cxx
-- Performing Test _Werror__Werror=return_type_cxx - Success
-- Using C security hardening flags:  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wformat -Wformat-security -fstack-protector -fstack-protector-strong -fcf-protection=full -fstack-clash-protection -Werror=switch -Werror=return-type
-- Using C++ security hardening flags:  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wformat -Wformat-security -fstack-protector -fstack-protector-strong -fcf-protection=full -fstack-clash-protection -Werror=switch -Werror=return-type
-- Using linker security hardening flags:  -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-z,noexecheap
CMake Warning (dev) at monero/CMakeLists.txt:1081 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Boost Version: 1.83.0
-- Boost components: filesystem;thread;date_time;chrono;serialization;program_options;locale
CMake Warning (dev) at monero/CMakeLists.txt:1103 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for rl_copy_text
-- Looking for rl_copy_text - found
-- Looking for rl_filename_completion_function
-- Looking for rl_filename_completion_function - found
-- Found readline library at: /usr
-- ZMQ_LIB: /usr/lib64/libzmq.so;/usr/lib64/libpgm.so;/usr/lib64/libgssapi_krb5.so;/usr/lib64/libsodium.so
-- SODIUM_INCLUDE_PATH: /usr/include
-- Found Git: /usr/bin/git
-- You are currently on commit ec870e507
-- You are building a tagged release
-- Looking for a ASM-ATT compiler
-- Looking for a ASM-ATT compiler - /usr/bin/as
Wallet crypto is using amd64-64-24k backend
-- Trezor support enabled
CMake Warning (dev) at monero/CMakeLists.txt:1241 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Not building tests
-- Not building debug utilities
-- Found Doxygen: /usr/bin/doxygen (found version "1.13.2") found components: doxygen dot
CMake Warning (dev) at monero/CMakeLists.txt:1278 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'BUILD_GUI_DEPS'.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at monero/CMakeLists.txt:1280 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Git: /usr/bin/git
-- You are currently on commit f8ad672c4
-- You are ahead of or behind a tagged release
-- /home/solomoncyj/Downloads/monero-gui/cmake
-- libsodium: libraries at /usr/lib64/libsodium.so
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- X11_FOUND = TRUE
-- X11_INCLUDE_DIR = /usr/include
-- X11_LIBRARIES = /usr/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Checking for modules 'Qt5Core;Qt5Quick;Qt5Gui;Qt5Qml;Qt5Svg;Qt5Xml;Qt5QmlModels'
--   Found Qt5Core, version 5.15.17
--   Found Qt5Quick, version 5.15.17
--   Found Qt5Gui, version 5.15.17
--   Found Qt5Qml, version 5.15.17
--   Found Qt5Svg, version 5.15.17
--   Found Qt5Xml, version 5.15.17
--   Found Qt5QmlModels, version 5.15.17
-- Looking for -pie linker flag
-- Looking for -pie linker flag - found
-- Performing Test _Werror__fno_strict_aliasing_c
-- Performing Test _Werror__fno_strict_aliasing_c - Success
-- Performing Test _Werror__fno_strict_aliasing_cxx
-- Performing Test _Werror__fno_strict_aliasing_cxx - Success
-- Performing Test _Werror__fPIC_c
-- Performing Test _Werror__fPIC_c - Success
-- Performing Test _Werror__fPIC_cxx
-- Performing Test _Werror__fPIC_cxx - Success
-- Using C security hardening flags:  -Wformat -Wformat-security -fstack-protector -fstack-protector-strong -fcf-protection=full -fno-strict-aliasing -fPIC
-- Using C++ security hardening flags:  -Wformat -Wformat-security -fstack-protector -fstack-protector-strong -fcf-protection=full -fno-strict-aliasing -fPIC
-- Using linker security hardening flags:  -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-z,noexecheap
-- OpenGL: include dir at 
-- OpenGL: libraries at 
-- Configuring done (8.4s)
-- Generating done (0.4s)
-- Build files have been written to: /home/solomoncyj/Downloads/monero-gui/build

> cd build && ninja && sudo ninja install

[...]

> monerod
monerod: error while loading shared libraries: libdaemonizer.so: cannot open shared object file: No such file or directory

> monero-wallet-gui
monero-wallet-gui: error while loading shared libraries: libwallet_api.so: cannot open shared object file: No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions