[Pkg-electronics-devel] Bug#1114445: xcircuit: FTBFS: elements.c:1322:24: error: too many arguments to function 'atan2'; expected 0, have 2
Santiago Vila
sanvila at debian.org
Fri Sep 5 19:28:37 BST 2025
Package: src:xcircuit
Version: 3.9.73+dfsg.1-2
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:xcircuit, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --with autoreconf
dh_clean
debian/rules binary
dh binary --with autoreconf
dh_update_autotools_config
dh_autoreconf
autoreconf: warning: autoconf input should be named 'configure.ac', not 'configure.in'
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:7: warning: The macro 'AC_CANONICAL_SYSTEM' is obsolete.
configure.in:7: You should run autoupdate.
./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from...
configure.in:7: the top level
configure.in:14: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:773: AM_INIT_AUTOMAKE is expanded from...
configure.in:14: the top level
configure.in:44: warning: The macro 'AC_ISC_POSIX' is obsolete.
configure.in:44: You should run autoupdate.
./lib/autoconf/specific.m4:728: AC_ISC_POSIX is expanded from...
configure.in:44: the top level
configure.in:78: warning: The macro 'AC_HEADER_STDC' is obsolete.
configure.in:78: You should run autoupdate.
./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from...
configure.in:78: the top level
configure.in:104: warning: The macro 'AC_TRY_COMPILE' is obsolete.
configure.in:104: You should run autoupdate.
./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from...
configure.in:104: the top level
configure.in:116: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.in:116: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
configure.in:116: the top level
configure.in:129: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.in:129: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
configure.in:129: the top level
configure.in:143: warning: The macro 'AC_TRY_COMPILE' is obsolete.
configure.in:143: You should run autoupdate.
./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from...
configure.in:143: the top level
configure.in:1053: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.in:1053: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/headers.m4:89: _AC_CHECK_HEADER_COMPILE is expanded from...
./lib/autoconf/headers.m4:56: AC_CHECK_HEADER is expanded from...
configure.in:1053: the top level
configure.in:1139: warning: AC_OUTPUT should be used without arguments.
configure.in:1139: You should run autoupdate.
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:14: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.in:14: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.in:7: installing './config.guess'
configure.in:7: installing './config.sub'
Makefile.am:240: warning: whitespace following trailing backslash
Makefile.am:92: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
Xw/Makefile.am:7: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
spiceparser/Makefile.am:7: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_configure -- --x-includes=/usr --with-tcl=/usr/lib \
--with-tcllibs=/usr/lib/x86_64-linux-gnu \
--with-tklibs=/usr/lib/x86_64-linux-gnu
./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --libexecdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --x-includes=/usr --with-tcl=/usr/lib --with-tcllibs=/usr/lib/x86_64-linux-gnu --with-tklibs=/usr/lib/x86_64-linux-gnu
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... none
checking for library containing strerror... none required
checking for ranlib... ranlib
checking for gm4... no
checking for gnum4... no
checking for m4... /usr/bin/m4
checking for sin in -lm... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking size of void *... 8
checking size of unsigned int... 4
checking size of unsigned long... 8
checking size of unsigned long long... 8
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers /usr
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XtToolkitInitialize in -lXt... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for setenv... yes
checking for putenv... yes
checking for vfork... yes
checking for dirent.h... yes
checking for 64-bit X11 libraries... checking for /usr/X11R6/lib64... no
checking if -Wno-pointer-sign accepted in CFLAGS... yes
checking for deflate in -lz... yes
checking for va_copy... yes
checking for __va_copy... yes
checking if u_char defined... yes
checking for X11/xpm.h... yes
checking for XpmCreateImageFromData in -lXpm... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cairo... yes
checking for fontconfig... yes
checking for ghostscript/gdevdsp.h... no
configure: WARNING: Building xcircuit without ghostscript rendering
configure: WARNING: Install the ghostscript-devel package to solve this
checking for tclConfig.sh... /usr/lib/tclConfig.sh
checking for tkConfig.sh... /usr/lib/tkConfig.sh
checking for wish executable... /usr/bin/wish
checking for gs... gs
checking for ngspice... ngspice
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Xw/Makefile
config.status: creating spiceparser/Makefile
config.status: executing depfiles commands
Configuration results:
----------------------------------------------------
Using Tcl/Tk interface
Using Cairo graphics
CFLAGS=-g -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-pointer-sign -fPIC
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build -- \
librarydir=/usr/share/xcircuit \
exelibdir=/usr/lib/xcircuit \
scriptsdir=/usr/share/xcircuit
make -j2 librarydir=/usr/share/xcircuit exelibdir=/usr/lib/xcircuit scriptsdir=/usr/share/xcircuit
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Makefile:1017: warning: overriding recipe for target 'all-recursive'
Makefile:606: warning: ignoring old recipe for target 'all-recursive'
Makefile:1020: warning: overriding recipe for target 'install-recursive'
Makefile:606: warning: ignoring old recipe for target 'install-recursive'
make tcl
make[3]: Entering directory '/<<PKGBUILDDIR>>'
Makefile:1017: warning: overriding recipe for target 'all-recursive'
Makefile:606: warning: ignoring old recipe for target 'all-recursive'
Makefile:1020: warning: overriding recipe for target 'install-recursive'
Makefile:606: warning: ignoring old recipe for target 'install-recursive'
Making tcl library object
list=''; for subdir in $list; do \
test "$subdir" = . || (echo "Making tcl in $subdir"; \
cd $subdir && make ) \
done
make lib/tcl/xcircuit.so
make[4]: Entering directory '/<<PKGBUILDDIR>>'
Makefile:1017: warning: overriding recipe for target 'all-recursive'
Makefile:606: warning: ignoring old recipe for target 'all-recursive'
Makefile:1020: warning: overriding recipe for target 'install-recursive'
Makefile:606: warning: ignoring old recipe for target 'install-recursive'
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VER [too-long-redacted] fPIC -c -o menudep.o menudep.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VER [too-long-redacted] tra -c -o elements.o elements.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VER [too-long-redacted] -Wextra -c -o events.o events.c
elements.c:57:15: warning: conflicting types for built-in function âatan2â; expected âdouble(double, double)â [-Wbuiltin-declaration-mismatch]
57 | extern double atan2();
| ^~~~~
elements.c:38:1: note: âatan2â is declared in header â<math.h>â
37 | #include "prototypes.h"
+++ |+#include <math.h>
38 |
In file included from elements.c:31:
elements.c: In function âsplinebuttonâ:
elements.c:1144:9: warning: cast between incompatible function types from âvoid (*)(struct Tk_Window_ *, char *, char *)â to âvoid (*)(void *, XEvent *)â [-Wcast-function-type]
1144 | (xcEventHandler)trackelement, NULL);
| ^
xcircuit.h:1125:67: note: in definition of macro âxcAddEventHandlerâ
1125 | #define xcAddEventHandler(a,b,c,d,e) Tk_CreateEventHandler(a,b,d,e)
| ^
elements.c: In function âarcbuttonâ:
elements.c:1292:9: warning: cast between incompatible function types from âvoid (*)(struct Tk_Window_ *, char *, char *)â to âvoid (*)(void *, XEvent *)â [-Wcast-function-type]
1292 | (xcEventHandler)trackarc, NULL);
| ^
xcircuit.h:1125:67: note: in definition of macro âxcAddEventHandlerâ
1125 | #define xcAddEventHandler(a,b,c,d,e) Tk_CreateEventHandler(a,b,d,e)
| ^
elements.c: In function âtrackarcâ:
elements.c:1322:24: error: too many arguments to function âatan2â; expected 0, have 2
1322 | tmpang = (float)(atan2((double)(newpos.y - newarc->position.y) * adjrat,
| ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
elements.c:57:15: note: declared here
57 | extern double atan2();
| ^~~~~
elements.c: In function âboxbuttonâ:
elements.c:1410:9: warning: cast between incompatible function types from âvoid (*)(struct Tk_Window_ *, char *, char *)â to âvoid (*)(void *, XEvent *)â [-Wcast-function-type]
1410 | (xcEventHandler)trackbox, NULL);
| ^
xcircuit.h:1125:67: note: in definition of macro âxcAddEventHandlerâ
1125 | #define xcAddEventHandler(a,b,c,d,e) Tk_CreateEventHandler(a,b,d,e)
| ^
elements.c: In function âstartwireâ:
elements.c:1520:11: warning: cast between incompatible function types from âvoid (*)(struct Tk_Window_ *, char *, char *)â to âvoid (*)(void *, XEvent *)â [-Wcast-function-type]
1520 | (xcEventHandler)trackwire, NULL);
| ^
xcircuit.h:1125:67: note: in definition of macro âxcAddEventHandlerâ
1125 | #define xcAddEventHandler(a,b,c,d,e) Tk_CreateEventHandler(a,b,d,e)
| ^
elements.c: In function âwire_opâ:
elements.c:2296:10: warning: cast between incompatible function types from âvoid (*)(struct Tk_Window_ *, char *, char *)â to âvoid (*)(void *, XEvent *)â [-Wcast-function-type]
2296 | (xcEventHandler)trackwire, NULL);
| ^
xcircuit.h:1126:67: note: in definition of macro âxcRemoveEventHandlerâ
1126 | #define xcRemoveEventHandler(a,b,c,d,e) Tk_DeleteEventHandler(a,b,d,e)
| ^
make[4]: *** [Makefile:551: elements.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from events.c:42:
events.c: In function âpatheditâ:
events.c:3568:13: warning: cast between incompatible function types from âvoid (*)(struct Tk_Window_ *, char *, char *)â to âvoid (*)(void *, XEvent *)â [-Wcast-function-type]
3568 | (xcEventHandler)trackelement, NULL);
| ^
xcircuit.h:1125:67: note: in definition of macro âxcAddEventHandlerâ
1125 | #define xcAddEventHandler(a,b,c,d,e) Tk_CreateEventHandler(a,b,d,e)
| ^
events.c:3600:13: warning: cast between incompatible function types from âvoid (*)(struct Tk_Window_ *, char *, char *)â to âvoid (*)(void *, XEvent *)â [-Wcast-function-type]
3600 | (xcEventHandler)trackelement, NULL);
| ^
xcircuit.h:1125:67: note: in definition of macro âxcAddEventHandlerâ
1125 | #define xcAddEventHandler(a,b,c,d,e) Tk_CreateEventHandler(a,b,d,e)
| ^
events.c:3633:16: warning: cast between incompatible function types from âvoid (*)(struct Tk_Window_ *, char *, char *)â to âvoid (*)(void *, XEvent *)â [-Wcast-function-type]
3633 | (xcEventHandler)trackelement, NULL);
| ^
xcircuit.h:1125:67: note: in definition of macro âxcAddEventHandlerâ
1125 | #define xcAddEventHandler(a,b,c,d,e) Tk_CreateEventHandler(a,b,d,e)
| ^
events.c:3664:13: warning: cast between incompatible function types from âvoid (*)(struct Tk_Window_ *, char *, char *)â to âvoid (*)(void *, XEvent *)â [-Wcast-function-type]
3664 | (xcEventHandler)trackarc, NULL);
| ^
xcircuit.h:1125:67: note: in definition of macro âxcAddEventHandlerâ
1125 | #define xcAddEventHandler(a,b,c,d,e) Tk_CreateEventHandler(a,b,d,e)
| ^
events.c: In function âpath_opâ:
events.c:5997:25: warning: cast between incompatible function types from âvoid (*)(struct Tk_Window_ *, char *, char *)â to âvoid (*)(void *, XEvent *)â [-Wcast-function-type]
5997 | (xcEventHandler)trackelement, NULL);
| ^
xcircuit.h:1126:67: note: in definition of macro âxcRemoveEventHandlerâ
1126 | #define xcRemoveEventHandler(a,b,c,d,e) Tk_DeleteEventHandler(a,b,d,e)
| ^
events.c:6035:16: warning: cast between incompatible function types from âvoid (*)(struct Tk_Window_ *, char *, char *)â to âvoid (*)(void *, XEvent *)â [-Wcast-function-type]
6035 | (xcEventHandler)trackbox, NULL);
| ^
xcircuit.h:1126:67: note: in definition of macro âxcRemoveEventHandlerâ
1126 | #define xcRemoveEventHandler(a,b,c,d,e) Tk_DeleteEventHandler(a,b,d,e)
| ^
events.c:6116:20: warning: cast between incompatible function types from âvoid (*)(struct Tk_Window_ *, char *, char *)â to âvoid (*)(void *, XEvent *)â [-Wcast-function-type]
6116 | (xcEventHandler)trackelement, NULL);
| ^
xcircuit.h:1126:67: note: in definition of macro âxcRemoveEventHandlerâ
1126 | #define xcRemoveEventHandler(a,b,c,d,e) Tk_DeleteEventHandler(a,b,d,e)
| ^
events.c:6214:16: warning: cast between incompatible function types from âvoid (*)(struct Tk_Window_ *, char *, char *)â to âvoid (*)(void *, XEvent *)â [-Wcast-function-type]
6214 | (xcEventHandler)trackarc, NULL);
| ^
xcircuit.h:1126:67: note: in definition of macro âxcRemoveEventHandlerâ
1126 | #define xcRemoveEventHandler(a,b,c,d,e) Tk_DeleteEventHandler(a,b,d,e)
| ^
events.c:6304:21: warning: cast between incompatible function types from âvoid (*)(struct Tk_Window_ *, char *, char *)â to âvoid (*)(void *, XEvent *)â [-Wcast-function-type]
6304 | (xcEventHandler)trackelement, NULL);
| ^
xcircuit.h:1126:67: note: in definition of macro âxcRemoveEventHandlerâ
1126 | #define xcRemoveEventHandler(a,b,c,d,e) Tk_DeleteEventHandler(a,b,d,e)
| ^
events.c: In function âfunctiondispatchâ:
events.c:2181:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
2181 | if (areawin->topinstance == xobjs.libtop[LIBLIB]) break;
| ^
events.c:2182:7: note: here
2182 | case XCF_Move:
| ^~~~
events.c: In function âprintnameâ:
events.c:4449:30: warning: â%dâ directive writing between 1 and 6 bytes into a region of size 5 [-Wformat-overflow=]
4449 | sprintf(pagestr, " (p. %d)", areawin->page + 1);
| ^~
events.c:4449:24: note: directive argument in the range [-32767, 32768]
4449 | sprintf(pagestr, " (p. %d)", areawin->page + 1);
| ^~~~~~~~~~
events.c:4449:7: note: âsprintfâ output between 8 and 13 bytes into a destination of size 10
4449 | sprintf(pagestr, " (p. %d)", areawin->page + 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: Leaving directory '/<<PKGBUILDDIR>>'
make[3]: *** [Makefile:875: tcl] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:1017: all-recursive] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 librarydir=/usr/share/xcircuit exelibdir=/usr/lib/xcircuit scriptsdir=/usr/share/xcircuit returned exit code 2
make[1]: *** [debian/rules:22: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:14: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-electronics-devel
mailing list