Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libavmod build error #1807

Open
kiufta opened this issue Sep 12, 2022 · 3 comments
Open

libavmod build error #1807

kiufta opened this issue Sep 12, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@kiufta
Copy link

kiufta commented Sep 12, 2022

ffmpeg 5.1 seems to be incompatible:

  CC       libavmod_la-mod_av.lo
mod_av.c:52:38: warning: ISO C forbids forward references to 'enum' types [-Wpedantic]
   52 | int mod_av_lockmgr_cb(void **m, enum AVLockOp op)
      |                                      ^~~~~~~~
mod_av.c:52:38: warning: 'enum AVLockOp' declared inside parameter list will not be visible outside of this definition or declaration
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:
      |                      ^~~~~~~~~~~~~~~
@kiufta kiufta added the bug Something isn't working label Sep 12, 2022
@seven1240
Copy link
Collaborator

@fx02
Copy link
Contributor

fx02 commented Oct 15, 2023

Use ffmeg v6 and build with this patch: #2202

@Korynkai
Copy link

@fx02 While my patch may allow it to build, it may also cause undefined behavior. I had requested testing and investigation in that issue. If anybody has thoroughly tested this patch, please let me know so I may start a pull request. I have only just regained the ability to test Freeswitch due to equipment circumstances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants