<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вс, 24 июл. 2022 г., 00:33 Nicolas George <<a href="mailto:george@nsup.org">george@nsup.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi.<br>
<br>
Andrew Randrianasulu (12022-07-24):<br>
> I try to build ffmpeg as part of cinelerra-gg videoeditor, and because I<br>
> also build inside termux/arm on Android I run into problem at least<br>
> starting from ffmpeg-4.4<br>
> <br>
> For some reason B0 defined in system headers and leaks into libavcodec.<br>
> <br>
> I unconditionally undef'ed it in 3 files (see attached patch), against<br>
> ffmpeg.git<br>
> <br>
> Not sure if this is correct way, or I need to ping termux devs about this<br>
> ...<br>
<br>
Can you show your exact configure line, the end of its output and the<br>
beginning and end of the make output?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Just plain ./configure without any arguments works ok (but exact configure output already scrolled up) but 'make -j 8' result in</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">CC      libavcodec/aac_parser.o</div><div dir="auto">CC      libavcodec/aaccoder.o                                           CC      libavcodec/aacdec.o</div><div dir="auto">CC      libavcodec/aacdec_fixed.o</div><div dir="auto">CC      libavcodec/aacenc.o</div><div dir="auto">CC      libavcodec/aacenc_is.o                                          libavcodec/aaccoder.c:311:20: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]</div><div dir="auto">            qmin = INT_MAX;</div><div dir="auto">                 ~ ^~~~~~~</div><div dir="auto">/data/data/com.termux/files/usr/lib/clang/14.0.6/include/limits.h:46:19: note: expanded from macro 'INT_MAX'</div><div dir="auto">#define INT_MAX   __INT_MAX__</div><div dir="auto">                  ^~~~~~~~~~~</div><div dir="auto"><built-in>:46:21: note: expanded from here</div><div dir="auto">#define __INT_MAX__ 2147483647                                                              ^~~~~~~~~~                                          libavcodec/aaccoder.c:802:25: error: expected identifier or '('</div><div dir="auto">                    int B0 = 0, B1 = 0;                                                         ^</div><div dir="auto">/data/data/com.termux/files/usr/include/asm-generic/termbits.h:118:12: note: expanded from macro 'B0'</div><div dir="auto">#define B0 0000000                                                                 ^</div><div dir="auto">libavcodec/aaccoder.c:864:28: error: expression is not assignable</div><div dir="auto">                        B0 += b1+b2;</div><div dir="auto">                        ~~ ^                                            libavcodec/aaccoder.c:865:25: error: use of undeclared identifier 'B1'</div><div dir="auto">                        B1 += b3+b4;</div><div dir="auto">                        ^</div><div dir="auto">libavcodec/aaccoder.c:869:62: error: use of undeclared identifier 'B1'</div><div dir="auto">                    cpe->ms_mask[w*16+g] = dist2 <= dist1 && B1 < B0;</div><div dir="auto">                                                             ^</div><div dir="auto">libavcodec/aaccoder.c:881:32: error: use of undeclared identifier 'B1'                      } else if (B1 > B0) {                                                              ^</div><div dir="auto">1 warning and 5 errors generated.                                       make: *** [ffbuild/common.mak:81: libavcodec/aaccoder.o] Error 1</div><div dir="auto">make: *** Waiting for unfinished jobs....                               libavcodec/aacdec.c:570:8: warning: 'channel_layouts' is deprecated [-Wdeprecated-declarations]                                                     .p.channel_layouts = aac_channel_layout,</div><div dir="auto">       ^</div><div dir="auto">libavcodec/codec.h:225:5: note: 'channel_layouts' has been explicitly marked deprecated here                                                        attribute_deprecated</div><div dir="auto">    ^</div><div dir="auto">./libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'</div><div dir="auto">#    define attribute_deprecated __attribute__((deprecated))</div><div dir="auto">                                                ^</div><div dir="auto">libavcodec/aacdec.c:598:8: warning: 'channel_layouts' is deprecated [-Wdeprecated-declarations]                                                     .p.channel_layouts = aac_channel_layout,</div><div dir="auto">       ^                                                                libavcodec/codec.h:225:5: note: 'channel_layouts' has been explicitly marked deprecated here                                                        attribute_deprecated</div><div dir="auto">    ^                                                                   ./libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'</div><div dir="auto">#    define attribute_deprecated __attribute__((deprecated))</div><div dir="auto">                                                ^                       libavcodec/aacdec_fixed.c:468:8: warning: 'channel_layouts' is deprecated [-Wdeprecated-declarations]</div><div dir="auto">    .p.channel_layouts = aac_channel_layout,</div><div dir="auto">       ^</div><div dir="auto">libavcodec/codec.h:225:5: note: 'channel_layouts' has been explicitly marked deprecated here</div><div dir="auto">    attribute_deprecated                                                    ^                                                                   ./libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'                                                               #    define attribute_deprecated __attribute__((deprecated))                                                            ^</div><div dir="auto">^[[6~2 warnings generated.                                              1 warning generated.</div><div dir="auto">~/ffmpeg $</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Regards,<br>
<br>
-- <br>
  Nicolas George<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank" rel="noreferrer">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank" rel="noreferrer">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".<br>
</blockquote></div></div></div>