[Freeswitch-users] FreeSWITCH and libsng_isdn

Sam van Herwaarden svanherwaarden at precisionag.org
Tue Feb 4 13:02:20 UTC 2020


Hi,

It seems I figured it out. The "inline function X declared but never
defined" 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
CFLAGS="... -Wno-error" MOD_CFLAGS="... -Wno-error" ./configure
instead of just ./configure the compilation doesn't halt on this issue.

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 mv /usr/lib64/libsng* /usr/lib/ took care of that.

Kind regards,
Sam

On Tue, Feb 4, 2020 at 12:48 PM Sam van Herwaarden <
svanherwaarden at precisionag.org> wrote:

> Hi,
>
> 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.
>
> I installed the current libsng_isdn, which is version 8.3.4. However, the FreeTDM
> instructions
> <https://freeswitch.org/confluence/display/FREESWITCH/FreeTDM> mention I
> need 1.2.0+ which makes me wonder whether these instructions might be
> outdated.
>
> 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.
>
> 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.
>
> Kind regards,
> Sam
>
>   CC       ftmod_sangoma_isdn_la-ftmod_sangoma_isdn.lo
> In file included from /usr/include/sng_isdn/sng_isdn.h:32,
>                  from src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.h:55,
>                  from src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c:38:
> /usr/include/sng_isdn/ssi.x:1253:20: error: inline function ‘SDisInt’
> declared but never defined [-Werror]
>  EXTERN  INLINE S16 SDisInt ARGS((void ));
>                     ^~~~~~~
> /usr/include/sng_isdn/ssi.x:1252:20: error: inline function ‘SEnbInt’
> declared but never defined [-Werror]
>  EXTERN  INLINE S16 SEnbInt ARGS((void ));
>                     ^~~~~~~
> /usr/include/sng_isdn/ssi.x:1245:19: error: inline function ‘SSetIntPend’
> declared but never defined [-Werror]
>  EXTERN INLINE S16 SSetIntPend ARGS((U16 id, Bool flag));
>                    ^~~~~~~~~~~
> /usr/include/sng_isdn/ssi.x:1244:19: error: inline function ‘SChkNxtDBuf’
> declared but never defined [-Werror]
>  EXTERN INLINE S16 SChkNxtDBuf ARGS((Buffer *mBuf));
>                    ^~~~~~~~~~~
> /usr/include/sng_isdn/ssi.x:1243:19: error: inline function ‘SGetNxtDBuf’
> declared but never defined [-Werror]
>  EXTERN INLINE S16 SGetNxtDBuf ARGS((Buffer *mBuf, Buffer **dBuf));
>                    ^~~~~~~~~~~
> /usr/include/sng_isdn/ssi.x:1242:19: error: inline function ‘SInitNxtDBuf’
> declared but never defined [-Werror]
>  EXTERN INLINE S16 SInitNxtDBuf ARGS((Buffer *mBuf));
>                    ^~~~~~~~~~~~
> /usr/include/sng_isdn/ssi.x:1237:19: error: inline function ‘SUpdMsg’
> declared but never defined [-Werror]
>  EXTERN INLINE S16 SUpdMsg ARGS((Buffer *mBuf, Buffer *dBuf, MsgLen mLen));
>                    ^~~~~~~
> /usr/include/sng_isdn/ssi.x:1236:19: error: inline function ‘SGetDataTx’
> declared but never defined [-Werror]
>  EXTERN INLINE S16 SGetDataTx ARGS((Buffer *dBuf, Data **dat, MsgLen
> *mLen));
>                    ^~~~~~~~~~
> /usr/include/sng_isdn/ssi.x:1235:19: error: inline function ‘SGetDataRx’
> declared but never defined [-Werror]
>  EXTERN INLINE S16 SGetDataRx ARGS((Buffer *dBuf, MsgLen pad, Data **dat,
> MsgLen *mLen));
>                    ^~~~~~~~~~
> /usr/include/sng_isdn/ssi.x:1234:19: error: inline function ‘SRemDBufPre’
> declared but never defined [-Werror]
>  EXTERN INLINE S16 SRemDBufPre ARGS((Buffer *mBuf, Buffer **dBuf));
>                    ^~~~~~~~~~~
> /usr/include/sng_isdn/ssi.x:1233:19: error: inline function ‘SRemDBufPst’
> declared but never defined [-Werror]
>  EXTERN INLINE S16 SRemDBufPst ARGS((Buffer *mBuf, Buffer **dBuf));
>                    ^~~~~~~~~~~
> /usr/include/sng_isdn/ssi.x:1232:19: error: inline function ‘SAddDBufPre’
> declared but never defined [-Werror]
>  EXTERN INLINE S16 SAddDBufPre ARGS((Buffer *mBuf, Buffer *dBuf));
>                    ^~~~~~~~~~~
> /usr/include/sng_isdn/ssi.x:1231:19: error: inline function ‘SAddDBufPst’
> declared but never defined [-Werror]
>  EXTERN INLINE S16 SAddDBufPst ARGS((Buffer *mBuf, Buffer *dBuf));
>                    ^~~~~~~~~~~
> /usr/include/sng_isdn/ssi.x:1068:20: error: inline function ‘SPutDBuf’
> declared but never defined [-Werror]
>  EXTERN  INLINE S16 SPutDBuf ARGS((Region region,Pool pool,Buffer *buf));
>                     ^~~~~~~~
> /usr/include/sng_isdn/ssi.x:1067:20: error: inline function ‘SGetDBuf’
> declared but never defined [-Werror]
>  EXTERN  INLINE S16 SGetDBuf ARGS((Region region,Pool pool,Buffer *
> *bufPtr));
>                     ^~~~~~~~
> /usr/include/sng_isdn/ssi.x:1058:20: error: inline function ‘SDequeueLast’
> declared but never defined [-Werror]
>  EXTERN  INLINE S16 SDequeueLast ARGS((Buffer * *bufPtr,Queue *q));
>                     ^~~~~~~~~~~~
> /usr/include/sng_isdn/ssi.x:1057:20: error: inline function
> ‘SDequeueFirst’ declared but never defined [-Werror]
>  EXTERN  INLINE S16 SDequeueFirst ARGS((Buffer * *bufPtr,Queue *q));
>                     ^~~~~~~~~~~~~
> /usr/include/sng_isdn/ssi.x:1056:20: error: inline function ‘SQueueLast’
> declared but never defined [-Werror]
>  EXTERN  INLINE S16 SQueueLast ARGS((Buffer *buf,Queue *q));
>                     ^~~~~~~~~~
> /usr/include/sng_isdn/ssi.x:1055:20: error: inline function ‘SQueueFirst’
> declared but never defined [-Werror]
>  EXTERN  INLINE S16 SQueueFirst ARGS((Buffer *buf,Queue *q));
>                     ^~~~~~~~~~~
> cc1: all warnings being treated as errors
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200204/8cae3333/attachment-0001.html>


More information about the FreeSWITCH-users mailing list