Skip to contentSkip to conversation

open-lldp: requires dynamic linking interface (dlopen, ...)

PATCH New Laurent Charpentier 2 participants 2 messages Jan 29, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 open-lldp: requires dynamic linking interface (dlopen, ...)

This patch is to fix the following build error:
weak_readline.c:30:19: fatal error: dlfcn.h: No such file or directory

 #include <dlfcn.h>
                   ^

compilation terminated.
Makefile:890: recipe for target 'weak_readline.o' failed

http://autobuild.buildroot.net/results/516456c8e21759e1ecee4ef9f9689a8f720ecd90/build-end.log

---
 package/open-lldp/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/open-lldp/Config.in +3 -2
index d54cf181d3..b40bff8996 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_OPEN_LLDP
 	bool "open-lldp"
+	depends on !BR2_STATIC_LIBS # dlfcn.h
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libnl
 	select BR2_PACKAGE_LIBCONFIG
 	select BR2_PACKAGE_LIBNL
@@ -11,5 +12,5 @@ config BR2_PACKAGE_OPEN_LLDP
 
 	  http://open-lldp.org/
 
-comment "open-lldp needs a toolchain w/ threads"
-	depends on !BR2_TOOLCHAIN_HAS_THREADS
+comment "open-lldp needs a toolchain w/ dynamic library, threads"
+	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
Signature · 1 line
2.14.3
#1 lore raw

PATCH 1/1 open-lldp: requires dynamic linking interface (dlopen, ...)

Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Laurent" == Laurent Charpentier <[email protected]> writes:

This patch is to fix the following build error:
weak_readline.c:30:19: fatal error: dlfcn.h: No such file or directory

Quoted 8 lines
 #include <dlfcn.h>
                   ^

compilation terminated.
Makefile:890: recipe for target 'weak_readline.o' failed

http://autobuild.buildroot.net/results/516456c8e21759e1ecee4ef9f9689a8f720ecd90/build-end.log

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard