gmake[1]: Entering directory '/usr/src/kamailio/modules/ipops'
Makefile.defs defs skipped
clang -fPIC -DPIC -g -m64    -DNAME='"kamailio"' -DVERSION='"5.0.0-dev6"' -DARCH='"x86_64"' -DOS='freebsd_' -DOS_QUOTED='"freebsd"' -DCOMPILER='"clang 3.4"' -D__CPU_x86_64 -D__OS_freebsd -DSER_VER=5000000 -DCFG_DIR='"/usr/local/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_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_CONNECT_ECONNRESET_BUG -DHAVE_TIMEGM -DHAVE_NETINET_IN_SYSTM -DUSE_RAW_SOCKS -DHAVE_KQUEUE -DHAVE_SELECT  -DKAMAILIO_MOD_INTERFACE -DMOD_NAME='"ipops"' -c detailed_ip_type.c -o detailed_ip_type.o
detailed_ip_type.c:103:17: error: use of undeclared identifier 'AF_INET6'
  if (inet_pton(AF_INET6, in6_string, in6_addr) != 1)  return 0;
                ^
detailed_ip_type.c:131:17: error: use of undeclared identifier 'AF_INET'
  if (inet_pton(AF_INET, in4_string, &in4_addr) != 1)  return 0;
                ^
2 errors generated.
gmake[1]: *** [../../Makefile.rules:97: detailed_ip_type.o] Error 1
gmake[1]: Leaving directory '/usr/src/kamailio/modules/ipops'
gmake: *** [Makefile:511: modules] Error 1

#include <sys/socket.h> is missing to compile it on FreeBSD maschine.
Because AF_INET and AF_INET6 are defined in this file.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.