Bug#1114446: xfractint: FTBFS: editpal.c:1365:16: error: too many arguments to function 'this->change'; expected 0, have 2
Package: src:xfractint
Version: 20.4.10-5
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build.
Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202509/
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 could not 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:xfractint, 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 build-stamp *~ */*~ core
rm -f ./dos_help/hc.o unix.o fractint.doc fractint.hlp hc fractint xfractint
rm -f ./headers/helpdefs.h
cd ./common ; make clean
make[2]: Entering directory '/<<PKGBUILDDIR>>/common'
rm -f 3d.o ant.o bigflt.o biginit.o bignum.o bignumc.o calcfrac.o cmdfiles.o decoder.o editpal.o encoder.o evolve.o f16.o fracsubr.o fractalb.o fractalp.o fractals.o fractint.o framain2.o frasetup.o gifview.o hcmplx.o help.o history.o intro.o jb.o jiim.o line3d.o loadfdos.o loadfile.o loadmap.o lorenz.o lsys.o lsysf.o memory.o miscfrac.o miscovl.o miscres.o mpmath_c.o parser.o parserfp.o plot3d.o printer.o prompts1.o prompts2.o realdos.o rotate.o slideshw.o soi.o soi1.o stereo.o targa.o testpt.o tgaview.o zoom.o
make[2]: Leaving directory '/<<PKGBUILDDIR>>/common'
cd ./unix ; make clean
make[2]: Entering directory '/<<PKGBUILDDIR>>/unix'
rm -f calcmand.o calmanfp.o diskvidu.o fpu087.o fracsuba.o general.o unix.o unixscr.o video.o xfcurses.o
make[2]: Leaving directory '/<<PKGBUILDDIR>>/unix'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_clean
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
dh_auto_configure
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make
make[2]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I./headers -DXFRACT -DNOBSTRING -g -DBIG_ANSI_C -DLINUX -fno-builtin -fcommon -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dos_help/hc.o dos_help/hc.c
In file included from dos_help/hc.c:84:
./headers/helpcom.h: In function â??getintâ??:
./headers/helpcom.h:184:1: warning: old-style function definition [-Wold-style-definition]
184 | getint(ptr)
| ^~~~~~
./headers/helpcom.h: In function â??setintâ??:
./headers/helpcom.h:193:6: warning: old-style function definition [-Wold-style-definition]
193 | void setint(ptr, n)
| ^~~~~~
dos_help/hc.c: In function â??get_topic_textâ??:
dos_help/hc.c:464:4: warning: ignoring return value of â??freadâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
464 | fread(buffer, 1, t->text_len, swapfile);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dos_help/hc.c: In function â??process_binincâ??:
dos_help/hc.c:1443:4: warning: ignoring return value of â??readâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
1443 | read(handle, curr, (unsigned)len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dos_help/hc.c: In function â??add_hlp_to_exeâ??:
dos_help/hc.c:3640:4: warning: ignoring return value of â??readâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
3640 | read(exe, (char *)&hs, 10);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
dos_help/hc.c:3649:4: warning: ignoring return value of â??readâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
3649 | read(hlp, (char *)&hs, sizeof(long)+sizeof(int));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dos_help/hc.c:3665:7: warning: ignoring return value of â??readâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
3665 | read(hlp, buffer, size);
| ^~~~~~~~~~~~~~~~~~~~~~~
dos_help/hc.c:3666:7: warning: ignoring return value of â??writeâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
3666 | write(exe, buffer, size);
| ^~~~~~~~~~~~~~~~~~~~~~~~
dos_help/hc.c:3672:4: warning: ignoring return value of â??writeâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
3672 | write(exe, (char *)&hs, 10);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./headers/port.h:256,
from dos_help/hc.c:83:
./headers/unix.h:31:24: warning: ignoring return value of â??ftruncateâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
31 | #define chsize(fd,len) ftruncate(fd,len)
| ^~~~~~~~~~~~~~~~~
dos_help/hc.c:3674:4: note: in expansion of macro â??chsizeâ??
3674 | chsize(exe, lseek(exe,0L,SEEK_CUR));/* truncate if old help was longer */
| ^~~~~~
dos_help/hc.c: In function â??delete_hlp_from_exeâ??:
dos_help/hc.c:3698:4: warning: ignoring return value of â??readâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
3698 | read(exe, (char *)&hs, 12);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
./headers/unix.h:31:24: warning: ignoring return value of â??ftruncateâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
31 | #define chsize(fd,len) ftruncate(fd,len)
| ^~~~~~~~~~~~~~~~~
dos_help/hc.c:3703:7: note: in expansion of macro â??chsizeâ??
3703 | chsize(exe, hs.base); /* truncate at the start of the help */
| ^~~~~~
dos_help/hc.c: In function â??set_content_doc_pageâ??:
dos_help/hc.c:2910:21: warning: â??%dâ?? directive writing between 1 and 10 bytes into a region of size 4 [-Wformat-overflow=]
2910 | sprintf(buf, "%d", c->doc_page);
| ^~
dos_help/hc.c:2910:20: note: directive argument in the range [1, 2147483647]
2910 | sprintf(buf, "%d", c->doc_page);
| ^~~~
In file included from /usr/include/stdio.h:970,
from ./headers/port.h:18:
In function â??sprintfâ??,
inlined from â??set_content_doc_pageâ?? at dos_help/hc.c:2910:7:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: â??__builtin___sprintf_chkâ?? output between 2 and 11 bytes into a destination of size 4
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
/usr/bin/gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I./headers -DXFRACT -DNOBSTRING -g -DBIG_ANSI_C -DLINUX -fno-builtin -fcommon -O2 -DSRCDIR=\"/usr/share/xfractint\" -c ./unix/unix.c
./unix/unix.c: In function â??stricmpâ??:
./unix/unix.c:106:1: warning: old-style function definition [-Wold-style-definition]
106 | stricmp(s1, s2)
| ^~~~~~~
./unix/unix.c: In function â??strnicmpâ??:
./unix/unix.c:140:1: warning: old-style function definition [-Wold-style-definition]
140 | strnicmp(s1, s2, numChars)
| ^~~~~~~~
./unix/unix.c: In function â??strlwrâ??:
./unix/unix.c:178:1: warning: old-style function definition [-Wold-style-definition]
178 | strlwr(s)
| ^~~~~~
./unix/unix.c: In function â??struprâ??:
./unix/unix.c:206:1: warning: old-style function definition [-Wold-style-definition]
206 | strupr(s)
| ^~~~~~
./unix/unix.c: In function â??memicmpâ??:
./unix/unix.c:234:1: warning: old-style function definition [-Wold-style-definition]
234 | memicmp(s1, s2, n)
| ^~~~~~~
./unix/unix.c: In function â??findpathâ??:
./unix/unix.c:269:1: warning: old-style function definition [-Wold-style-definition]
269 | findpath(filename, fullpathname)
| ^~~~~~~~
./unix/unix.c: In function â??ltoaâ??:
./unix/unix.c:327:5: warning: old-style function definition [-Wold-style-definition]
327 | int ltoa(num,str,len)
| ^~~~
./unix/unix.c: In function â??filelengthâ??:
./unix/unix.c:351:5: warning: old-style function definition [-Wold-style-definition]
351 | int filelength(fd)
| ^~~~~~~~~~
./unix/unix.c: In function â??ftimexâ??:
./unix/unix.c:471:6: warning: old-style function definition [-Wold-style-definition]
471 | void ftimex(tp)
| ^~~~~~
/usr/bin/gcc -o hc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I./headers -DXFRACT -DNOBSTRING -g -DBIG_ANSI_C -DLINUX -fno-builtin -fcommon ./dos_help/hc.o unix.o
cd ./dos_help; ../hc /c; mv fractint.hlp ..
HC - FRACTINT Help Compiler.
Compiling: help.src
Making hot-links.
Paginating online help.
Paginating document.
Writing: helpdefs.h
Note: FRACTINT must be re-compiled.
Writing: fractint.hlp
if [ -f ./dos_help/helpdefs.h ] ; then mv -f ./dos_help/helpdefs.h ./headers ; fi
cd common ; /usr/bin/make all "CC=/usr/bin/gcc" "CFLAGS= -I../headers -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I./headers -DXFRACT -DNOBSTRING -g -DBIG_ANSI_C -DLINUX -fno-builtin -fcommon -O2" "SRCDIR=/usr/share/xfractint" \
"HFD=../headers"
make[3]: Entering directory '/<<PKGBUILDDIR>>/common'
/usr/bin/gcc -I../headers -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I./headers -DXFRACT -DNOBSTRING -g -DBIG_ANSI_C -DLINUX -fno-builtin -fcommon -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o 3d.o 3d.c
/usr/bin/gcc -I../headers -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I./headers -DXFRACT -DNOBSTRING -g -DBIG_ANSI_C -DLINUX -fno-builtin -fcommon -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o ant.o ant.c
/usr/bin/gcc -I../headers -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I./headers -DXFRACT -DNOBSTRING -g -DBIG_ANSI_C -DLINUX -fno-builtin -fcommon -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o bigflt.o bigflt.c
/usr/bin/gcc -I../headers -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I./headers -DXFRACT -DNOBSTRING -g -DBIG_ANSI_C -DLINUX -fno-builtin -fcommon -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o biginit.o biginit.c
/usr/bin/gcc -I../headers -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I./headers -DXFRACT -DNOBSTRING -g -DBIG_ANSI_C -DLINUX -fno-builtin -fcommon -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o bignum.o bignum.c
/usr/bin/gcc -I../headers -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I./headers -DXFRACT -DNOBSTRING -g -DBIG_ANSI_C -DLINUX -fno-builtin -fcommon -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o bignumc.o bignumc.c
/usr/bin/gcc -I../headers -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I./headers -DXFRACT -DNOBSTRING -g -DBIG_ANSI_C -DLINUX -fno-builtin -fcommon -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o calcfrac.o calcfrac.c
/usr/bin/gcc -I../headers -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I./headers -DXFRACT -DNOBSTRING -g -DBIG_ANSI_C -DLINUX -fno-builtin -fcommon -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o cmdfiles.o cmdfiles.c
/usr/bin/gcc -I../headers -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I./headers -DXFRACT -DNOBSTRING -g -DBIG_ANSI_C -DLINUX -fno-builtin -fcommon -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o decoder.o decoder.c
/usr/bin/gcc -I../headers -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I./headers -DXFRACT -DNOBSTRING -g -DBIG_ANSI_C -DLINUX -fno-builtin -fcommon -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o editpal.o editpal.c
editpal.c: In function â??CEditor_Editâ??:
editpal.c:1365:16: error: too many arguments to function â??this->changeâ??; expected 0, have 2
1365 | this->change(this, this->info);
| ^~~~ ~~~~
editpal.c:1214:14: note: declared here
1214 | void (*change)();
| ^~~~~~
editpal.c:1383:16: error: too many arguments to function â??this->changeâ??; expected 0, have 2
1383 | this->change(this, this->info);
| ^~~~ ~~~~
editpal.c:1214:14: note: declared here
1214 | void (*change)();
| ^~~~~~
editpal.c:1394:16: error: too many arguments to function â??this->changeâ??; expected 0, have 2
1394 | this->change(this, this->info);
| ^~~~ ~~~~
editpal.c:1214:14: note: declared here
1214 | void (*change)();
| ^~~~~~
editpal.c:1411:16: error: too many arguments to function â??this->changeâ??; expected 0, have 2
1411 | this->change(this, this->info);
| ^~~~ ~~~~
editpal.c:1214:14: note: declared here
1214 | void (*change)();
| ^~~~~~
editpal.c:1429:13: error: too many arguments to function â??this->changeâ??; expected 0, have 2
1429 | this->change(this, this->info);
| ^~~~ ~~~~
editpal.c:1214:14: note: declared here
1214 | void (*change)();
| ^~~~~~
editpal.c:1433:13: error: too many arguments to function â??this->other_keyâ??; expected 0, have 3
1433 | this->other_key(key, this, this->info);
| ^~~~ ~~~
editpal.c:1213:14: note: declared here
1213 | void (*other_key)();
| ^~~~~~~~~
editpal.c: In function â??RGBEditor_Constructâ??:
editpal.c:1528:63: error: passing argument 4 of â??CEditor_Constructâ?? from incompatible pointer type [-Wincompatible-pointer-types]
1528 | this->color[ctr] = CEditor_Construct(0, 0, letter[ctr], RGBEditor__other_key,
| ^~~~~~~~~~~~~~~~~~~~
| |
| void (*)(int, struct _CEditor *, void *)
editpal.c:1261:43: note: expected â??void (*)(void)â?? but argument is of type â??void (*)(int, struct _CEditor *, void *)â??
1261 | void (*other_key)(),
| ~~~~~~~^~~~~~~~~~~~
editpal.c:1481:21: note: â??RGBEditor__other_keyâ?? declared here
1481 | static void RGBEditor__other_key (int key, CEditor *ceditor, VOIDPTR info);
| ^~~~~~~~~~~~~~~~~~~~
editpal.c:1529:44: error: passing argument 5 of â??CEditor_Constructâ?? from incompatible pointer type [-Wincompatible-pointer-types]
1529 | RGBEditor__change, this);
| ^~~~~~~~~~~~~~~~~
| |
| void (*)(struct _CEditor *, void *)
editpal.c:1262:43: note: expected â??void (*)(void)â?? but argument is of type â??void (*)(struct _CEditor *, void *)â??
1262 | void (*change)(), VOIDPTR info)
| ~~~~~~~^~~~~~~~~
editpal.c:1482:21: note: â??RGBEditor__changeâ?? declared here
1482 | static void RGBEditor__change (CEditor *ceditor, VOIDPTR info);
| ^~~~~~~~~~~~~~~~~
editpal.c: In function â??RGBEditor__other_keyâ??:
editpal.c:1614:10: error: too many arguments to function â??this->other_keyâ??; expected 0, have 3
1614 | this->other_key(key, this, this->info);
| ^~~~ ~~~
editpal.c:1471:14: note: declared here
1471 | void (*other_key)();
| ^~~~~~~~~
editpal.c: In function â??RGBEditor__changeâ??:
editpal.c:1637:4: error: too many arguments to function â??this->changeâ??; expected 0, have 2
1637 | this->change(this, this->info);
| ^~~~ ~~~~
editpal.c:1472:14: note: declared here
1472 | void (*change)();
| ^~~~~~
editpal.c: In function â??PalTable_Constructâ??:
editpal.c:3317:45: error: passing argument 3 of â??RGBEditor_Constructâ?? from incompatible pointer type [-Wincompatible-pointer-types]
3317 | this->rgb[0] = RGBEditor_Construct(0, 0, PalTable__other_key,
| ^~~~~~~~~~~~~~~~~~~
| |
| void (*)(int, struct _RGBEditor *, void *)
editpal.c:1519:60: note: expected â??void (*)(void)â?? but argument is of type â??void (*)(int, struct _RGBEditor *, void *)â??
1519 | static RGBEditor *RGBEditor_Construct(int x, int y, void (*other_key)(),
| ~~~~~~~^~~~~~~~~~~~
editpal.c:2643:13: note: â??PalTable__other_keyâ?? declared here
2643 | static void PalTable__other_key(int key, RGBEditor *rgb, VOIDPTR info)
| ^~~~~~~~~~~~~~~~~~~
editpal.c:3318:19: error: passing argument 4 of â??RGBEditor_Constructâ?? from incompatible pointer type [-Wincompatible-pointer-types]
3318 | PalTable__change, this);
| ^~~~~~~~~~~~~~~~
| |
| void (*)(struct _RGBEditor *, void *)
editpal.c:1520:46: note: expected â??void (*)(void)â?? but argument is of type â??void (*)(struct _RGBEditor *, void *)â??
1520 | void (*change)(), VOIDPTR info)
| ~~~~~~~^~~~~~~~~
editpal.c:2534:13: note: â??PalTable__changeâ?? declared here
2534 | static void PalTable__change(RGBEditor *rgb, VOIDPTR info)
| ^~~~~~~~~~~~~~~~
editpal.c:3319:45: error: passing argument 3 of â??RGBEditor_Constructâ?? from incompatible pointer type [-Wincompatible-pointer-types]
3319 | this->rgb[1] = RGBEditor_Construct(0, 0, PalTable__other_key,
| ^~~~~~~~~~~~~~~~~~~
| |
| void (*)(int, struct _RGBEditor *, void *)
editpal.c:1519:60: note: expected â??void (*)(void)â?? but argument is of type â??void (*)(int, struct _RGBEditor *, void *)â??
1519 | static RGBEditor *RGBEditor_Construct(int x, int y, void (*other_key)(),
| ~~~~~~~^~~~~~~~~~~~
editpal.c:2643:13: note: â??PalTable__other_keyâ?? declared here
2643 | static void PalTable__other_key(int key, RGBEditor *rgb, VOIDPTR info)
| ^~~~~~~~~~~~~~~~~~~
editpal.c:3320:19: error: passing argument 4 of â??RGBEditor_Constructâ?? from incompatible pointer type [-Wincompatible-pointer-types]
3320 | PalTable__change, this);
| ^~~~~~~~~~~~~~~~
| |
| void (*)(struct _RGBEditor *, void *)
editpal.c:1520:46: note: expected â??void (*)(void)â?? but argument is of type â??void (*)(struct _RGBEditor *, void *)â??
1520 | void (*change)(), VOIDPTR info)
| ~~~~~~~^~~~~~~~~
editpal.c:2534:13: note: â??PalTable__changeâ?? declared here
2534 | static void PalTable__change(RGBEditor *rgb, VOIDPTR info)
| ^~~~~~~~~~~~~~~~
make[3]: *** [<builtin>: editpal.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/common'
make[2]: *** [Makefile:299: xfractint] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:9: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Reply to: