<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-hnodeb/+/26035">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">configure: link against libsctp<br><br>osmo-hnodeb calls sctp_recvmsg directly, which is provided by libsctp.<br>Hence, we need to depend and link on it.<br><br>Change-Id: I793d6fe8601cf9a8dd72bf6884b469204b513c11<br>---<br>M configure.ac<br>M src/osmo-hnodeb/Makefile.am<br>2 files changed, 11 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-hnodeb refs/changes/35/26035/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/configure.ac b/configure.ac</span><br><span>index 750b5e9..5b4ca8b 100644</span><br><span>--- a/configure.ac</span><br><span>+++ b/configure.ac</span><br><span>@@ -44,6 +44,16 @@</span><br><span> dnl checks for libraries</span><br><span> AC_SEARCH_LIBS([dlopen], [dl dld], [LIBRARY_DL="$LIBS";LIBS=""])</span><br><span> AC_SUBST(LIBRARY_DL)</span><br><span style="color: hsl(120, 100%, 40%);">+old_LIBS=$LIBS</span><br><span style="color: hsl(120, 100%, 40%);">+AC_SEARCH_LIBS([sctp_recvmsg], [sctp], [</span><br><span style="color: hsl(120, 100%, 40%);">+    AC_DEFINE(HAVE_LIBSCTP, 1, [Define 1 to enable SCTP support])</span><br><span style="color: hsl(120, 100%, 40%);">+ AC_SUBST(HAVE_LIBSCTP, [1])</span><br><span style="color: hsl(120, 100%, 40%);">+   if test -n "$ac_lib"; then</span><br><span style="color: hsl(120, 100%, 40%);">+          AC_SUBST(LIBSCTP_LIBS, [-l$ac_lib])</span><br><span style="color: hsl(120, 100%, 40%);">+   fi</span><br><span style="color: hsl(120, 100%, 40%);">+    ], [</span><br><span style="color: hsl(120, 100%, 40%);">+  AC_MSG_ERROR([sctp_recvmsg not found in searched libs])])</span><br><span style="color: hsl(120, 100%, 40%);">+LIBS=$old_LIBS</span><br><span> </span><br><span> PKG_CHECK_MODULES(LIBASN1C, libasn1c >= 0.9.30)</span><br><span> PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 1.5.0)</span><br><span>diff --git a/src/osmo-hnodeb/Makefile.am b/src/osmo-hnodeb/Makefile.am</span><br><span>index fd18233..139b6b0 100644</span><br><span>--- a/src/osmo-hnodeb/Makefile.am</span><br><span>+++ b/src/osmo-hnodeb/Makefile.am</span><br><span>@@ -52,4 +52,5 @@</span><br><span>  $(LIBOSMORUA_LIBS) \</span><br><span>         $(LIBOSMORANAP_LIBS) \</span><br><span>       $(LIBOSMOHNBAP_LIBS) \</span><br><span style="color: hsl(120, 100%, 40%);">+        $(LIBSCTP_LIBS) \</span><br><span>    $(NULL)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-hnodeb/+/26035">change 26035</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-hnodeb/+/26035"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hnodeb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I793d6fe8601cf9a8dd72bf6884b469204b513c11 </div>
<div style="display:none"> Gerrit-Change-Number: 26035 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>