<h3>Description</h3>
<p>Kamailio compiles without raw sockets support, even though <code>src/Makefile.defs</code> should enable that by default, according to the Makefile.</p>
<h3>Troubleshooting</h3>
<p>Not applicable.</p>
<h4>Reproduction</h4>
<p>Build kamailio on Debian 8.10 Linux using the standard <code>Makefile.defs</code>, and add <code>udp4_raw = 0</code> to the config file. You should get the warning shown in the log message provided below.</p>
<h4>Debugging Data</h4>
<p>Not applicable</p>
<h4>Log Messages</h4>
<pre><code>kamailio[89847]: WARNING: <core> [core/cfg.y:3427]: warn_at(): warning in config file <redacted>, line 66, column 12: raw socket support not compiled in
</code></pre>
<h4>SIP Traffic</h4>
<p>Not Applicable</p>
<h3>Possible Solutions</h3>
<p>This is the solution proposed in PR <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="332154085" data-permission-text="Issue title is private" data-url="https://github.com/kamailio/kamailio/issues/1564" href="https://github.com/kamailio/kamailio/pull/1564">#1564</a>.</p>
<pre><code>diff --git a/src/Makefile.defs b/src/Makefile.defs
index 428a236..3a2480c 100644
--- a/src/Makefile.defs
+++ b/src/Makefile.defs
@@ -1755,7 +1755,7 @@ ifeq ($(OS), linux)
        C_DEFS+=-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD \
                        -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H \
                        -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_IP_MREQN
-       ifneq ($(RAW_SOCKS), yes)
+       ifeq ($(RAW_SOCKS), yes)
                C_DEFS+= -DUSE_RAW_SOCKS
        endif
        ifneq ($(found_lock_method), yes)
</code></pre>
<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>version: kamailio 5.1.3 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 4.9.2
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>
<pre><code>Debian 8.10
Kernel 3.16.0-4-amd64 #1 SMP Debian 3.16.51-3 (2017-12-13) x86_64 GNU/Linux
</code></pre>

<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/issues/1565">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36Zfz7N-ZgKOAwJIppO36W6DefnfC7ks5t8X3dgaJpZM4Um7g_">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZdQE79BWlmycwuSUGI7VjuqeN6c4ks5t8X3dgaJpZM4Um7g_.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","potentialAction":{"@type":"ViewAction","target":"https://github.com/kamailio/kamailio/issues/1565","url":"https://github.com/kamailio/kamailio/issues/1565","name":"View Issue"},"description":"View this Issue on GitHub","publisher":{"@type":"Organization","name":"GitHub","url":"https://github.com"}}</script>
<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://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Kamailio 5.1.x builds without raw socket support due to Makefile error (#1565)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1565"}}}</script>
<script type="application/ld+json">{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Kamailio 5.1.x builds without raw socket support due to Makefile error (#1565)",
"sections": [
{
"text": "",
"activityTitle": "**Edwin Fine**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@efine",
"facts": [
{
"name": "Repository: ",
"value": "kamailio/kamailio"
},
{
"name": "Issue #: ",
"value": 1565
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1565,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1565\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/issues/1565"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 345749567\n}"
}
],
"themeColor": "26292E"
}</script>