<h3>Description</h3>
<p><code>libmnl-devel</code> is present in OpenSUSE but build of ims module is failed.<br>
This because headers files is located on other path then kamailio expects.<br>
<code>libmnl-devel</code> package is designed to use pkgconfig.<br>
I checked on CentOS dist <code>libmnl-devel</code> also have files for pkgconfig.</p>
<h3>Troubleshooting</h3>
<h4>Reproduction</h4>
<p>need to build ims module on openSUSE_Leap_42.3</p>
<h4>Debugging Data</h4>
<p>NA</p>
<h4>Log Messages</h4>
<pre><code>[  333s] make[3]: 'libkamailio_ims.so.0.1' is up to date.
[  333s] LD (gcc) [M ims_ocs.so]                ims_ocs.so
[  333s] CC (gcc) [M ims_diameter_server.so]            ims_diameter_server.o
[  333s] CC (gcc) [M ims_diameter_server.so]            cJSON.o
[  333s] CC (gcc) [M ims_diameter_server.so]            avp_helper.o
[  334s] make[3]: 'libkamailio_ims.so.0.1' is up to date.
[  334s] LD (gcc) [M ims_diameter_server.so]            ims_diameter_server.so
[  334s] CC (gcc) [M ims_ipsec_pcscf.so]                ims_ipsec_pcscf_mod.o
[  334s] CC (gcc) [M ims_ipsec_pcscf.so]                ipsec.o
[  334s] ipsec.c:32:27: fatal error: libmnl/libmnl.h: No such file or directory
[  334s]  #include <libmnl/libmnl.h>
[  334s]                            ^
[  334s] compilation terminated.
[  334s] ../../Makefile.rules:100: recipe for target 'ipsec.o' failed
[  334s] make[2]: *** [ipsec.o] Error 1
[  334s] Makefile:511: recipe for target 'modules' failed
[  334s] make[1]: *** [modules] Error 1
[  334s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/kamailio-5.2.0/src'
[  334s] Makefile:27: recipe for target 'every-module' failed
[  334s] make: *** [every-module] Error 2
[  334s] error: Bad exit status from /var/tmp/rpm-tmp.Yi6mZQ (%build)
[  334s] 
</code></pre>
<h4>SIP Traffic</h4>
<p>NA</p>
<h3>Possible Solutions</h3>
<p>Not known</p>
<h3>Additional Information</h3>
<p>master branch</p>
<ul>
<li><strong>Operating System</strong>:<br>
openSUSE_Leap_42.3</li>
</ul>

<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/1710">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZWOajDKt7RyE5EYr80YRxJxoV6MWks5usng-gaJpZM4YR1bX">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36Zdg6h0hAoz3W0ZFmtfNiee4YBdnwks5usng-gaJpZM4YR1bX.gif" height="1" width="1" alt="" /></p>
<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":"Cannot build ims module on OpenSUSE (#1710)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1710"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1710",
"url": "https://github.com/kamailio/kamailio/issues/1710",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Cannot build ims module on OpenSUSE (#1710)",
"sections": [
{
"text": "",
"activityTitle": "**sergey-safarov**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@sergey-safarov",
"facts": [
{
"name": "Repository: ",
"value": "kamailio/kamailio"
},
{
"name": "Issue #: ",
"value": 1710
}
]
}
],
"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\": 1710,\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\": 1710\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/issues/1710"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 407328471\n}"
}
],
"themeColor": "26292E"
}
]</script>