On Fri, 17 Apr 2026 15:15:26 GMT, Kevin Rushforth <[email protected]> wrote:

>> - Added support for libavcodec 62.
>> - Added `-Wno-error=incompatible-pointer-types` flag when compiling stab, 
>> otherwise build fails on Ubuntu 26.04, but works on older versions.
>> - `avcodec_close()/av_free() `combo is replaced with 
>> `avcodec_free_context()`. `avcodec_close()` is removed in libavcodec 62.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> build.gradle line 3435:
> 
>> 3433:                 // Pre-defined command line arguments
>> 3434:                 def cfgCMDArgs = ["sh", "configure"]
>> 3435:                 def commonCfgArgs = ["--enable-shared", 
>> "--disable-debug", "--disable-static", "--disable-asm", "--disable-doc", 
>> "--disable-programs", "--disable-everything", 
>> "--extra-cflags=\"-Wno-error=incompatible-pointer-types\""]
> 
>> Added -Wno-error=incompatible-pointer-types flag when compiling stab, 
>> otherwise build fails on Ubuntu 26.04, but works on older versions.
> 
> Is this because of some system header file on Ubuntu 26.04, or is it a 
> function of a newer gcc? It might be worth filing a follow-on issue to track 
> this.

I am using exactly same gcc as on 24.04.

libavformat/avio.c:284:62: error: passing argument 5 of 
‘retry_transfer_wrapper’ from incompatible pointer type 
[-Wincompatible-pointer-types]
  284 |     return retry_transfer_wrapper(h, buf, size, size, 
h->prot->url_write);

Build failure in old libav-11.4 code. Note: libav (not ffmpeg).

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/2152#discussion_r3103423788

Reply via email to