[Libav-user] B0 defined on termux and break ffmpeg
Andrew Randrianasulu
randrianasulu at gmail.com
Sun Jul 24 21:32:54 EEST 2022
вс, 24 июл. 2022 г., 20:58 Andrew Randrianasulu <randrianasulu at gmail.com>:
>
>
> вс, 24 июл. 2022 г., 15:17 Nicolas George <george at nsup.org>:
>
>> Andrew Randrianasulu (12022-07-24):
>> > /data/data/com.termux/files/usr/include/asm-generic/termbits.h:118:12:
>> > note: expanded from macro 'B0'
>> > #define B0 0000000 ^
>>
>> This is strange: B0 is indeed a constant that should be defined by
>> system headers, but libavcodec should never be including anything
>> related to termbits.h.
>>
>> Would you be able to track down how this file gets included from
>> aaccoder.c?
>>
>
>
>
> I tried to add -M flag to cflags right before make invocation, but it does
> not give me any new info.
>
> CFLAGS=-M make
>
> Yet adding -e to make arguments somewhat bypass those errors, and I have
> errors at linking instead (guess this is expected).
>
> I looked at libavcodec/Makefile but nothing jumped out at me ....
>
If I add -M directly to ffbuild/config.mak CFLAGS compile error also
disappear, yet linking fail like this
ld.lld: error: fftools/cmdutils.o:10966: unclosed quote
ld.lld: error: fftools/cmdutils.o:10966: unclosed quote ld.lld: error:
fftools/ffmpeg_filter.o:21: unknown directive: int
>>> int android_get_application_target_sdk_version()
__attribute__((__availability__(android,strict,introduced=24)));
>>> ^
clang-14: error: linker command failed with exit code 1 (use -v to see
invocation)
make: *** [Makefile:131: ffprobe_g] Error 1 make: *** Waiting for
unfinished jobs.... clang-14: error: linker command failed with exit code 1
(use -v to see invocation)
ld.lld: error: fftools/cmdutils.o:10966: unclosed quote
make: *** [Makefile:131: ffplay_g] Error 1 clang-14: error: linker command
failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:131: ffmpeg_g] Error 1
May be clang does not support -M directive?
config.mak attached
>
>
>> Regards,
>>
>> --
>> Nicolas George
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/libav-user
>>
>> To unsubscribe, visit link above, or email
>> libav-user-request at ffmpeg.org with subject "unsubscribe".
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20220724/5e0e58e9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.mak
Type: application/octet-stream
Size: 78516 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20220724/5e0e58e9/attachment.obj>
More information about the Libav-user
mailing list