diff options
author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2018-10-14 11:01:56 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-12-09 22:23:08 +0100 |
commit | 81e5615052122d26842b25b7f0a2039ef8045fe8 (patch) | |
tree | 8330e89be08d01ecf726f49ad142661a511309a4 /package/asterisk/Config.in | |
parent | 78790d3e9c37cb7fc75b03305f5ae4af30e566b6 (diff) | |
download | buildroot-81e5615052122d26842b25b7f0a2039ef8045fe8.tar.gz buildroot-81e5615052122d26842b25b7f0a2039ef8045fe8.zip |
package/asterisk: enable for uclibc toolchains
This patch extends the configure checks for re-entrant resolver
functions to fix uclibc builds.
Quoting Yann:
http://lists.busybox.net/pipermail/buildroot/2017-September/203004.html
"As a final stroke of genius, asterisk checks for the re-entrant variant
of res_ninit(), and concludes that all such functions are available,
including res_nsearch(). Uclibc-ng has the former but not the latter, so
the build fails. Since there is no cache variable for that check, we
can't pre-feed that result to configure, and fixing it is a bigger
endeavour. So we make asterisk depend on glibc for now, until someone
is brave enough to fix it."
Musl builds are still broken:
output/build/asterisk-16.0.0/include/asterisk/astmm.h:165:35:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘->’ token
Do_not_use_calloc__use_ast_calloc->fail(a, b)
output/build/asterisk-16.0.0/include/asterisk/astmm.h:169:77:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘->’ token
Do_not_use_free__use_ast_free_or_ast_std_free_for_remotely_allocated_memory->fail(a)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/asterisk/Config.in')
-rw-r--r-- | package/asterisk/Config.in | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/package/asterisk/Config.in b/package/asterisk/Config.in index cfea181026..b55bc0174d 100644 --- a/package/asterisk/Config.in +++ b/package/asterisk/Config.in @@ -1,9 +1,8 @@ config BR2_PACKAGE_ASTERISK bool "asterisk" - # Uses glibc resolver function res_nsearch() - depends on BR2_TOOLCHAIN_USES_GLIBC depends on BR2_INSTALL_LIBSTDCPP depends on !BR2_STATIC_LIBS # dlfcn.h + depends on !BR2_TOOLCHAIN_USES_MUSL depends on BR2_USE_MMU # libedit depends on BR2_USE_WCHAR # libedit select BR2_PACKAGE_JANSSON @@ -25,7 +24,7 @@ config BR2_PACKAGE_ASTERISK http://www.asterisk.org/ -comment "asterisk needs a glibc toolchain w/ C++, dynamic library, wchar" +comment "asterisk needs a glibc or uClibc toolchain w/ C++, dynamic library, wchar" depends on BR2_USE_MMU - depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_INSTALL_LIBSTDCPP \ + depends on BR2_TOOLCHAIN_USES_MUSL || !BR2_INSTALL_LIBSTDCPP \ || BR2_STATIC_LIBS || !BR2_USE_WCHAR |