From https://buildd.debian.org/status/fetch.php?pkg=kamailio&arch=kfreebsd-am...
and https://buildd.debian.org/status/fetch.php?pkg=kamailio&arch=kfreebsd-i3... ``` gcc -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -fno-strict-overflow -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE -DNAME='"kamailio"' -DVERSION='"4.4.0"' -DARCH='"x86_64"' -DOS='gnu/kfreebsd_' -DOS_QUOTED='"gnu/kfreebsd"' -DCOMPILER='"gcc 5.3.1"' -D__CPU_x86_64 -D__OS_gnu/kfreebsd -DSER_VER=4004000 -DCFG_DIR='"/etc/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DUSE_SCTP -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -c msg_translator.c -o msg_translator.o -MMD -MP <command-line>:0:9: warning: ISO C99 requires whitespace after the macro name In file included from parser/../mem/../fastlock.h:36:0, from parser/../mem/../lock_ops.h:92, from parser/../mem/shm.h:39, from parser/../mem/shm_mem.h:34, from parser/../ut.h:45, from parser/../ip_addr.h:40, from parser/msg_parser.h:37, from msg_translator.h:54, from msg_translator.c:88: parser/../mem/../sched_yield.h:34:20: warning: extra tokens at end of #ifndef directive #ifndef sched_yield() ^ In file included from msg_translator.c:98:0: resolve.h: In function '_resolvehost': resolve.h:432:4: error: #error neither gethostbyname2 or getipnodebyname present #error neither gethostbyname2 or getipnodebyname present ^ Makefile.rules:97: recipe for target 'msg_translator.o' failed make[1]: *** [msg_translator.o] Error 1 ```
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/576
I pushed two patches for the two issues, referenced above.
For kfreebsd I relied on https://lists.debian.org/debian-bsd/2006/06/msg00005.html for the output of uname -s to detect the OS string. I hope it is still the same kind of output, because I have no kfreebsd around.
If patches work ok, then you can go ahead and backport in needed branches.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/576#issuecomment-212364441
Closed #576.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/576#event-639515247
Backported to 4.4. If not working, re-open.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/576#issuecomment-214178747
Reopened #576.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/576#event-639825181
new errors: https://buildd.debian.org/status/fetch.php?pkg=kamailio&arch=kfreebsd-am... ``` /usr/bin/make install-modules-all LIBDIR=lib/x86_64-kfreebsd-gnu group_include="kjson" BASEDIR=/«PKGBUILDDIR»/debian/kamailio-json-modules cfg_prefix=/«PKGBUILDDIR»/debian/kamailio-json-modules doc-dir=share/doc/kamailio-json-modules quiet=verbose make[1]: Entering directory '/«PKGBUILDDIR»' config.mak loaded Makefile.defs defs skipped mkdir -p /«PKGBUILDDIR»/debian/kamailio-json-modules/usr/lib/x86_64-kfreebsd-gnu/kamailio/modules Makefile.defs defs skipped Makefile.defs defs skipped gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -fno-strict-overflow -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE -DNAME='"kamailio"' -DVERSION='"4.4.0"' -DARCH='"x86_64"' -DOS='gnu_kfreebsd_' -DOS_QUOTED='"gnu_kfreebsd"' -DCOMPILER='"gcc 5.3.1"' -D__CPU_x86_64 -D__OS_gnu_kfreebsd -DSER_VER=4004000 -DCFG_DIR='"/etc/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DUSE_SCTP -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_KQUEUE -DHAVE_SELECT -I/usr/include/json-c -DKAMAILIO_MOD_INTERFACE -DMOD_NAME='"json"' -c json_funcs.c -o json_funcs.o -MMD -MP gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -fno-strict-overflow -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE -DNAME='"kamailio"' -DVERSION='"4.4.0"' -DARCH='"x86_64"' -DOS='gnu_kfreebsd_' -DOS_QUOTED='"gnu_kfreebsd"' -DCOMPILER='"gcc 5.3.1"' -D__CPU_x86_64 -D__OS_gnu_kfreebsd -DSER_VER=4004000 -DCFG_DIR='"/etc/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DUSE_SCTP -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_KQUEUE -DHAVE_SELECT -I/usr/include/json-c -DKAMAILIO_MOD_INTERFACE -DMOD_NAME='"json"' -c json_mod.c -o json_mod.o -MMD -MP gcc -shared -m64 -Wl,-O2 -Wl,-E -Wl,-z,relro json_funcs.o json_mod.o -ljson-c -o json.so touch /«PKGBUILDDIR»/debian/kamailio-json-modules/usr/lib/x86_64-kfreebsd-gnu/kamailio/modules/json.so install -m 755 json.so /«PKGBUILDDIR»/debian/kamailio-json-modules/usr/lib/x86_64-kfreebsd-gnu/kamailio/modules Makefile.defs defs skipped Makefile.defs defs skipped gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -fno-strict-overflow -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE -DNAME='"kamailio"' -DVERSION='"4.4.0"' -DARCH='"x86_64"' -DOS='gnu_kfreebsd_' -DOS_QUOTED='"gnu_kfreebsd"' -DCOMPILER='"gcc 5.3.1"' -D__CPU_x86_64 -D__OS_gnu_kfreebsd -DSER_VER=4004000 -DCFG_DIR='"/etc/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DUSE_SCTP -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_KQUEUE -DHAVE_SELECT -I/usr/include/json-c -DKAMAILIO_MOD_INTERFACE -DMOD_NAME='"jsonrpc-c"' -c jsonrpc_request.c -o jsonrpc_request.o -MMD -MP gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -fno-strict-overflow -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE -DNAME='"kamailio"' -DVERSION='"4.4.0"' -DARCH='"x86_64"' -DOS='gnu_kfreebsd_' -DOS_QUOTED='"gnu_kfreebsd"' -DCOMPILER='"gcc 5.3.1"' -D__CPU_x86_64 -D__OS_gnu_kfreebsd -DSER_VER=4004000 -DCFG_DIR='"/etc/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DUSE_SCTP -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_KQUEUE -DHAVE_SELECT -I/usr/include/json-c -DKAMAILIO_MOD_INTERFACE -DMOD_NAME='"jsonrpc-c"' -c jsonrpc_io.c -o jsonrpc_io.o -MMD -MP jsonrpc_io.c:30:25: fatal error: sys/timerfd.h: No such file or directory compilation terminated. ../../Makefile.rules:97: recipe for target 'jsonrpc_io.o' failed make[2]: *** [jsonrpc_io.o] Error 1 ```
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/576#issuecomment-214280005
You have to skip building jsonrpc-c module, it works only on gnu/linux due to dependency on timerfd.h.
It is known issue, same happens on other bsd or macosx.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/576#issuecomment-214281493
And as a complementary note, janssonrpc-c should provide same kind of features, without dependency on timerfd stuff.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/576#issuecomment-214281648
Closed #576.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/576#event-639832919
Ack, thanks!
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/576#issuecomment-214281891