zeromq packages: added dynamic library check
PATCH 1/1 zeromq packages: added dynamic library check
The zeromq package now needs dynamic library support. Therefore the check was added to it, and to it's bindings.
--- DEVELOPERS | 1 + package/cppzmq/Config.in | 6 ++++-- package/czmq/Config.in | 6 ++++-- package/php-zmq/Config.in | 10 ++++++---- package/python-pyzmq/Config.in | 6 ++++-- package/zeromq/Config.in | 10 ++++------ package/zmqpp/Config.in | 5 +++-- 7 files changed, 26 insertions(+), 18 deletions(-)
DEVELOPERS +1 -0
@@ -191,6 +191,7 @@ F: package/stress/ N: Asaf Kahlon <[email protected]> F: package/python-jsonmodels/ F: package/python-yieldfrom/ +F: package/zeromq N: Ash Charles <[email protected]> F: package/pru-software-support/
package/cppzmq/Config.in +4 -2
@@ -2,11 +2,13 @@ config BR2_PACKAGE_CPPZMQ bool "cppzmq" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQ help C++ binding for zeromq (ZeroMQ, 0MQ, zmq). http://github.com/zeromq/cppzmq -comment "cppzmq needs a toolchain w/ C++, threads" - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) +comment "cppzmq needs a toolchain w/ dynamic library, C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBS
package/czmq/Config.in +4 -2
@@ -3,12 +3,14 @@ config BR2_PACKAGE_CZMQ depends on BR2_USE_MMU # fork() depends on BR2_INSTALL_LIBSTDCPP # zeromq depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQ help High-level C Binding for 0MQ http://czmq.zeromq.org/ -comment "czmq needs a toolchain w/ C++, threads" +comment "czmq needs a toolchain w/ dynamic library, C++, threads" depends on BR2_USE_MMU - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBS
package/php-zmq/Config.in +6 -4
@@ -1,11 +1,13 @@ -comment "php-zmq needs a toolchain w/ C++, threads" - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) +comment "php-zmq needs a toolchain w/ dynamic library C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBS config BR2_PACKAGE_PHP_ZMQ bool "php-zmq" depends on BR2_PACKAGE_PHP - depends on BR2_INSTALL_LIBSTDCPP - depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_INSTALL_LIBSTDCPP # zeromq + depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQ help ZeroMQ messaging bindings for PHP
package/python-pyzmq/Config.in +4 -2
@@ -2,12 +2,14 @@ config BR2_PACKAGE_PYTHON_PYZMQ bool "python-pyzmq" depends on BR2_INSTALL_LIBSTDCPP # zeromq depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQ help This package contains the python language binding for zeromq. http://zeromq.org/bindings:python -comment "python-pyzmq needs a toolchain w/ C++, threads" +comment "python-pyzmq needs a toolchain w/ dynamic library C++, threads" depends on BR2_PACKAGE_PYTHON - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBS
package/zeromq/Config.in +4 -6
@@ -1,10 +1,12 @@ -comment "zeromq needs a toolchain w/ C++, threads" - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) +comment "zeromq needs a toolchain w/ dynamic library, C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBS config BR2_PACKAGE_ZEROMQ bool "zeromq" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_LIBUUID help
@@ -25,12 +27,8 @@ config BR2_PACKAGE_ZEROMQ if BR2_PACKAGE_ZEROMQ -comment "norm support needs a toolchain w/ dynamic library" - depends on BR2_STATIC_LIBS - config BR2_PACKAGE_ZEROMQ_NORM bool "NORM support" - depends on !BR2_STATIC_LIBS select BR2_PACKAGE_NORM help Add support for NACK-Oriented Reliable Multicast (RFC 5740)
package/zmqpp/Config.in +3 -2
@@ -4,6 +4,7 @@ config BR2_PACKAGE_ZMQPP depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQ help C++ binding for zeromq (ZeroMQ, 0MQ, zmq).
@@ -13,9 +14,9 @@ config BR2_PACKAGE_ZMQPP http://github.com/benjamg/zmqpp -comment "zmqpp needs a toolchain w/ C++, threads, gcc >= 4.7" +comment "zmqpp needs a toolchain w/ dynamic library, C++, threads" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 + BR2_STATIC_LIBS if BR2_PACKAGE_ZMQPP
Signature · 1 line
2.17.0
PATCH 1/1 zeromq packages: added dynamic library check
Hi Adaf,
Quoted 2 lines · Asaf Kahlon
The zeromq package now needs dynamic library support. Therefore the check was added to it, and to it's bindings.
Please add a link an autobuilder build that this patch fixes.
You also need to propagate this added dependency to reverse dependencies recursively. So, for example, filemq also needs to depend on !static because it selects czmq.
But I think there is a way to avoid all that. The code that needs dladdr() in src/err.cpp depends on libunwind. The configure.ac section that checks for libunwind checks also dladdr(). So this configure failure is unnecessary. Just add libdld to the list of libraries, and remove the configure failing check.
Can you suggest upstream something along this line?
Thanks,
baruch
Quoted 162 lines
Signed-off-by Asaf Kahlon <[email protected]>--- DEVELOPERS | 1 + package/cppzmq/Config.in | 6 ++++-- package/czmq/Config.in | 6 ++++-- package/php-zmq/Config.in | 10 ++++++---- package/python-pyzmq/Config.in | 6 ++++-- package/zeromq/Config.in | 10 ++++------ package/zmqpp/Config.in | 5 +++-- 7 files changed, 26 insertions(+), 18 deletions(-)DEVELOPERS +1
-0@@ -191,6 +191,7 @@ F: package/stress/ N: Asaf Kahlon <[email protected]> F: package/python-jsonmodels/ F: package/python-yieldfrom/ +F: package/zeromq N: Ash Charles <[email protected]> F: package/pru-software-support/package/cppzmq/Config.in +4
-2@@ -2,11 +2,13 @@ config BR2_PACKAGE_CPPZMQ bool "cppzmq" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQ help C++ binding for zeromq (ZeroMQ, 0MQ, zmq). http://github.com/zeromq/cppzmq -comment "cppzmq needs a toolchain w/ C++, threads" - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) +comment "cppzmq needs a toolchain w/ dynamic library, C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBSpackage/czmq/Config.in +4
-2@@ -3,12 +3,14 @@ config BR2_PACKAGE_CZMQ depends on BR2_USE_MMU # fork() depends on BR2_INSTALL_LIBSTDCPP # zeromq depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQ help High-level C Binding for 0MQ http://czmq.zeromq.org/ -comment "czmq needs a toolchain w/ C++, threads" +comment "czmq needs a toolchain w/ dynamic library, C++, threads" depends on BR2_USE_MMU - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBSpackage/php-zmq/Config.in +6
-4@@ -1,11 +1,13 @@ -comment "php-zmq needs a toolchain w/ C++, threads" - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) +comment "php-zmq needs a toolchain w/ dynamic library C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBS config BR2_PACKAGE_PHP_ZMQ bool "php-zmq" depends on BR2_PACKAGE_PHP - depends on BR2_INSTALL_LIBSTDCPP - depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_INSTALL_LIBSTDCPP # zeromq + depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQ help ZeroMQ messaging bindings for PHPpackage/python-pyzmq/Config.in +4
-2@@ -2,12 +2,14 @@ config BR2_PACKAGE_PYTHON_PYZMQ bool "python-pyzmq" depends on BR2_INSTALL_LIBSTDCPP # zeromq depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQ help This package contains the python language binding for zeromq. http://zeromq.org/bindings:python -comment "python-pyzmq needs a toolchain w/ C++, threads" +comment "python-pyzmq needs a toolchain w/ dynamic library C++, threads" depends on BR2_PACKAGE_PYTHON - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBSpackage/zeromq/Config.in +4
-6@@ -1,10 +1,12 @@ -comment "zeromq needs a toolchain w/ C++, threads" - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) +comment "zeromq needs a toolchain w/ dynamic library, C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBS config BR2_PACKAGE_ZEROMQ bool "zeromq" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_LIBUUID help@@ -25,12 +27,8 @@ config BR2_PACKAGE_ZEROMQ if BR2_PACKAGE_ZEROMQ -comment "norm support needs a toolchain w/ dynamic library" - depends on BR2_STATIC_LIBS - config BR2_PACKAGE_ZEROMQ_NORM bool "NORM support" - depends on !BR2_STATIC_LIBS select BR2_PACKAGE_NORM help Add support for NACK-Oriented Reliable Multicast (RFC 5740)package/zmqpp/Config.in +3
-2@@ -4,6 +4,7 @@ config BR2_PACKAGE_ZMQPP depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQ help C++ binding for zeromq (ZeroMQ, 0MQ, zmq).@@ -13,9 +14,9 @@ config BR2_PACKAGE_ZMQPP http://github.com/benjamg/zmqpp -comment "zmqpp needs a toolchain w/ C++, threads, gcc >= 4.7" +comment "zmqpp needs a toolchain w/ dynamic library, C++, threads" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 + BR2_STATIC_LIBS if BR2_PACKAGE_ZMQPP
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -PATCH 1/1 zeromq packages: added dynamic library check
I want to make sure I understand.
Are we going to patch the configure.ac file and add something like AC_CHECK_LIB([dl], [function]), and remove the dladdr check? If yes, can you please elaborate why it's going to solve the problem? When I think about it after you brought up libunwind, I'm asking myself if zeromq should select this package too...
Thanks,
Asaf.
Quoted 194 lines · Baruch Siach
Hi Adaf,
Quoted 2 lines · Asaf Kahlon
The zeromq package now needs dynamic library support. Therefore the check was added to it, and to it's bindings.
Please add a link an autobuilder build that this patch fixes.
You also need to propagate this added dependency to reverse dependencies recursively. So, for example, filemq also needs to depend on !static because
it selects czmq.But I think there is a way to avoid all that. The code that needs
dladdr()in
src/err.cpp depends on libunwind. The configure.ac section that checks for libunwind checks alsodladdr(). So this configure failure is unnecessary. Just
add libdld to the list of libraries, and remove the configure failing check.Can you suggest upstream something along this line?
Thanks,
baruchQuoted 32 lines
Signed-off-by Asaf Kahlon <[email protected]>--- DEVELOPERS | 1 + package/cppzmq/Config.in | 6 ++++-- package/czmq/Config.in | 6 ++++-- package/php-zmq/Config.in | 10 ++++++---- package/python-pyzmq/Config.in | 6 ++++-- package/zeromq/Config.in | 10 ++++------ package/zmqpp/Config.in | 5 +++-- 7 files changed, 26 insertions(+), 18 deletions(-)DEVELOPERS +1
-0@@ -191,6 +191,7 @@ F: package/stress/ N: Asaf Kahlon <[email protected]> F: package/python-jsonmodels/ F: package/python-yieldfrom/ +F: package/zeromq N: Ash Charles <[email protected]> F: package/pru-software-support/package/cppzmq/Config.in +1
-0@@ -2,11 +2,13 @@ config BR2_PACKAGE_CPPZMQ bool "cppzmq" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromqpackage/cppzmq/Config.in config BR2_PACKAGE_CPPZMQ · line 13
Quoted 10 lines
package/cppzmq/Config.in +2
-2select BR2_PACKAGE_ZEROMQ help C++ binding for zeromq (ZeroMQ, 0MQ, zmq). http://github.com/zeromq/cppzmq -comment "cppzmq needs a toolchain w/ C++, threads" - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) +comment "cppzmq needs a toolchain w/ dynamic library, C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS ||\
Quoted 11 lines
package/cppzmq/Config.in +1
-0+ BR2_STATIC_LIBSpackage/czmq/Config.in +1
-0@@ -3,12 +3,14 @@ config BR2_PACKAGE_CZMQ depends on BR2_USE_MMU # fork() depends on BR2_INSTALL_LIBSTDCPP # zeromq depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQpackage/czmq/Config.in config BR2_PACKAGE_CZMQ · line 15
Quoted 10 lines
package/czmq/Config.in +2
-2help High-level C Binding for 0MQ http://czmq.zeromq.org/ -comment "czmq needs a toolchain w/ C++, threads" +comment "czmq needs a toolchain w/ dynamic library, C++, threads" depends on BR2_USE_MMU - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS ||\
package/php-zmq/Config.in line 2
Quoted 10 lines
package/czmq/Config.in +1
-0+ BR2_STATIC_LIBSpackage/php-zmq/Config.in +2
-2@@ -1,11 +1,13 @@ -comment "php-zmq needs a toolchain w/ C++, threads" - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) +comment "php-zmq needs a toolchain w/ dynamic library C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS ||\
Review
Quoted 14 lines
package/php-zmq/Config.in +4
-2+ BR2_STATIC_LIBS config BR2_PACKAGE_PHP_ZMQ bool "php-zmq" depends on BR2_PACKAGE_PHP - depends on BR2_INSTALL_LIBSTDCPP - depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_INSTALL_LIBSTDCPP # zeromq + depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQ help ZeroMQ messaging bindings for PHP(quoted diff) +0
-0b/package/python-pyzmq/Config.in
Quoted 9 lines
index
8f33a635c8..306fa02bcb100644package/python-pyzmq/Config.in +1
-0@@ -2,12 +2,14 @@ config BR2_PACKAGE_PYTHON_PYZMQ bool "python-pyzmq" depends on BR2_INSTALL_LIBSTDCPP # zeromq depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQpackage/python-pyzmq/Config.in config BR2_PACKAGE_PYTHON_PYZMQ · line 14
Quoted 10 lines
package/python-pyzmq/Config.in +2
-2help This package contains the python language binding for zeromq. http://zeromq.org/bindings:python -comment "python-pyzmq needs a toolchain w/ C++, threads" +comment "python-pyzmq needs a toolchain w/ dynamic library C++, threads" depends on BR2_PACKAGE_PYTHON - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS ||\
package/zeromq/Config.in line 2
Quoted 10 lines
package/python-pyzmq/Config.in +1
-0+ BR2_STATIC_LIBSpackage/zeromq/Config.in +2
-2@@ -1,10 +1,12 @@ -comment "zeromq needs a toolchain w/ C++, threads" - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) +comment "zeromq needs a toolchain w/ dynamic library, C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS ||\
Quoted 36 lines
package/zeromq/Config.in +2
-4+ BR2_STATIC_LIBS config BR2_PACKAGE_ZEROMQ bool "zeromq" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_LIBUUID help@@ -25,12 +27,8 @@ config BR2_PACKAGE_ZEROMQ if BR2_PACKAGE_ZEROMQ -comment "norm support needs a toolchain w/ dynamic library" - depends on BR2_STATIC_LIBS - config BR2_PACKAGE_ZEROMQ_NORM bool "NORM support" - depends on !BR2_STATIC_LIBS select BR2_PACKAGE_NORM help Add support for NACK-Oriented Reliable Multicast (RFC 5740)package/zmqpp/Config.in +1
-0@@ -4,6 +4,7 @@ config BR2_PACKAGE_ZMQPP depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQ help C++ binding for zeromq (ZeroMQ, 0MQ, zmq).package/zmqpp/Config.in config BR2_PACKAGE_ZMQPP · line 18
Quoted 6 lines
package/zmqpp/Config.in +1
-1@@ -13,9 +14,9 @@ config BR2_PACKAGE_ZMQPP http://github.com/benjamg/zmqpp -comment "zmqpp needs a toolchain w/ C++, threads, gcc >= 4.7" +comment "zmqpp needs a toolchain w/ dynamic library, C++, threads" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS ||\
Quoted 3 lines
package/zmqpp/Config.in +1
-1- !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 + BR2_STATIC_LIBS
Quoted 9 lines
package/zmqpp/Config.in config BR2_PACKAGE_ZMQPP · line 21
Quoted 1 line
package/zmqpp/Config.in +0
-0if BR2_PACKAGE_ZMQPP--
http://baruch.siach.name/blog/ ~. .~ Tk Open
Systems =}------------------------------------------------ooO--U-- Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180411/df5bd9b3/attachment.html>
PATCH 1/1 zeromq packages: added dynamic library check
Hi Asaf,
Quoted 5 lines · Asaf Kahlon
I want to make sure I understand.
Are we going to patch the configure.ac file and add something like
AC_CHECK_LIB([dl], [function]), and remove the dladdr check? If yes, can you please elaborate why it's going to solve the problem?
Here is what I have in mind, totally untested:
configure.ac +1 -6
@@ -175,11 +175,6 @@ case "${host_os}" in AC_DEFINE(ZMQ_HAVE_LINUX, 1, [Have Linux OS]) libzmq_on_linux="yes" - # dladdr/dlopen is in libdl on glibc - AC_SEARCH_LIBS([dladdr], [dl dld], [], [ - AC_MSG_ERROR([unable to find the dladdr() function]) - ]) - if test "x$libzmq_tipc_support" = "xyes"; then AC_DEFINE(ZMQ_HAVE_TIPC, 1, [Have TIPC support]) fi
@@ -784,7 +779,7 @@ if test "x$enable_libunwind" != "xno"; then AC_DEFINE(HAVE_LIBUNWIND, 1, [The libunwind library is to be used]) AC_SUBST([LIBUNWIND_CFLAGS]) AC_SUBST([LIBUNWIND_LIBS]) - AC_CHECK_LIB([dl], [dladdr]) + AC_SEARCH_LIBS([dladdr], [dl dld]) ], [ if test "x$enable_libunwind" = "xyes"; then
Quoted 2 lines
When I think about it after you brought up libunwind, I'm asking myself if zeromq should select this package too...
Not select, since libunwind is not a mandatory dependency. But adding an optional dependency on libunwind would be nice.
baruch
Quoted 194 lines · Baruch Siach
Quoted 193 lines · Asaf Kahlon
Quoted 2 lines
The zeromq package now needs dynamic library support. Therefore the check was added to it, and to it's bindings.
Please add a link an autobuilder build that this patch fixes.
You also need to propagate this added dependency to reverse dependencies recursively. So, for example, filemq also needs to depend on !static because
it selects czmq.But I think there is a way to avoid all that. The code that needs
dladdr()in
src/err.cpp depends on libunwind. The configure.ac section that checks for libunwind checks alsodladdr(). So this configure failure is unnecessary. Just
add libdld to the list of libraries, and remove the configure failing check.Can you suggest upstream something along this line?
Thanks,
baruchQuoted 32 lines
Signed-off-by Asaf Kahlon <[email protected]>--- DEVELOPERS | 1 + package/cppzmq/Config.in | 6 ++++-- package/czmq/Config.in | 6 ++++-- package/php-zmq/Config.in | 10 ++++++---- package/python-pyzmq/Config.in | 6 ++++-- package/zeromq/Config.in | 10 ++++------ package/zmqpp/Config.in | 5 +++-- 7 files changed, 26 insertions(+), 18 deletions(-)DEVELOPERS +1
-0@@ -191,6 +191,7 @@ F: package/stress/ N: Asaf Kahlon <[email protected]> F: package/python-jsonmodels/ F: package/python-yieldfrom/ +F: package/zeromq N: Ash Charles <[email protected]> F: package/pru-software-support/package/cppzmq/Config.in +1
-0@@ -2,11 +2,13 @@ config BR2_PACKAGE_CPPZMQ bool "cppzmq" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromqpackage/cppzmq/Config.in config BR2_PACKAGE_CPPZMQ · line 13
Quoted 10 lines
package/cppzmq/Config.in +2
-2select BR2_PACKAGE_ZEROMQ help C++ binding for zeromq (ZeroMQ, 0MQ, zmq). http://github.com/zeromq/cppzmq -comment "cppzmq needs a toolchain w/ C++, threads" - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) +comment "cppzmq needs a toolchain w/ dynamic library, C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS ||\
Quoted 11 lines
package/cppzmq/Config.in +1
-0+ BR2_STATIC_LIBSpackage/czmq/Config.in +1
-0@@ -3,12 +3,14 @@ config BR2_PACKAGE_CZMQ depends on BR2_USE_MMU # fork() depends on BR2_INSTALL_LIBSTDCPP # zeromq depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQpackage/czmq/Config.in config BR2_PACKAGE_CZMQ · line 15
Quoted 10 lines
package/czmq/Config.in +2
-2help High-level C Binding for 0MQ http://czmq.zeromq.org/ -comment "czmq needs a toolchain w/ C++, threads" +comment "czmq needs a toolchain w/ dynamic library, C++, threads" depends on BR2_USE_MMU - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS ||\
package/php-zmq/Config.in line 2
Quoted 10 lines
package/czmq/Config.in +1
-0+ BR2_STATIC_LIBSpackage/php-zmq/Config.in +2
-2@@ -1,11 +1,13 @@ -comment "php-zmq needs a toolchain w/ C++, threads" - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) +comment "php-zmq needs a toolchain w/ dynamic library C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS ||\
Review
Quoted 14 lines
package/php-zmq/Config.in +4
-2+ BR2_STATIC_LIBS config BR2_PACKAGE_PHP_ZMQ bool "php-zmq" depends on BR2_PACKAGE_PHP - depends on BR2_INSTALL_LIBSTDCPP - depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_INSTALL_LIBSTDCPP # zeromq + depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQ help ZeroMQ messaging bindings for PHP(quoted diff) +0
-0b/package/python-pyzmq/Config.in
Quoted 9 lines
index
8f33a635c8..306fa02bcb100644package/python-pyzmq/Config.in +1
-0@@ -2,12 +2,14 @@ config BR2_PACKAGE_PYTHON_PYZMQ bool "python-pyzmq" depends on BR2_INSTALL_LIBSTDCPP # zeromq depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQpackage/python-pyzmq/Config.in config BR2_PACKAGE_PYTHON_PYZMQ · line 14
Quoted 10 lines
package/python-pyzmq/Config.in +2
-2help This package contains the python language binding for zeromq. http://zeromq.org/bindings:python -comment "python-pyzmq needs a toolchain w/ C++, threads" +comment "python-pyzmq needs a toolchain w/ dynamic library C++, threads" depends on BR2_PACKAGE_PYTHON - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS ||\
package/zeromq/Config.in line 2
Quoted 10 lines
package/python-pyzmq/Config.in +1
-0+ BR2_STATIC_LIBSpackage/zeromq/Config.in +2
-2@@ -1,10 +1,12 @@ -comment "zeromq needs a toolchain w/ C++, threads" - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS) +comment "zeromq needs a toolchain w/ dynamic library, C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS ||\
Quoted 36 lines
package/zeromq/Config.in +2
-4+ BR2_STATIC_LIBS config BR2_PACKAGE_ZEROMQ bool "zeromq" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_LIBUUID help@@ -25,12 +27,8 @@ config BR2_PACKAGE_ZEROMQ if BR2_PACKAGE_ZEROMQ -comment "norm support needs a toolchain w/ dynamic library" - depends on BR2_STATIC_LIBS - config BR2_PACKAGE_ZEROMQ_NORM bool "NORM support" - depends on !BR2_STATIC_LIBS select BR2_PACKAGE_NORM help Add support for NACK-Oriented Reliable Multicast (RFC 5740)package/zmqpp/Config.in +1
-0@@ -4,6 +4,7 @@ config BR2_PACKAGE_ZMQPP depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq + depends on !BR2_STATIC_LIBS # zeromq select BR2_PACKAGE_ZEROMQ help C++ binding for zeromq (ZeroMQ, 0MQ, zmq).package/zmqpp/Config.in config BR2_PACKAGE_ZMQPP · line 18
Quoted 6 lines
package/zmqpp/Config.in +1
-1@@ -13,9 +14,9 @@ config BR2_PACKAGE_ZMQPP http://github.com/benjamg/zmqpp -comment "zmqpp needs a toolchain w/ C++, threads, gcc >= 4.7" +comment "zmqpp needs a toolchain w/ dynamic library, C++, threads" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS ||\
Quoted 4 lines
package/zmqpp/Config.in +1
-1- !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 + BR2_STATIC_LIBS if BR2_PACKAGE_ZMQPP
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -