Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

undefined reference to symbol / ..libdl.so.2: error adding symbols: DSO missing from command line

Tags:

linux

I currently have a problem compiling with gitian-builder.

It tells me this:

/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypto.a(dso_dlfcn.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line

Does anyone know how to fix this?

I don't find anything useful.

Many thanks in advance!

like image 347
Christian Benz Avatar asked Oct 27 '25 04:10

Christian Benz


1 Answers

Try the following

set(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -ldl")
like image 55
n.maltsev Avatar answered Oct 30 '25 00:10

n.maltsev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!