Skip to content
This repository has been archived by the owner on Dec 18, 2022. It is now read-only.

Incompatibility with ffmpeg 5 #705

Open
2 tasks done
ghost opened this issue Feb 24, 2022 · 8 comments
Open
2 tasks done

Incompatibility with ffmpeg 5 #705

ghost opened this issue Feb 24, 2022 · 8 comments
Labels
bug Some kind of fixable problem was encountered

Comments

@ghost
Copy link

ghost commented Feb 24, 2022

Guidelines

  • I have read the guidelines.

Version/Commit hash

1:r13926.g0665614b8-1

Describe the bug.

  1. try to install tenacity-git from the AUR with paru
  2. make[2]: *** [src/CMakeFiles/Tenacity.dir/build.make:173: src/CMakeFiles/Tenacity.dir/AudacityApp.cpp.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:526: src/CMakeFiles/Tenacity.dir/all] Error 2
    make: *** [Makefile:156: all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    error: failed to build 'tenacity-git-1:r13926.g0665614b8-1':
    error: packages failed to build: tenacity-git-1:r13926.g0665614b8-1

Expected behavior

  1. be able to build and install tenacity normally

OS

Arch Linux with 5.16.10 Kernel

Additional context

In file included from /home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/AudacityApp.cpp:83:
/home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/FFmpeg.h:544:7: error: functions that differ only in their return type cannot be overloaded
      avcodec_find_encoder,
      ^
/home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/FFmpeg.h:451:16: note: expanded from macro 'FFMPEG_FUNCTION_WITH_RETURN'
      inline r n a                                                      \
             ~ ^
/usr/include/libavcodec/codec.h:392:16: note: previous declaration is here
const AVCodec *avcodec_find_encoder(enum AVCodecID id);
      ~~~~~~~~~^
In file included from /home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/AudacityApp.cpp:83:
/home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/FFmpeg.h:550:7: error: functions that differ only in their return type cannot be overloaded
      avcodec_find_encoder_by_name,
      ^
/home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/FFmpeg.h:451:16: note: expanded from macro 'FFMPEG_FUNCTION_WITH_RETURN'
      inline r n a                                                      \
             ~ ^
/usr/include/libavcodec/codec.h:400:16: note: previous declaration is here
const AVCodec *avcodec_find_encoder_by_name(const char *name);
      ~~~~~~~~~^
In file included from /home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/AudacityApp.cpp:83:
/home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/FFmpeg.h:556:7: error: functions that differ only in their return type cannot be overloaded
      avcodec_find_decoder,
      ^
/home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/FFmpeg.h:451:16: note: expanded from macro 'FFMPEG_FUNCTION_WITH_RETURN'
      inline r n a                                                      \
             ~ ^
/usr/include/libavcodec/codec.h:376:16: note: previous declaration is here
const AVCodec *avcodec_find_decoder(enum AVCodecID id);
      ~~~~~~~~~^
In file included from /home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/AudacityApp.cpp:83:
/home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/FFmpeg.h:634:7: error: conflicting types for 'avformat_open_input'
      avformat_open_input,
      ^
/usr/include/libavformat/avformat.h:2097:5: note: previous declaration is here
int avformat_open_input(AVFormatContext **ps, const char *url,
    ^
In file included from /home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/AudacityApp.cpp:83:
/home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/FFmpeg.h:716:7: error: functions that differ only in their return type cannot be overloaded
      av_guess_format,
      ^
/home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/FFmpeg.h:451:16: note: expanded from macro 'FFMPEG_FUNCTION_WITH_RETURN'
      inline r n a                                                      \
             ~ ^
/usr/include/libavformat/avformat.h:2480:23: note: previous declaration is here
const AVOutputFormat *av_guess_format(const char *short_name,
      ~~~~~~~~~~~~~~~~^
In file included from /home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/AudacityApp.cpp:83:
/home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/FFmpeg.h:887:7: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
      av_init_packet(this);
      ^
/usr/include/libavcodec/packet.h:505:1: note: 'av_init_packet' has been explicitly marked deprecated here
attribute_deprecated
^
/usr/include/libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'
#    define attribute_deprecated __attribute__((deprecated))
                                                ^
In file included from /home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/AudacityApp.cpp:83:
/home/qube/.cache/paru/clone/tenacity-git/src/tenacity/src/FFmpeg.h:921:7: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
      av_init_packet(&that);
      ^
/usr/include/libavcodec/packet.h:505:1: note: 'av_init_packet' has been explicitly marked deprecated here
attribute_deprecated
^
/usr/include/libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'
#    define attribute_deprecated __attribute__((deprecated))
                                                ^
2 warnings and 5 errors generated.
make[2]: *** [src/CMakeFiles/Tenacity.dir/build.make:173: src/CMakeFiles/Tenacity.dir/AudacityApp.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:526: src/CMakeFiles/Tenacity.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'tenacity-git-1:r13926.g0665614b8-1':
error: packages failed to build: tenacity-git-1:r13926.g0665614b8-1

### This issue is not a duplicate
  • I have confirmed this issue isn't a duplicate.
@ghost ghost added the bug Some kind of fixable problem was encountered label Feb 24, 2022
@fossdd
Copy link
Member

fossdd commented Feb 26, 2022

I can verify this issue. As I successfully builded the tenacity-git package for the same commit some days/weeks ago it has to be a change due to libraries, I guess.

@Berlinuxer
Copy link

I can confirm this. I get these error-messages too, while compiling.

@jospezial
Copy link

It is incompatible with ffmpeg-5.

@FabioLolix
Copy link

I have fixed the pkgbuild to use ffmpeg4.4 for the moment https://aur.archlinux.org/cgit/aur.git/commit/?h=tenacity-git&id=31d2d5ca547ddec7d182534964f99dabe91a0eb1

@fossdd
Copy link
Member

fossdd commented Mar 16, 2022

Thank you @FabioLolix!

@fossdd fossdd closed this as completed Mar 16, 2022
@jospezial
Copy link

Please reopen this issue and rename the title to something with ffmpeg-5.
Audacity has similar reports.

@fossdd
Copy link
Member

fossdd commented Mar 17, 2022

Yeah, sure.

@fossdd fossdd reopened this Mar 17, 2022
@fossdd fossdd changed the title ERROR: A failure occurred in build(). Incompatibility with ffmpeg 5 Mar 17, 2022
@ghost
Copy link
Author

ghost commented Mar 18, 2022

i dont quite know how you figured out the incompatibility but its good to know! sadly i cant really help :/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Some kind of fixable problem was encountered
Projects
None yet
Development

No branches or pull requests

4 participants