Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No rule to make target '/usr/lib64/libboost_program_options.a', needed by 'nvbandwidth' #4

Open
cloud11665 opened this issue Jun 5, 2023 · 1 comment

Comments

@cloud11665
Copy link

Build error caused by static linkage of boost-program-options on fedora 37.

cld@kafka:nvbandwidth$ uname -a
Linux kafka 6.3.3-202.rog.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 24 06:56:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
cld@kafka:nvbandwidth$ ldconfig -p  | grep program_options
        libboost_program_options.so.1.78.0 (libc6,x86-64) => /lib64/libboost_program_options.so.1.78.0
        libboost_program_options.so (libc6,x86-64) => /lib64/libboost_program_options.so

can be fixed by removing Boost_USE_STATIC_LIBS ON from CMakeLists.txt

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 77a7b0d..e15a376 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,7 +12,7 @@ if(NOT CMAKE_BUILD_TYPE)
     set(CMAKE_BUILD_TYPE "Release")
 endif()

-set(Boost_USE_STATIC_LIBS ON)
+#set(Boost_USE_STATIC_LIBS ON)
 find_package(Boost COMPONENTS program_options REQUIRED)

 set(src
deepakcu added a commit that referenced this issue Jun 6, 2023
Fixes #4
Add instructions for Fedora in README
@deepakcu
Copy link
Collaborator

deepakcu commented Jun 6, 2023

Thanks @cloud11665. We can repro the issue and your suggested fix works well. We will consider including it in the next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants