[This bug is NOT targeted to the upcoming trixie release]
Please keep this issue open in the bug tracker for the package it
was filed for. If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.
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.
The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/libsx_2.08-5_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.
To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other Common build failures are new warnings resulting in build failures
with -Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-15/porting_to.html
[...]
22 | static void Initialize();
| ^~~~~~~~~~
drawing.c:78:5: error: initialization of 'void (*)(struct _WidgetRec *, XtValueMask *, XSetWindowAttributes *)' {aka 'void (*)(struct _WidgetRec *, long unsigned int *, XSetWindowAttributes *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
78 | MyRealize, /* realize */
| ^~~~~~~~~
drawing.c:78:5: note: (near initialization for 'drawingAreaClassRec.core_class.realize')
drawing.c:23:17: note: 'MyRealize' declared here
23 | static void MyRealize(); /* So we can do our own visual */
| ^~~~~~~~~
drawing.c:88:5: error: initialization of 'void (*)(struct _WidgetRec *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
88 | Destroy, /* destroy */
| ^~~~~~~
drawing.c:88:5: note: (near initialization for 'drawingAreaClassRec.core_class.destroy')
drawing.c:24:17: note: 'Destroy' declared here
24 | static void Destroy();
| ^~~~~~~
drawing.c:90:5: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, struct _XRegion *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
90 | Redisplay, /* expose */
| ^~~~~~~~~
drawing.c:90:5: note: (near initialization for 'drawingAreaClassRec.core_class.expose')
drawing.c:25:17: note: 'Redisplay' declared here
25 | static void Redisplay();
| ^~~~~~~~~
drawing.c: In function 'Initialize':
drawing.c:115:13: warning: old-style function definition [-Wold-style-definition]
115 | static void Initialize( request, new)
| ^~~~~~~~~~
drawing.c: In function 'MyRealize':
drawing.c:159:13: warning: old-style function definition [-Wold-style-definition]
159 | static void MyRealize(w, valueMask, attributes)
| ^~~~~~~~~
drawing.c: In function 'Destroy':
drawing.c:199:13: warning: old-style function definition [-Wold-style-definition]
199 | static void Destroy( w)
| ^~~~~~~
drawing.c: In function 'Redisplay':
drawing.c:212:13: warning: old-style function definition [-Wold-style-definition]
212 | static void Redisplay(w, event, region)
| ^~~~~~~~~
drawing.c: In function 'resize_draw':
drawing.c:226:13: warning: old-style function definition [-Wold-style-definition]
226 | static void resize_draw(w, event, args, n_args)
| ^~~~~~~~~~~
drawing.c: In function 'input_draw':
drawing.c:241:13: warning: old-style function definition [-Wold-style-definition]
241 | static void input_draw(w, event, args, n_args)
| ^~~~~~~~~~
drawing.c: In function 'motion_draw':
drawing.c:256:13: warning: old-style function definition [-Wold-style-definition]
256 | static void motion_draw(w, event, args, n_args)
| ^~~~~~~~~~~
drawing.c: In function 'enter_draw':
drawing.c:271:13: warning: old-style function definition [-Wold-style-definition]
271 | static void enter_draw(w, event, args, n_args)
| ^~~~~~~~~~
drawing.c: In function 'leave_draw':
drawing.c:286:13: warning: old-style function definition [-Wold-style-definition]
286 | static void leave_draw(w, event, args, n_args)
| ^~~~~~~~~~
make[4]: *** [Makefile:539: drawing.lo] Error 1
make[4]: Leaving directory '/build/reproducible-path/libsx-2.08/src'
make[3]: *** [Makefile:575: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/libsx-2.08/src'
make[2]: *** [Makefile:491: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/libsx-2.08'
make[1]: *** [Makefile:400: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/libsx-2.08'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2