[Debian-med-packaging] Bug#1022324: bart-view: FTBFS: src/main.c:37:9: error: too many arguments to function ‘cmdline’

Lucas Nussbaum lucas at debian.org
Sun Oct 23 13:40:44 BST 2022


Source: bart-view
Version: 0.1.00-6
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20221023 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=c11 -fopenmp -Wdate-time -D_FORTIFY_SOURCE=2 -export-dynamic -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//libnum.a \
>  -lm -lpng -Wl,-z,relro -Wl,-z,now
> src/main.c: In function ‘main’:
> src/main.c:37:33: warning: passing argument 4 of ‘cmdline’ makes pointer from integer without a cast [-Wint-conversion]
>    37 |         cmdline(&argc, argv, 1, 100, usage_str, help_str, ARRAY_SIZE(opts), opts);
>       |                                 ^~~
>       |                                 |
>       |                                 int
> In file included from src/main.c:19:
> /usr/include/bart/misc/opts.h:159:71: note: expected ‘struct arg_s *’ but argument is of type ‘int’
>   159 | extern void cmdline(int* argc, char* argv[*argc], int m, struct arg_s args[m], const char* help_str, int n, const struct opt_s opts[n]);
>       |                                                          ~~~~~~~~~~~~~^~~~~~~
> src/main.c:37:49: warning: passing argument 6 of ‘cmdline’ makes integer from pointer without a cast [-Wint-conversion]
>    37 |         cmdline(&argc, argv, 1, 100, usage_str, help_str, ARRAY_SIZE(opts), opts);
>       |                                                 ^~~~~~~~
>       |                                                 |
>       |                                                 const char *
> /usr/include/bart/misc/opts.h:159:106: note: expected ‘int’ but argument is of type ‘const char *’
>   159 | extern void cmdline(int* argc, char* argv[*argc], int m, struct arg_s args[m], const char* help_str, int n, const struct opt_s opts[n]);
>       |                                                                                                      ~~~~^
> src/main.c:37:9: error: too many arguments to function ‘cmdline’
>    37 |         cmdline(&argc, argv, 1, 100, usage_str, help_str, ARRAY_SIZE(opts), opts);
>       |         ^~~~~~~
> /usr/include/bart/misc/opts.h:159:13: note: declared here
>   159 | extern void cmdline(int* argc, char* argv[*argc], int m, struct arg_s args[m], const char* help_str, int n, const struct opt_s opts[n]);
>       |             ^~~~~~~
> src/view.c: In function ‘window_new’:
> src/view.c:802:9: warning: ‘gtk_widget_override_font’ is deprecated [-Wdeprecated-declarations]
>   802 |         gtk_widget_override_font(GTK_WIDGET(v->gtk_entry), desc);
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
>                  from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
>                  from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
>                  from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
>                  from /usr/include/gtk-3.0/gtk/gtk.h:31,
>                  from src/view.c:16:
> /usr/include/gtk-3.0/gtk/gtkwidget.h:1153:14: note: declared here
>  1153 | void         gtk_widget_override_font             (GtkWidget                  *widget,
>       |              ^~~~~~~~~~~~~~~~~~~~~~~~
> make[1]: *** [Makefile:53: view] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/10/23/bart-view_0.1.00-6_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221023;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221023&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Debian-med-packaging mailing list