Run of lintian-fixes for netcat

Run Locally

git clone git+ssh://git@salsa.debian.org/debian/netcat.git netcat
cd netcat
DEB_UPDATE_CHANGELOG=auto lintian-brush

Failure

build.log · stage Build, 376 lines starting at line 384
netcat.c:286:22: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]

View full build.log →


Unpack source
-------------

Format: 3.0 (quilt)
Source: netcat
Binary: netcat-traditional
Architecture: any
Version: 1.10-48.2~jan+lint1
Maintainer: Anibal Monsalve Salazar <anibal@debian.org>
Uploaders: Chris Hofstaedtler <zeha@debian.org>
Homepage: http://www.stearns.org/nc/
Standards-Version: 4.7.4
Vcs-Browser: https://salsa.debian.org/debian/netcat
Vcs-Git: https://salsa.debian.org/debian/netcat.git
Build-Depends: debhelper-compat (= 13)
Package-List:
 netcat-traditional deb net optional arch=any
Checksums-Sha1:
 d46f89c122fbe9f7c383cebbc1c7c97b8d0e682c 64363 netcat_1.10.orig.tar.bz2
 a11cf54519c327004bdfb0537e7be8c0cd2a9da4 21384 netcat_1.10-48.2~jan+lint1.debian.tar.xz
Checksums-Sha256:
 64913dc3f0b4a96c3ab04d062d84f28ba6854152c94344e3985458b2aebca3d5 64363 netcat_1.10.orig.tar.bz2
 dbf15e150dab1352bf4e3786f4c39c18784786875ed554ccc8aae1ed54da9bc0 21384 netcat_1.10-48.2~jan+lint1.debian.tar.xz
Files:
 7dc5c7450e708796395ffd746c197234 64363 netcat_1.10.orig.tar.bz2
 c1ca4f52e2426d8f0b333b0b596bb6bb 21384 netcat_1.10-48.2~jan+lint1.debian.tar.xz

dpkg-source: warning: extracting unsigned source package (netcat_1.10-48.2~jan+lint1.dsc)
dpkg-source: info: extracting netcat in /build/reproducible-path/netcat-1.10
dpkg-source: info: unpacking netcat_1.10.orig.tar.bz2
dpkg-source: info: unpacking netcat_1.10-48.2~jan+lint1.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying unstripped.patch
dpkg-source: info: applying glibc-resolv-h.patch
dpkg-source: info: applying arm-timer.patch
dpkg-source: info: applying posix-setjmp.patch
dpkg-source: info: applying no-sleep-punt.patch
dpkg-source: info: applying single-verbose.patch
dpkg-source: info: applying use-getservbyport.patch
dpkg-source: info: applying read-overflow.patch
dpkg-source: info: applying inet-aton.patch
dpkg-source: info: applying udp-broadcast.patch
dpkg-source: info: applying quit.patch
dpkg-source: info: applying dash-port.patch
dpkg-source: info: applying sh-c.patch
dpkg-source: info: applying tos.patch
dpkg-source: info: applying rservice-buf.patch
dpkg-source: info: applying so-keepalive.patch
dpkg-source: info: applying nodup-stderr.patch
dpkg-source: info: applying help-exit-failure.patch
dpkg-source: info: applying select-nfds.patch
dpkg-source: info: applying proxy-doc.patch
dpkg-source: info: applying 655881-Makefile-LDFLAGS.patch
dpkg-source: info: applying 655881-netcat.c.format.patch
dpkg-source: info: applying 545579-send-crlf.patch
dpkg-source: info: applying no-static.patch
dpkg-source: info: applying missing-prototypes.patch
dpkg-source: info: applying implicit-int.patch

clean up apt cache
------------------


Check disk space
----------------

Sufficient free space for build

User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=C.UTF-8
LC_ALL=C.UTF-8
LOGNAME=sbuild
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SHELL=/bin/sh
SOURCE_DATE_EPOCH=1778565559
USER=sbuild

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage --sanitize-env -us -uc
dpkg-buildpackage: warning: email address 'Jelmer Vernooij <jelmer@idun>' with single label domain
dpkg-buildpackage: info: source package netcat
dpkg-buildpackage: info: source version 1.10-48.2~jan+lint1
dpkg-buildpackage: info: source distribution lintian-fixes
dpkg-buildpackage: info: source changed by Jelmer Vernooij <jelmer@idun>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean
   dh_auto_clean
	make -j8 clean
make[1]: Entering directory '/build/reproducible-path/netcat-1.10'
rm -f nc *.o *.obj
make[1]: Leaving directory '/build/reproducible-path/netcat-1.10'
   dh_clean
 dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building netcat using existing ../netcat_1.10.orig.tar.bz2
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: building netcat in ../netcat_1.10-48.2~jan+lint1.debian.tar.xz
dpkg-source: info: building netcat in ../netcat_1.10-48.2~jan+lint1.dsc
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   debian/rules override_dh_auto_build-arch
make[1]: Entering directory '/build/reproducible-path/netcat-1.10'
make linux \
    CC="x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/netcat-1.10=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2" LDFLAGS="-Wl,-z,relro -Wl,-z,now" STATIC='' \
	DFLAGS='-DLINUX -DTELNET -DGAPING_SECURITY_HOLE -DIP_TOS -DDEBIAN_VERSION=\"1.10-48.2~jan+lint1\"'
make[2]: Entering directory '/build/reproducible-path/netcat-1.10'
make -e nc  XFLAGS='-DLINUX' STATIC=
make[3]: Entering directory '/build/reproducible-path/netcat-1.10'
x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/netcat-1.10=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now	 -DLINUX -DTELNET -DGAPING_SECURITY_HOLE -DIP_TOS -DDEBIAN_VERSION=\"1.10-48.2~jan+lint1\" -DLINUX  -o nc netcat.c 
netcat.c:33:33: warning: ‘/*’ within comment [-Wcomment]
   33 | /* #undef _POSIX_SOURCE         /* might need this for something? */
netcat.c:36:33: warning: ‘/*’ within comment [-Wcomment]
   36 | /* #define ANAL                 /* if you want case-sensitive DNS matching */
netcat.c:62:33: warning: ‘/*’ within comment [-Wcomment]
   62 | /* #define POSIX_SETJMP         /* If you want timeouts to work under the */
netcat.c: In function ‘holler’:
netcat.c:208:6: warning: old-style function definition [-Wold-style-definition]
  208 | void holler (str, p1, p2, p3, p4, p5, p6)
      |      ^~~~~~
netcat.c: In function ‘bail’:
netcat.c:233:6: warning: old-style function definition [-Wold-style-definition]
  233 | void bail (str, p1, p2, p3, p4, p5, p6)
      |      ^~~~
netcat.c: In function ‘arm_timer’:
netcat.c:277:6: warning: old-style function definition [-Wold-style-definition]
  277 | void arm_timer (num, secs)
      |      ^~~~~~~~~
netcat.c:286:22: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
  286 |     signal (SIGALRM, tmtravel);
      |                      ^~~~~~~~
      |                      |
      |                      void (*)(void)
In file included from netcat.c:83:
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
netcat.c:262:6: note: ‘tmtravel’ declared here
  262 | void tmtravel ()
      |      ^~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
netcat.c: In function ‘Hmalloc’:
netcat.c:295:8: warning: old-style function definition [-Wold-style-definition]
  295 | char * Hmalloc (size)
      |        ^~~~~~~
netcat.c: In function ‘findline’:
netcat.c:311:14: warning: old-style function definition [-Wold-style-definition]
  311 | unsigned int findline (buf, siz)
      |              ^~~~~~~~
netcat.c: In function ‘comparehosts’:
netcat.c:340:5: warning: old-style function definition [-Wold-style-definition]
  340 | int comparehosts (poop, hp)
      |     ^~~~~~~~~~~~
netcat.c: In function ‘gethostpoop’:
netcat.c:365:8: warning: old-style function definition [-Wold-style-definition]
  365 | HINF * gethostpoop (name, numeric)
      |        ^~~~~~~~~~~
netcat.c: In function ‘getportpoop’:
netcat.c:466:8: warning: old-style function definition [-Wold-style-definition]
  466 | USHORT getportpoop (pstring, pnum)
      |        ^~~~~~~~~~~
netcat.c: In function ‘nextport’:
netcat.c:548:8: warning: old-style function definition [-Wold-style-definition]
  548 | USHORT nextport (block)
      |        ^~~~~~~~
netcat.c: In function ‘loadports’:
netcat.c:584:6: warning: old-style function definition [-Wold-style-definition]
  584 | void loadports (block, lo, hi)
      |      ^~~~~~~~~
netcat.c: In function ‘doexec’:
netcat.c:613:1: warning: old-style function definition [-Wold-style-definition]
  613 | doexec (fd)
      | ^~~~~~
netcat.c: In function ‘doconnect’:
netcat.c:646:5: warning: old-style function definition [-Wold-style-definition]
  646 | int doconnect (rad, rp, lad, lp)
      |     ^~~~~~~~~
netcat.c: In function ‘dolisten’:
netcat.c:843:5: warning: old-style function definition [-Wold-style-definition]
  843 | int dolisten (rad, rp, lad, lp)
      |     ^~~~~~~~
netcat.c:881:46: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign]
  881 |     rr = getsockname (nnetfd, (SA *) lclend, &x);
      |                                              ^~
      |                                              |
      |                                              int *
In file included from netcat.c:74:
/usr/include/x86_64-linux-gnu/sys/socket.h:117:47: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’
  117 |                         socklen_t *__restrict __len) __THROW;
      |                         ~~~~~~~~~~~~~~~~~~~~~~^~~~~
netcat.c:908:63: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness [-Wpointer-sign]
  908 |         (nnetfd, bigbuf_net, BIGSIZ, MSG_PEEK, (SA *) remend, &x);
      |                                                               ^~
      |                                                               |
      |                                                               int *
In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:343:
/usr/include/x86_64-linux-gnu/bits/socket2.h:69:56: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’
   69 |           __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len)
      |                                  ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
netcat.c:933:40: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness [-Wpointer-sign]
  933 |     rr = accept (nnetfd, (SA *)remend, &x);
      |                                        ^~
      |                                        |
      |                                        int *
/usr/include/x86_64-linux-gnu/sys/socket.h:307:42: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’
  307 |                    socklen_t *__restrict __addr_len);
      |                    ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
netcat.c:960:60: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign]
  960 |   rr = getsockopt (nnetfd, IPPROTO_IP, IP_OPTIONS, optbuf, &x);
      |                                                            ^~
      |                                                            |
      |                                                            int *
/usr/include/x86_64-linux-gnu/sys/socket.h:257:46: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’
  257 |                        socklen_t *__restrict __optlen) __THROW;
      |                        ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
netcat.c:987:44: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign]
  987 |   rr = getsockname (nnetfd, (SA *) lclend, &x);
      |                                            ^~
      |                                            |
      |                                            int *
/usr/include/x86_64-linux-gnu/sys/socket.h:117:47: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’
  117 |                         socklen_t *__restrict __len) __THROW;
      |                         ~~~~~~~~~~~~~~~~~~~~~~^~~~~
netcat.c: In function ‘udptest’:
netcat.c:1037:1: warning: old-style function definition [-Wold-style-definition]
 1037 | udptest (fd, where)
      | ^~~~~~~
netcat.c: In function ‘oprint’:
netcat.c:1080:6: warning: old-style function definition [-Wold-style-definition]
 1080 | void oprint (which, buf, n)
      |      ^~~~~~
netcat.c:1132:14: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign]
 1132 |     sprintf (&stage[2], "%8.8x ", obc);         /* xxx: still slow? */
      |              ^~~~~~~~~
      |              |
      |              unsigned char *
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdlib.h:26,
                 from netcat.c:39:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected ‘char *’ but argument is of type ‘unsigned char *’
   28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...))
      | ^~~~~
netcat.c: In function ‘atelnet’:
netcat.c:1169:6: warning: old-style function definition [-Wold-style-definition]
 1169 | void atelnet (buf, size)
      |      ^~~~~~~
netcat.c: In function ‘readwrite’:
netcat.c:1207:5: warning: old-style function definition [-Wold-style-definition]
 1207 | int readwrite (fd)
      |     ^~~~~~~~~
netcat.c:1318:30: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
 1318 |             signal (SIGALRM, quit);
      |                              ^~~~
      |                              |
      |                              void (*)(void)
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
netcat.c:255:6: note: ‘quit’ declared here
  255 | void quit()
      |      ^~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
netcat.c: In function ‘unescape’:
netcat.c:1404:8: warning: old-style function definition [-Wold-style-definition]
 1404 | char * unescape(start)
      |        ^~~~~~~~
netcat.c:1414:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
 1414 |   while (next = strstr (next+1, "\\-")) {
      |          ^~~~
netcat.c:1417:10: warning: operation on ‘p’ may be undefined [-Wsequence-point]
 1417 |       *(p++) = *(p+1);
      |        ~~^~~
netcat.c: In function ‘main’:
netcat.c:1427:1: warning: old-style function definition [-Wold-style-definition]
 1427 | main (argc, argv)
      | ^~~~
netcat.c:1468:19: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
 1468 |   signal (SIGINT, catch);
      |                   ^~~~~
      |                   |
      |                   void (*)(void)
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
netcat.c:245:6: note: ‘catch’ declared here
  245 | void catch ()
      |      ^~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
netcat.c:1469:20: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
 1469 |   signal (SIGQUIT, catch);
      |                    ^~~~~
      |                    |
      |                    void (*)(void)
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
netcat.c:245:6: note: ‘catch’ declared here
  245 | void catch ()
      |      ^~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
netcat.c:1470:20: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
 1470 |   signal (SIGTERM, catch);
      |                    ^~~~~
      |                    |
      |                    void (*)(void)
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
netcat.c:245:6: note: ‘catch’ declared here
  245 | void catch ()
      |      ^~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
netcat.c:1654:17: warning: pointer targets in passing argument 1 of ‘open’ differ in signedness [-Wpointer-sign]
 1654 |     ofd = open (stage, O_WRONLY | O_CREAT | O_TRUNC, 0664);
      |                 ^~~~~
      |                 |
      |                 unsigned char *
In file included from /usr/include/fcntl.h:342,
                 from netcat.c:84:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:43:19: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
   43 | open (const char *__path, int __oflag, ...)
      |       ~~~~~~~~~~~~^~~~~~
netcat.c:1668:15: warning: the comparison will always evaluate as ‘true’ for the address of ‘iaddrs’ will never be NULL [-Waddress]
 1668 |   if (whereto && whereto->iaddrs)
      |               ^~
netcat.c:112:18: note: ‘iaddrs’ declared here
  112 |   struct in_addr iaddrs[8];     /* real addresses: in_addr.s_addr: ulong */
      |                  ^~~~~~
netcat.c: In function ‘doexec’:
netcat.c:636:1: warning: control reaches end of non-void function [-Wreturn-type]
  636 | } /* doexec */
      | ^
netcat.c: In function ‘atelnet’:
netcat.c:1194:14: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1194 |       (void) write (netfd, obuf, 3);
      |              ^~~~~~~~~~~~~~~~~~~~~~
netcat.c: In function ‘readwrite’:
netcat.c:1367:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1367 |       write (fd, "\r\n", 2); /* \r\n */
      |       ^~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:31: nc] Error 1
make[3]: Leaving directory '/build/reproducible-path/netcat-1.10'
make[2]: *** [Makefile:70: linux] Error 2
make[2]: Leaving directory '/build/reproducible-path/netcat-1.10'
make[1]: *** [debian/rules:20: override_dh_auto_build-arch] Error 2
make[1]: Leaving directory '/build/reproducible-path/netcat-1.10'
make: *** [debian/rules:17: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
Build finished at 2026-05-12T06:03:07Z

Finished
--------

Logs

Summary

Failed fixers:

  • initial-upload-closes-no-bugs
    Panic: either the `runtime-async-std` or `runtime-tokio` feature must be enabled
    Backtrace:
       0: <lintian_brush::builtin_fixers::BuiltinFixerWrapper as lintian_brush::Fixer>::run
       1: debian_analyzer::apply_or_revert
       2: lintian_brush::run_lintian_fixers
       3: lintian_brush::main
       4: std::sys::backtrace::__rust_begin_short_backtrace
       5: std::rt::lang_start::{{closure}}
       6: std::rt::lang_start_internal
       7: main
       8: <unknown>
       9: __libc_start_main
      10: _start