[Debian-med-packaging] Bug#1139466: bart-view: FTBFS: /usr/include/bart/misc/opts.h:191:82: error: initialization of 'int *' from incompatible pointer type 'long int *' [-Wincompatible-pointer-types]

Santiago Vila sanvila at debian.org
Tue Jun 9 10:47:17 BST 2026


Package: src:bart-view
Version: 0.3.00-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202606/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:bart-view, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_auto_clean
	make -j2 clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f view cfl2png src/viewer.inc
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   dh_auto_build
	make -j2 INSTALL="install --strip-program=true"
make[1]: Entering directory '/<<PKGBUILDDIR>>'
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O2 -std=c11 -fopenmp -Wdate-time -D_FORTIFY_SOURCE=2 -rdynamic -o view -I/usr/include/bart/ `pkg-config --cflags gtk+-3.0` src/main.c src/view.c src/draw.c `pkg-config --libs gtk+-3.0` /usr/lib/bart//libmisc.a /usr/lib/bart//libgeom.a /usr/lib/bart//libnum.a /usr/lib/bart//libmisc.a  -Wl,-z,relro -Wl,-z,now -lm -lpng -lrt
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O2 -std=c11 -fopenmp -Wdate-time -D_FORTIFY_SOURCE=2 -rdynamic -o cfl2png -I/usr/include/bart/ src/cfl2png.c src/draw.c /usr/lib/bart//libmisc.a  /usr/lib/bart//libgeom.a /usr/lib/bart//libnum.a /usr/lib/bart//libmisc.a  -Wl,-z,relro -Wl,-z,now -lm -lpng -lrt
In file included from src/main.c:14:
/usr/include/bart/misc/misc.h:28:9: warning: ‘CLAMP’ redefined
   28 | #define CLAMP(x, min, max) MAX(min, MIN(x, max))
      |         ^~~~~
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9,
                 from /usr/include/glib-2.0/glib/gtypes.h:34,
                 from /usr/include/glib-2.0/glib/galloca.h:34,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkconfig.h:8,
                 from /usr/include/gtk-3.0/gdk/gdk.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from src/main.c:9:
/usr/include/glib-2.0/glib/gmacros.h:984:9: note: this is the location of the previous definition
  984 | #define CLAMP(x, low, high)  (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
      |         ^~~~~
In file included from src/main.c:16:
src/main.c: In function ‘main’:
/usr/include/bart/misc/opts.h:191:82: error: initialization of ‘int *’ from incompatible pointer type ‘long int *’ [-Wincompatible-pointer-types]
  191 | #define ARG_TUPLE(required, count, n, ...)              { (required), ARG_TUPLE, (count), (n), (struct arg_single_s[(n)]){ __VA_ARGS__ } }
      |                                                                                  ^
src/main.c:41:17: note: in expansion of macro ‘ARG_TUPLE’
   41 |                 ARG_TUPLE(true, &count, 1, { OPT_INFILE, sizeof(char*), &in_files, "image" }),
      |                 ^~~~~~~~~
/usr/include/bart/misc/opts.h:191:82: note: (near initialization for ‘args[0].count’)
  191 | #define ARG_TUPLE(required, count, n, ...)              { (required), ARG_TUPLE, (count), (n), (struct arg_single_s[(n)]){ __VA_ARGS__ } }
      |                                                                                  ^
src/main.c:41:17: note: in expansion of macro ‘ARG_TUPLE’
   41 |                 ARG_TUPLE(true, &count, 1, { OPT_INFILE, sizeof(char*), &in_files, "image" }),
      |                 ^~~~~~~~~
src/draw.c: In function ‘trans_phase’:
src/draw.c:84:9: error: implicit declaration of function ‘UNUSED’ [-Wimplicit-function-declaration]
   84 |         UNUSED(a);
      |         ^~~~~~
make[1]: *** [Makefile:89: cfl2png] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /usr/include/bart/num/multind.h:20,
                 from src/view.c:22:
/usr/include/bart/misc/misc.h:28:9: warning: ‘CLAMP’ redefined
   28 | #define CLAMP(x, min, max) MAX(min, MIN(x, max))
      |         ^~~~~
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9,
                 from /usr/include/glib-2.0/glib/gtypes.h:34,
                 from /usr/include/glib-2.0/glib/galloca.h:34,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkconfig.h:8,
                 from /usr/include/gtk-3.0/gdk/gdk.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from src/view.c:14:
/usr/include/glib-2.0/glib/gmacros.h:984:9: note: this is the location of the previous definition
  984 | #define CLAMP(x, low, high)  (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
      |         ^~~~~
src/view.c:36:9: warning: ‘STRINGIFY’ redefined
   36 | #define STRINGIFY(x) # x
      |         ^~~~~~~~~
/usr/include/bart/misc/misc.h:71:9: note: this is the location of the previous definition
   71 | #define STRINGIFY(x) STRINGIFY_HELPER(x)
      |         ^~~~~~~~~
src/view.c: In function ‘fit_callback’:
src/view.c:203:9: error: implicit declaration of function ‘UNUSED’ [-Wimplicit-function-declaration]
  203 |         UNUSED(widget);
      |         ^~~~~~
src/draw.c: In function ‘trans_phase’:
src/draw.c:84:9: error: implicit declaration of function ‘UNUSED’ [-Wimplicit-function-declaration]
   84 |         UNUSED(a);
      |         ^~~~~~
make[1]: *** [Makefile:86: view] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 INSTALL="install --strip-program=true" returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------



More information about the Debian-med-packaging mailing list