[Freeswitch-dev] Compiling mod_av cannot find definitions for enum AVLockOp, AV_LOCK_DESTROY

Дилян Палаузов dpa-freeswitch at aegee.org
Thu Sep 1 06:10:39 UTC 2022


Hello,

in the past I could compile mod_av, but at some momemnt, it got not
compilable.  I have Fedora 36 system.  There I can choose, whether to
install as packages ffmpg or libav. I tried with both, it does not
work.  But I think that ffmpeg(-devel) is the right one, as
https://libav.org/news/ shows no recent activity.

The compiler cannot find the definitions of enum AVLockOp,
AV_LOCK_CREATE, AV_LOCK_OBTAIN.  See the error log below.  The error
message is below.

mod/applications/mod_av/Makefile suggests installing libavformat-dev
and libswscale-dev to build mod_av.  Installing them does not help.


At https://github.com/signalwire/freeswitch/pull/1626 I proposed an
improvement to the fs_cli/mod_sofia autocompletion.  Will it see any
progress towards upstream?

Greetings
  Дилян

---- 


making all mod_av
make[4]: Entering directory
'/git/freeswitch/freeswitch/src/mod/applications/mod_av'
  CC       libavmod_la-mod_av.lo
mod_av.c:52:38: error: ISO C forbids forward references to 'enum' types
[-Werror=pedantic]
   52 | int mod_av_lockmgr_cb(void **m, enum AVLockOp op)
      |                                      ^~~~~~~~
mod_av.c:52:38: error: 'enum AVLockOp' declared inside parameter list
will not be visible outside of this definition or declaration [-Werror]
mod_av.c:52:47: error: parameter 2 ('op') has incomplete type
   52 | int mod_av_lockmgr_cb(void **m, enum AVLockOp op)
      |                                 ~~~~~~~~~~~~~~^~
mod_av.c: In function 'mod_av_lockmgr_cb':
mod_av.c:62:22: error: 'AV_LOCK_CREATE' undeclared (first use in this
function); did you mean 'AV_LOG_TRACE'?
   62 |                 case AV_LOCK_CREATE:
      |                      ^~~~~~~~~~~~~~
      |                      AV_LOG_TRACE
mod_av.c:62:22: note: each undeclared identifier is reported only once
for each function it appears in
mod_av.c:72:22: error: 'AV_LOCK_OBTAIN' undeclared (first use in this
function)
   72 |                 case AV_LOCK_OBTAIN:
      |                      ^~~~~~~~~~~~~~
mod_av.c:79:22: error: 'AV_LOCK_RELEASE' undeclared (first use in this
function)
   79 |                 case AV_LOCK_RELEASE:
      |                      ^~~~~~~~~~~~~~~
mod_av.c:86:22: error: 'AV_LOCK_DESTROY' undeclared (first use in this
function)
   86 |                 case AV_LOCK_DESTROY:
      |                      ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [Makefile:1015: libavmod_la-mod_av.lo] Error 1
make[4]: Leaving directory
'/git/freeswitch/freeswitch/src/mod/applications/mod_av'
make[3]: *** [Makefile:727: mod_av-all] Error 1




More information about the FreeSWITCH-dev mailing list