<div dir="ltr"><div>Hi,</div><div><br></div><div>It seems I figured it out. The <span style="font-family:monospace">"inline function X declared but never defined"</span> is actually a warning, not an error, but I think Debian 10 switched to a newer version of GCC which is stricter with warnings (?). If I use</div><div><span style="font-family:monospace">CFLAGS="... -Wno-error" MOD_CFLAGS="... -Wno-error" ./configure</span></div><div>instead of just<span style="font-family:monospace"> ./configure</span> the compilation doesn't halt on this issue.</div><div><br></div><div>Next I did have another issue, which is that libsng_isdn gets installed to /usr/lib64 but FreeSWITCH can't find it there (I guess this is an ld configuration issue). A <span style="font-family:monospace">mv /usr/lib64/libsng* /usr/lib/ </span>took care of that.</div><div><br></div><div>Kind regards,</div><div>Sam<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 4, 2020 at 12:48 PM Sam van Herwaarden <<a href="mailto:svanherwaarden@precisionag.org">svanherwaarden@precisionag.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I'm wondering if anyone has recent experience using FreeSWITCH 1.10 on Debian 10 with libsng_isdn. I'm compiling from source and getting the errors below.</div><div><br></div><div>I installed the current libsng_isdn, which is version 8.3.4. However, the <a href="https://freeswitch.org/confluence/display/FREESWITCH/FreeTDM" target="_blank">FreeTDM instructions</a> mention I need 1.2.0+ which makes me wonder whether these instructions might be outdated.</div><div><br></div><div>Would an alternative be to just install DAHDI + libpri? I haven't tried that yet but would be happy to. This is all kind of new to me and I'm not entirely sure which components perform which tasks.<br></div><div><br></div><div>I have wanpipe installed and am using a PRI/E1 line, I can see that my first port is connected (service wanrouter status), the card is a Sangoma A104. If I uninstall libsng_isdn I'm able to build and install FreeSWITCH with mod_freetdm but the errors below seem to be blocking me when I try to set it up with an ISDN library.</div><div><br></div><div>Kind regards,</div><div>Sam<br></div><div><br></div><div><span style="font-family:monospace"> CC ftmod_sangoma_isdn_la-ftmod_sangoma_isdn.lo<br>In file included from /usr/include/sng_isdn/sng_isdn.h:32,<br> from src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.h:55,<br> from src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c:38:<br>/usr/include/sng_isdn/ssi.x:1253:20: error: inline function ‘SDisInt’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SDisInt ARGS((void ));<br> ^~~~~~~<br>/usr/include/sng_isdn/ssi.x:1252:20: error: inline function ‘SEnbInt’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SEnbInt ARGS((void ));<br> ^~~~~~~<br>/usr/include/sng_isdn/ssi.x:1245:19: error: inline function ‘SSetIntPend’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SSetIntPend ARGS((U16 id, Bool flag));<br> ^~~~~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1244:19: error: inline function ‘SChkNxtDBuf’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SChkNxtDBuf ARGS((Buffer *mBuf));<br> ^~~~~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1243:19: error: inline function ‘SGetNxtDBuf’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SGetNxtDBuf ARGS((Buffer *mBuf, Buffer **dBuf));<br> ^~~~~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1242:19: error: inline function ‘SInitNxtDBuf’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SInitNxtDBuf ARGS((Buffer *mBuf));<br> ^~~~~~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1237:19: error: inline function ‘SUpdMsg’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SUpdMsg ARGS((Buffer *mBuf, Buffer *dBuf, MsgLen mLen));<br> ^~~~~~~<br>/usr/include/sng_isdn/ssi.x:1236:19: error: inline function ‘SGetDataTx’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SGetDataTx ARGS((Buffer *dBuf, Data **dat, MsgLen *mLen));<br> ^~~~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1235:19: error: inline function ‘SGetDataRx’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SGetDataRx ARGS((Buffer *dBuf, MsgLen pad, Data **dat, MsgLen *mLen));<br> ^~~~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1234:19: error: inline function ‘SRemDBufPre’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SRemDBufPre ARGS((Buffer *mBuf, Buffer **dBuf));<br> ^~~~~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1233:19: error: inline function ‘SRemDBufPst’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SRemDBufPst ARGS((Buffer *mBuf, Buffer **dBuf));<br> ^~~~~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1232:19: error: inline function ‘SAddDBufPre’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SAddDBufPre ARGS((Buffer *mBuf, Buffer *dBuf));<br> ^~~~~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1231:19: error: inline function ‘SAddDBufPst’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SAddDBufPst ARGS((Buffer *mBuf, Buffer *dBuf));<br> ^~~~~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1068:20: error: inline function ‘SPutDBuf’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SPutDBuf ARGS((Region region,Pool pool,Buffer *buf));<br> ^~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1067:20: error: inline function ‘SGetDBuf’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SGetDBuf ARGS((Region region,Pool pool,Buffer * *bufPtr));<br> ^~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1058:20: error: inline function ‘SDequeueLast’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SDequeueLast ARGS((Buffer * *bufPtr,Queue *q));<br> ^~~~~~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1057:20: error: inline function ‘SDequeueFirst’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SDequeueFirst ARGS((Buffer * *bufPtr,Queue *q));<br> ^~~~~~~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1056:20: error: inline function ‘SQueueLast’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SQueueLast ARGS((Buffer *buf,Queue *q));<br> ^~~~~~~~~~<br>/usr/include/sng_isdn/ssi.x:1055:20: error: inline function ‘SQueueFirst’ declared but never defined [-Werror]<br> EXTERN INLINE S16 SQueueFirst ARGS((Buffer *buf,Queue *q));<br> ^~~~~~~~~~~<br>cc1: all warnings being treated as errors</span><br></div></div>
</blockquote></div>