[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1097877: shine: ftbfs with GCC-15



Control: tags 1097877 patch
thanks

On Mon, Feb 17, 2025 at 05:53:18PM +0000, Matthias Klose wrote:
> [...]
> The package fails to build in a test rebuild on at least amd64 with
> gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
> severity of this report will be raised before the forky release.
> [...]
> src/lib/l3mdct.c:33:6: error: conflicting types for 'shine_mdct_initialise'; have 'void(shine_global_config *)' {aka 'void(struct shine_global_flags *)'}
>    33 | void shine_mdct_initialise(shine_global_config *config)
>       |      ^~~~~~~~~~~~~~~~~~~~~
> In file included from src/lib/l3mdct.c:4:
> src/lib/l3mdct.h:4:6: note: previous declaration of 'shine_mdct_initialise' with type 'void(void)'
>     4 | void shine_mdct_initialise();
>       |      ^~~~~~~~~~~~~~~~~~~~~
> make[1]: *** [Makefile:601: src/lib/l3mdct.lo] Error 1
> [...]

I just confirmed that the openSUSE patch at
<https://build.opensuse.org/projects/multimedia:libs/packages/libshine/files/libshine-gcc15-fixes.patch?expand=1>
resolves the FTBFS of the current Debian package as well. Now copied
here for reference:

| ---
|  src/lib/l3mdct.h |    2 +-
|  1 file changed, 1 insertion(+), 1 deletion(-)
| 
| --- a/src/lib/l3mdct.h
| +++ b/src/lib/l3mdct.h
| @@ -1,7 +1,7 @@
|  #ifndef shine_MDCT_H
|  #define shine_MDCT_H
| 
| -void shine_mdct_initialise();
| +void shine_mdct_initialise(shine_global_config *config);
|  void shine_mdct_sub(shine_global_config *config, int stride);
| 
|  #endif
| 

Thus tagging this bug accordingly.

Cheers,
Flo

Attachment: signature.asc
Description: PGP signature


Reply to: