From 2e8306b341ef7fc9343b3fd6da0cb16ee42d550f Mon Sep 17 00:00:00 2001 From: MiWCryptAnalytics Date: Sat, 18 Feb 2017 14:13:30 -0500 Subject: [PATCH 1/3] Potential fix for undefined reference 'dlsym' linux Fix for undefined reference including ldl. add -ldl to linux LIBS for Makefile. /usr/bin/ld: /tmp/ccYIfntN.ltrans11.ltrans.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5' /usr/lib/libdl.so.2: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [Makefile:388: release/bin/monero-wallet-gui] Error 1 --- monero-wallet-gui.pro | 1 + 1 file changed, 1 insertion(+) diff --git a/monero-wallet-gui.pro b/monero-wallet-gui.pro index 86564492..1b8a3624 100644 --- a/monero-wallet-gui.pro +++ b/monero-wallet-gui.pro @@ -214,6 +214,7 @@ linux { -lboost_program_options \ -lssl \ -lcrypto \ + -ldl \ -Wl,-Bdynamic \ -lGL # currently monero has an issue with "static" build and linunwind-dev, From 20517cfd4ddfb512bc15f38f57dbca70a1af9d53 Mon Sep 17 00:00:00 2001 From: MiWCryptAnalytics Date: Thu, 23 Feb 2017 21:23:06 -0500 Subject: [PATCH 2/3] fix: add ldl to non-static linux builds proposes a fix to add ldl conditionally on non-static build, to fix build failures --- monero-wallet-gui.pro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monero-wallet-gui.pro b/monero-wallet-gui.pro index 1b8a3624..4b114ac8 100644 --- a/monero-wallet-gui.pro +++ b/monero-wallet-gui.pro @@ -201,6 +201,9 @@ linux { contains(QT_ARCH, x86_64) { LIBS+= -lunbound } + } else { + # On some distro's we need to all dynload + LIBS+= -ldl } LIBS+= \ @@ -214,7 +217,6 @@ linux { -lboost_program_options \ -lssl \ -lcrypto \ - -ldl \ -Wl,-Bdynamic \ -lGL # currently monero has an issue with "static" build and linunwind-dev, From 3759e276b20bda885e8f776184ae9462ad79b917 Mon Sep 17 00:00:00 2001 From: MiWCryptAnalytics Date: Thu, 23 Feb 2017 21:23:55 -0500 Subject: [PATCH 3/3] spelling --- monero-wallet-gui.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monero-wallet-gui.pro b/monero-wallet-gui.pro index 4b114ac8..119e1823 100644 --- a/monero-wallet-gui.pro +++ b/monero-wallet-gui.pro @@ -202,7 +202,7 @@ linux { LIBS+= -lunbound } } else { - # On some distro's we need to all dynload + # On some distro's we need to add dynload LIBS+= -ldl }