CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 Installation (https://www.cfd-online.com/Forums/su2-installation/)
-   -   Problems with libdl.so.2 library (https://www.cfd-online.com/Forums/su2-installation/249066-problems-libdl-so-2-library.html)

Gianmarco$ April 18, 2023 06:45

Problems with libdl.so.2 library
 
When installing SU2 7.5.1 on Ubuntu 20.04 using the ninja command, I faced the following problem:


[496/503] Linking target SU2_CFD/src/SU2_CFD
FAILED: SU2_CFD/src/SU2_CFD
c++ -o SU2_CFD/src/SU2_CFD SU2_CFD/src/SU2_CFD.p/SU2_CFD.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/usr/lib/x86_64-linux-gnu/openmpi/lib -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu/openmpi/lib -Wl,--start-group SU2_CFD/src/libSU2core.a externals/metis/libmetis.a externals/parmetis/libparmetis.a externals/tecio/teciompisrc/libteciompi.a subprojects/CoolProp/libCoolProp.a Common/src/libSU2Common.a /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so -Wl,--end-group
/usr/bin/ld: subprojects/CoolProp/libCoolProp.a(src_Backends_REFPROP_REFPROPMixtureB ackend.cpp.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: /lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[498/503] Compiling C++ object SU2_DOT/src/SU2_DOT.p/SU2_DOT.cpp.o
ninja: build stopped: subcommand failed.


The build was made with:


./meson.py build -Denable-coolprop=true -Denable-cgns=false --prefix=/home/gianmarco/SU2/SU2_src

and the installation with:


./ninja -C build install

Does anyone know how can I solve the problem?

PENGGEGE777 April 20, 2023 02:25

It seems that you have some issue of openmpi.


try:
$ sudo apt install libopenmpi-dev


then re-compile and re-build.

Gianmarco$ April 20, 2023 02:35

Thanks for the reply!

The problem was the make version... maybe it was too old. Upgrading to version 4.4.1 made the trick, since the compilerò was able to use dl libraries and dlopen notably.


All times are GMT -4. The time now is 05:16.