Open srbiotik opened 5 years ago
I got the same error while compiling on an arm7l device. To fix it I added ${CMAKE_DL_LIBS}
to two statements in librabbitmq/CMakeLists.txt
:
target_link_libraries(rabbitmq ${RMQ_LIBRARIES} ${CMAKE_DL_LIBS})
...
target_link_libraries(rabbitmq-static ${RMQ_LIBRARIES} ${CMAKE_DL_LIBS})
My device:
$ uname -a
Linux ubuntu 4.15.0-1031-raspi2 #33-Ubuntu SMP PREEMPT Wed Jan 16 09:58:55 UTC 2019 armv7l armv7l armv7l GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
I'm not sure if it's the correct fix. Will create a PR if it is. Would like to get your opinion on this @alanxz
Trying to build rabbitmq-c v0.9.0 on
os = Ubuntu 16.04 gcc = 5.4.0 make = GNU Make 4.1 cmake = version 3.5.1 openssl = http://www.openssl.org/source/openssl-1.1.0g.tar.gz.md5
Failing @