[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1114407: tkdesk: FTBFS: netscape_remote.c:156:46: error: passing argument 5 of 'Tcl_CreateCommand' from incompatible pointer type [-Wincompatible-pointer-types]



Package: src:tkdesk
Version: 2.0-12
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:tkdesk, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_clean
 debian/rules binary
dh binary
   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:10: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.in:10: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from...
configure.in:10: the top level

[... snipped ...]

      | ^~~~~~~~~~~~~~~~~~~~
netscape_remote.c: In function â??GetLockâ??:
netscape_remote.c:865:1: warning: old-style function definition [-Wold-style-definition]
  865 | GetLock(interp, d, win, pending, timeout)
      | ^~~~~~~
netscape_remote.c: In function â??ReleaseLockâ??:
netscape_remote.c:1016:1: warning: old-style function definition [-Wold-style-definition]
 1016 | ReleaseLock(d, win)
      | ^~~~~~~~~~~
netscape_remote.c: In function â??NetscapeRestrictâ??:
netscape_remote.c:1037:1: warning: old-style function definition [-Wold-style-definition]
 1037 | NetscapeRestrict(clientData, event)
      | ^~~~~~~~~~~~~~~~
netscape_remote.c: In function â??LockTimeoutâ??:
netscape_remote.c:1075:1: warning: old-style function definition [-Wold-style-definition]
 1075 | LockTimeout(clientData)
      | ^~~~~~~~~~~
make[3]: *** [<builtin>: netscape_remote.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/netscape-remote'
make[2]: *** [Makefile:157: lib_netscape] Error 2
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O -DUSE_OLD_IMAGE -DUSE_NON_CONST -DHAVE_CONFIG_H -I. -I/usr/include/tcl8.6  -O -DUSE_OLD_IMAGE -DUSE_NON_CONST -DHAVE_CONFIG_H -I.. -I/usr/include/tcl8.6  -Wdate-time -D_FORTIFY_SOURCE=2 -DUSE_INTERP_RESULT  -c -o dsk_ls.o dsk_ls.c
make[2]: *** Waiting for unfinished jobs....
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O -DUSE_OLD_IMAGE -DUSE_NON_CONST -DHAVE_CONFIG_H -I. -I/usr/include/tcl8.6  -O -DUSE_OLD_IMAGE -DUSE_NON_CONST -DHAVE_CONFIG_H -I.. -I/usr/include/tcl8.6  -Wdate-time -D_FORTIFY_SOURCE=2 -DUSE_INTERP_RESULT  -c -o misc.o misc.c
dsk_ls.c: In function â??my_mallocâ??:
dsk_ls.c:188:31: warning: format â??%dâ?? expects argument of type â??intâ??, but argument 3 has type â??size_tâ?? {aka â??long unsigned intâ??} [-Wformat=]
  188 |     fprintf (stderr, "malloc %d bytes", size);
      |                              ~^         ~~~~
      |                               |         |
      |                               int       size_t {aka long unsigned int}
      |                              %ld
dsk_ls.c: In function â??dsk_ls_init_and_parse_optionsâ??:
dsk_ls.c:210:5: warning: old-style function definition [-Wold-style-definition]
  210 | int dsk_ls_init_and_parse_options (argc, argv, path)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dsk_ls.c:229:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  229 |     par_path[MAXPATHLEN-1] = (char) NULL;
      |                              ^
dsk_ls.c: In function â??dsk_ls_read_and_sortâ??:
dsk_ls.c:243:5: warning: old-style function definition [-Wold-style-definition]
  243 | int dsk_ls_read_and_sort (iargc, iargv, maskc, maskv, mask_invert, dot_reg)
      |     ^~~~~~~~~~~~~~~~~~~~
dsk_ls.c: In function â??dsk_ls_next_fileâ??:
dsk_ls.c:279:5: warning: old-style function definition [-Wold-style-definition]
  279 | int dsk_ls_next_file (elembuf, nametcbuf)
      |     ^~~~~~~~~~~~~~~~
dsk_ls.c: In function â??ignore_fileâ??:
dsk_ls.c:326:5: warning: old-style function definition [-Wold-style-definition]
  326 | int ignore_file (fe)
      |     ^~~~~~~~~~~
dsk_ls.c: In function â??linked_fileâ??:
dsk_ls.c:369:7: warning: old-style function definition [-Wold-style-definition]
  369 | char *linked_file (fe)
      |       ^~~~~~~~~~~
dsk_ls.c:378:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  378 |         *(linkname + 4 + len) = (char) NULL;
      |                                 ^
dsk_ls.c: In function â??perm_stringâ??:
dsk_ls.c:394:7: warning: old-style function definition [-Wold-style-definition]
  394 | char *perm_string (fe)
      |       ^~~~~~~~~~~
dsk_ls.c: In function â??type_charâ??:
dsk_ls.c:473:6: warning: old-style function definition [-Wold-style-definition]
  473 | char type_char (fe)
      |      ^~~~~~~~~
dsk_ls.c: In function â??get_userâ??:
dsk_ls.c:516:7: warning: old-style function definition [-Wold-style-definition]
  516 | char *get_user (uid)
      |       ^~~~~~~~
dsk_ls.c: In function â??get_groupâ??:
dsk_ls.c:539:7: warning: old-style function definition [-Wold-style-definition]
  539 | char *get_group (gid)
      |       ^~~~~~~~~
dsk_ls.c: In function â??file_timeâ??:
dsk_ls.c:563:7: warning: old-style function definition [-Wold-style-definition]
  563 | char *file_time (filetime)
      |       ^~~~~~~~~
dsk_ls.c: In function â??write_elementâ??:
dsk_ls.c:600:6: warning: old-style function definition [-Wold-style-definition]
  600 | void write_element (fe, xbuf)
      |      ^~~~~~~~~~~~~
dsk_ls.c: In function â??write_listâ??:
dsk_ls.c:653:6: warning: old-style function definition [-Wold-style-definition]
  653 | void write_list (fl)
      |      ^~~~~~~~~~
dsk_ls.c: In function â??qsort_by_nameâ??:
dsk_ls.c:753:5: warning: old-style function definition [-Wold-style-definition]
  753 | int qsort_by_name (fe1, fe2)
      |     ^~~~~~~~~~~~~
dsk_ls.c: In function â??qsort_by_name_foldâ??:
dsk_ls.c:769:5: warning: old-style function definition [-Wold-style-definition]
  769 | int qsort_by_name_fold (fe1, fe2)
      |     ^~~~~~~~~~~~~~~~~~
dsk_ls.c: In function â??qsort_by_sizeâ??:
dsk_ls.c:785:5: warning: old-style function definition [-Wold-style-definition]
  785 | int qsort_by_size (fe1, fe2)
      |     ^~~~~~~~~~~~~
dsk_ls.c: In function â??qsort_by_dateâ??:
dsk_ls.c:818:5: warning: old-style function definition [-Wold-style-definition]
  818 | int qsort_by_date (fe1, fe2)
      |     ^~~~~~~~~~~~~
dsk_ls.c: In function â??qsort_by_extâ??:
dsk_ls.c:852:5: warning: old-style function definition [-Wold-style-definition]
  852 | int qsort_by_ext (fe1, fe2)
      |     ^~~~~~~~~~~~
dsk_ls.c: In function â??sort_by_typeâ??:
dsk_ls.c:898:6: warning: old-style function definition [-Wold-style-definition]
  898 | void sort_by_type (fl)
      |      ^~~~~~~~~~~~
dsk_ls.c: In function â??process_file_listâ??:
dsk_ls.c:957:6: warning: old-style function definition [-Wold-style-definition]
  957 | void process_file_list (fl)
      |      ^~~~~~~~~~~~~~~~~
dsk_ls.c: In function â??new_file_entryâ??:
dsk_ls.c:1046:13: warning: old-style function definition [-Wold-style-definition]
 1046 | FILE_ENTRY *new_file_entry (name)
      |             ^~~~~~~~~~~~~~
dsk_ls.c: In function â??read_listâ??:
dsk_ls.c:1217:5: warning: old-style function definition [-Wold-style-definition]
 1217 | int read_list (path)
      |     ^~~~~~~~~
dsk_ls.c:1229:9: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
 1229 |         sprintf (dsk_interp->result, "no such file or dir: %s", path);
      |         ^~~~~~~
In file included from ot.h:19,
                 from libdesk.h:32,
                 from dsk_ls.c:57:
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
dsk_ls.c: In function â??read_file_listsâ??:
dsk_ls.c:1290:13: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
 1290 |             sprintf (dsk_interp->result, "no such file or dir: %s", par_path);
      |             ^~~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
dsk_ls.c:1295:13: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
 1295 |             sprintf (dsk_interp->result, "no such file or dir: %s", par_path);
      |             ^~~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
dsk_ls.c: In function â??process_cmdlineâ??:
dsk_ls.c:1348:5: warning: old-style function definition [-Wold-style-definition]
 1348 | int process_cmdline (argc, argv)
      |     ^~~~~~~~~~~~~~~
dsk_ls.c:1381:21: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
 1381 |                     strcpy (dsk_interp->result, USAGE);
      |                     ^~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
dsk_ls.c:1404:21: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
 1404 |                     strcpy (dsk_interp->result, USAGE);
      |                     ^~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
dsk_ls.c:1421:21: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
 1421 |                     sprintf (dsk_interp->result,
      |                     ^~~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
dsk_ls.c:1434:17: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
 1434 |                 sprintf (dsk_interp->result, "Don't understand: -%c\n%s",
      |                 ^~~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
dsk_ls.c:1440:17: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
 1440 |                 strcpy (dsk_interp->result, USAGE);
      |                 ^~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
dsk_ls.c:1450:9: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
 1450 |         strcpy (dsk_interp->result, USAGE);
      |         ^~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
dsk_ls.c: In function â??dsk_ls_initâ??:
dsk_ls.c:1472:9: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
 1472 |         sprintf (dsk_interp->result,
      |         ^~~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
dsk_ls.c: In function â??dsk_ls_Cmdâ??:
dsk_ls.c:1523:5: warning: old-style function definition [-Wold-style-definition]
 1523 | int dsk_ls_Cmd (clientData, interp, argc, argv)
      |     ^~~~~~~~~~
dsk_ls.c:1571:9: error: too many arguments to function â??write_file_listsâ??; expected 0, have 1
 1571 |     if (write_file_lists (0) != TCL_OK)
      |         ^~~~~~~~~~~~~~~~  ~
dsk_ls.c:685:5: note: declared here
  685 | int write_file_lists ()
      |     ^~~~~~~~~~~~~~~~
misc.c: In function â??dsk_striptc_Cmdâ??:
misc.c:71:5: warning: old-style function definition [-Wold-style-definition]
   71 | int dsk_striptc_Cmd (clientData, interp, argc, argv)
      |     ^~~~~~~~~~~~~~~
misc.c:82:9: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
   82 |         sprintf (interp->result, "usage: dsk_striptc ?-keep? string");
      |         ^~~~~~~
In file included from ot.h:19,
                 from libdesk.h:32,
                 from misc.c:35:
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
misc.c:90:13: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
   90 |             sprintf (interp->result, "usage: dsk_striptc ?-keep? string");
      |             ^~~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
misc.c:98:9: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
   98 |         *interp->result = 0;
      |         ^
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
misc.c:128:5: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
  128 |     strcpy (interp->result, outstr);
      |     ^~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
misc.c: In function â??dsk_esc_Cmdâ??:
misc.c:138:5: warning: old-style function definition [-Wold-style-definition]
  138 | int dsk_esc_Cmd (clientData, interp, argc, argv)
      |     ^~~~~~~~~~~
misc.c:147:9: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
  147 |         sprintf (interp->result, "usage: dsk_esc string chars");
      |         ^~~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
misc.c: In function â??dsk_unesc_Cmdâ??:
misc.c:170:5: warning: old-style function definition [-Wold-style-definition]
  170 | int dsk_unesc_Cmd (clientData, interp, argc, argv)
      |     ^~~~~~~~~~~~~
misc.c:179:9: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
  179 |         strcpy (interp->result, "usage: dsk_unesc string");
      |         ^~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
misc.c: In function â??dsk_localtime_Cmdâ??:
misc.c:203:5: warning: old-style function definition [-Wold-style-definition]
  203 | int dsk_localtime_Cmd (clientData, interp, argc, argv)
      |     ^~~~~~~~~~~~~~~~~
misc.c: In function â??dsk_statfs_Cmdâ??:
misc.c:246:5: warning: old-style function definition [-Wold-style-definition]
  246 | int dsk_statfs_Cmd (clientData, interp, argc, argv)
      |     ^~~~~~~~~~~~~~
misc.c:262:9: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
  262 |         strcpy (interp->result, "usage: dskC_statfs path?/file?");
      |         ^~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
misc.c:298:9: warning: â??resultâ?? is deprecated: use Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
  298 |         sprintf (interp->result, "Error %d", errno);
      |         ^~~~~~~
/usr/include/tcl8.6/tcl.h:513:11: note: declared here
  513 |     char *result TCL_DEPRECATED_API("use Tcl_GetStringResult/Tcl_SetResult");
      |           ^~~~~~
make[3]: *** [<builtin>: dsk_ls.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/libdesk'
make[2]: *** [Makefile:160: lib_libdesk] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 TKDESK_LIBRARY=/usr/lib/tkdesk returned exit code 2
make[1]: *** [debian/rules:17: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:11: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------


Reply to: