<pre><code>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
</code></pre>

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

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/commit/2cf9dbadfc4a294927798a1aaf50601c68711a50#commitcomment-19132060">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZTZDV-21--eWxiZYUnCYqAlv6wnFks5qsp6MgaJpZM4KEB0h">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZQRMa676pED0omjqt-OjcniQDr2Sks5qsp6MgaJpZM4KEB0h.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/commit/2cf9dbadfc4a294927798a1aaf50601c68711a50#commitcomment-19132060"></link>
  <meta itemprop="name" content="View Commit"></meta>
</div>
<meta itemprop="description" content="View this Commit on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@dunst0 on 2cf9dba: ```\r\ngmake[1]: Entering directory '/usr/src/kamailio/modules/ipops'\r\nMakefile.defs defs skipped\r\nclang -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\r\ndetailed_ip_type.c:103:17: error: use of undeclared identifier 'AF_INET6'\r\n  if (inet_pton(AF_INET6, in6_string, in6_addr) != 1)  return 0;\r\n                ^\r\ndetailed_ip_type.c:131:17: error: use of undeclared identifier 'AF_INET'\r\n  if (inet_pton(AF_INET, in4_string, \u0026in4_addr) != 1)  return 0;\r\n                ^\r\n2 errors generated.\r\ngmake[1]: *** [../../Makefile.rules:97: detailed_ip_type.o] Error 1\r\ngmake[1]: Leaving directory '/usr/src/kamailio/modules/ipops'\r\ngmake: *** [Makefile:511: modules] Error 1\r\n```\r\n\r\n`#include \u003csys/socket.h\u003e` is missing to compile it on FreeBSD maschine.\r\nBecause AF_INET and AF_INET6 are defined in this file."}],"action":{"name":"View Commit","url":"https://github.com/kamailio/kamailio/commit/2cf9dbadfc4a294927798a1aaf50601c68711a50#commitcomment-19132060"}}}</script>