wampcc icon indicating copy to clipboard operation
wampcc copied to clipboard

error while make -f examples.makefile

Open infrontofme opened this issue 5 years ago • 1 comments

Hi, when I do make -f examples.makefile, an error occurred, I can't handle it. /usr/bin/ld: /opt/libuv/lib/libuv.a(libuv_la-fs.o): undefined reference to symbol 'dlsym@@GLIBC_2.2.5' //lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status <builtin>: recipe for target 'wamp_router/router' failed make: *** [wamp_router/router] Error 1 it seems something wrong with libuv, I do build wampcc on Linux as README.MD do. could you help me with this problem ? That will thank you very much.

OS: Ubuntu16.04

thanks :)

infrontofme avatar May 27 '20 01:05 infrontofme

well from that message, it appears that the libdl is missing from the link line; you could try modifying the examples.makefile, to add -ldl to the LDLIBS variable. I must admit I have not tried to compile on Ubuntu 16. what version of GCC did you use?

darrenjs avatar Jun 26 '20 09:06 darrenjs

As suggested, adding -ldl after -lcrypto -lpthread -lssl -lrt in LDLIBS in examples.makefile helps. Don't add it to LIBUV_LIBS because that leads to an error with static libs.

Confirmed on Linux Mint 20.3

fungs avatar Sep 08 '23 19:09 fungs