Bug#1143282: ax25-tools: FTBFS: 167 | sprintf(err_msg, "error: cannot unlink %s (%s)

Hibby <[email protected]>
Newsgroups gmane.linux.debian.devel.ham
Message-ID <d9de0eb7-383a-441b-86a1-48a714393f14__47005.9411179804$1786699302$gmane$org@app.fastmail.com>
Hey there,

This is unsurprising to me - the the ax25 kernel code it is choking on was removed here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=64edfa65062dc4509ba75978116b2f6d392346f5 

I think it's time we either drop ax25-tools, ax25-apps and the wider family of applications that rely on the kernel code due to a lack of maintenance across all the code or add this code back as as -dkms type package using the out of tree modules:

https://github.com/linux-netdev/mod-orphan/tree/main/drivers/net/hamradio

-- 
  Dave Hibberd <[email protected]>
  Debian Developer
  Packet Radioist
  MM0RFN

On Sat, 1 Aug 2026, at 11:34 PM, Santiago Vila wrote:
> Package: src:ax25-tools
> Version: 0.0.10-rc5+git20230513+d3e6d4f-3
> Severity: serious
> Tags: ftbfs forky sid
>
> Dear maintainer:
>
> During a rebuild of all packages in unstable, this package failed to build.
>
> Below you will find the last part of the build log (probably the most
> relevant part, but not necessarily). If required, the full build log
> is available here:
>
> https://people.debian.org/~sanvila/build-logs/202608/
>
> 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 cannot 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:ax25-tools, so that this is still
> visible in the BTS web page for this package.
>
> Thanks.
>
> --------------------------------------------------------------------------------
> [...]
>  debian/rules clean
> dh clean
>    dh_clean
> 	rm -f debian/debhelper-build-stamp
> 	rm -rf debian/.debhelper/
> 	rm -f -- debian/ax25-tools.substvars debian/ax25-xtools.substvars 
> debian/files
> 	rm -fr -- debian/ax25-tools/ debian/tmp/ debian/ax25-xtools/
> 	find .  \( \( \
> 		\( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path 
> .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune 
> -o -type f -a \
> 	        \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
> 		 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
> 		 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
> 		 -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
> 		\) -exec rm -f {} + \) -o \
> 		\( -type d -a \( -name autom4te.cache -o -name __pycache__ \) -prune 
> -exec rm -rf {} + \) \)
>  debian/rules binary
> dh binary
>    dh_update_autotools_config
>    dh_autoreconf
> 	find ! -ipath "./debian/*" -a ! \( -path '*/.git/*' -o -path '*/.hg/*' 
> -o -path '*/.bzr/*' -o -path '*/.svn/*' -o -path '*/CVS/*' \) -a  -type 
> f -exec md5sum {} + -o -type l -printf "symlink  %p
> " > debian/autoreconf.before
> 	grep -q ^XDT_ configure.ac
> 	autoreconf -f -i -v
> autoreconf: export WARNINGS=
> autoreconf: Entering directory '.'
> autoreconf: configure.ac: no obvious need to run autopoint
> autoreconf: running: aclocal --force 
> autoreconf: configure.ac: tracing
> autoreconf: configure.ac: not using Libtool
> autoreconf: configure.ac: not using Intltool
> autoreconf: configure.ac: not using Gtkdoc
> autoreconf: configure.ac: no need to run autopoint (confirmed)
> autoreconf: running: /usr/bin/autoconf --force
> configure.ac:31: warning: The macro 'AC_HEADER_STDC' is obsolete.
> configure.ac:31: You should run autoupdate.
> ./lib/autoconf/headers.m4:664: AC_HEADER_STDC is expanded from...
> configure.ac:31: the top level
> configure.ac:52: warning: The macro 'AC_HEADER_TIME' is obsolete.
> configure.ac:52: You should run autoupdate.
> ./lib/autoconf/headers.m4:703: AC_HEADER_TIME is expanded from...
> configure.ac:52: the top level
> configure.ac:56: warning: The macro 'AC_PROG_GCC_TRADITIONAL' is 
> obsolete.
> configure.ac:56: You should run autoupdate.
> ./lib/autoconf/c.m4:1802: AC_PROG_GCC_TRADITIONAL is expanded from...
> configure.ac:56: the top level
> configure.ac:59: warning: AC_FUNC_WAIT3: 'wait3' has been removed from 
> POSIX.
> configure.ac:59: Remove this 'AC_FUNC_WAIT3' and adjust your code to 
> use 'waitpid' instead.
> ./lib/autoconf/functions.m4:2103: AC_FUNC_WAIT3 is expanded from...
> configure.ac:59: the top level
> autoreconf: running: /usr/bin/autoheader --force
> autoreconf: running: automake --add-missing --copy --force-missing
> configure.ac:10: installing './compile'
> configure.ac:4: installing './install-sh'
> configure.ac:4: installing './missing'
> 6pack/Makefile.am: installing './depcomp'
> Makefile.am: installing './INSTALL'
> autoreconf: configure.ac: not running make: --make not given
> autoreconf: Leaving directory '.'
> 	find ! -ipath "./debian/*" -a ! \( -path '*/.git/*' -o -path '*/.hg/*' 
> -o -path '*/.bzr/*' -o -path '*/.svn/*' -o -path '*/CVS/*' \) -a  -type 
> f -exec md5sum {} + -o -type l -printf "symlink  %p
> " > debian/autoreconf.after
>    dh_auto_configure
> 	./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 --runstatedir=/run 
> --disable-maintainer-mode --disable-dependency-tracking
> 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 UID '995' is supported by ustar format... yes
> checking whether GID '995' is supported by ustar format... yes
> checking how to create a ustar tar archive... gnutar
> checking for gawk... (cached) mawk
> checking for gcc... x86_64-linux-gnu-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 x86_64-linux-gnu-gcc accepts -g... yes
> checking for x86_64-linux-gnu-gcc option to enable C23 features... none 
> needed
> checking whether x86_64-linux-gnu-gcc understands -c and -o together... 
> yes
> checking whether make supports the include directive... yes (GNU style)
> checking dependency style of x86_64-linux-gnu-gcc... none
> checking whether the compiler supports GNU C++... yes
> checking whether x86_64-linux-gnu-g++ accepts -g... yes
> checking dependency style of x86_64-linux-gnu-g++... none
> checking how to run the C preprocessor... x86_64-linux-gnu-gcc -E
> checking for X... libraries , headers 
> checking for gethostbyname... yes
> checking for connect... yes
> checking for remove... yes
> checking for shmat... yes
> checking for IceConnectionNumber in -lICE... yes
> checking for zlibVersion in -lz... yes
> checking for ax25_config_load_ports in -lax25... yes
> checking for openpty in -lutil... yes
> checking for main in -lfltk... 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 for sys/time.h... yes
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for sys/wait.h that is POSIX.1 compatible... yes
> checking for fcntl.h... yes
> checking for limits.h... yes
> checking for paths.h... yes
> checking for strings.h... (cached) yes
> checking for sys/file.h... yes
> checking for sys/ioctl.h... yes
> checking for sys/time.h... (cached) yes
> checking for syslog.h... yes
> checking for unistd.h... (cached) yes
> checking for zlib.h... yes
> checking for struct ax25_fwd_struct... yes
> checking for struct nr_route_struct.ndigis... yes
> checking for struct rose_facilities_struct... yes
> checking for an ANSI C-conforming const... yes
> checking for uid_t... yes
> checking for gid_t... yes
> checking for pid_t... yes
> checking whether struct tm is in sys/time.h or time.h... time.h
> checking for working memcmp... yes
> checking for strftime... yes
> checking for wait3 that fills in rusage... yes
> checking for gethostname... yes
> checking for gettimeofday... yes
> checking for mkdir... yes
> checking for select... yes
> checking for socket... yes
> checking for strdup... yes
> checking for strerror... yes
> checking for strspn... yes
> checking for strstr... yes
> checking for strtol... yes
> checking for strtoul... yes
> checking for uname... yes
> checking that generated files are newer than configure... done
> configure: creating ./config.status
> config.status: creating netrom/Makefile
> config.status: creating tcpip/Makefile
> config.status: creating ax25/Makefile
> config.status: creating ax25/axgetput/Makefile
> config.status: creating Makefile
> config.status: creating rose/Makefile
> config.status: creating user_call/Makefile
> config.status: creating kiss/Makefile
> config.status: creating 6pack/Makefile
> config.status: creating hdlcutil/Makefile
> config.status: creating hdlcutil/fl/Makefile
> config.status: creating yamdrv/Makefile
> config.status: creating dmascc/Makefile
> config.status: creating ax25-tools.spec
> config.status: creating config.h
> config.status: executing depfiles commands
>    dh_auto_build
> 	make -j2
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> sed -e 's/@RELEASE_VER@/0.0.10-rc5/'				\
>     -e 's/@SCM_VER@/'$(./setlocalversion)'/'			\
>     scm-version.h.in > scm-version.h.tmp &&			\
> (cmp -s scm-version.h.tmp scm-version.h 2>/dev/zero ||		\
>  mv scm-version.h.tmp scm-version.h)
> rm -f scm-version.h.tmp
> make  all-recursive
> make[2]: Entering directory '/<<PKGBUILDDIR>>'
> Making all in ax25
> make[3]: Entering directory '/<<PKGBUILDDIR>>/ax25'
> Making all in axgetput
> make[4]: Entering directory '/<<PKGBUILDDIR>>/ax25/axgetput'
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -D_GNU_SOURCE 
> -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
> -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o axgetput.o axgetput.c
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -D_GNU_SOURCE 
> -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
> -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o util.o util.c
> axgetput.c: In function ‘eol_convention’:
> axgetput.c:115:17: warning: ignoring return value of ‘write’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>   115 |                 write(fderr, BIN_ON, strlen(BIN_ON));
>       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> axgetput.c:118:17: warning: ignoring return value of ‘write’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>   118 |                 write(fderr, BIN_OFF, strlen(BIN_OFF));
>       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -D_GNU_SOURCE 
> -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
> -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o proto_bin.o proto_bin.c
> proto_bin.c: In function ‘bput’:
> proto_bin.c:174:25: warning: ignoring return value of ‘write’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>   174 |                         write(fderr, "\r#NO#\r", 6);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> proto_bin.c:186:9: warning: ignoring return value of ‘write’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>   186 |         write(fderr, "\r#OK#\r", 6);
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> proto_bin.c:276:9: warning: ignoring return value of ‘write’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>   276 |         write(fderr, "\r#ABORT#\r", 9);
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> proto_bin.c: In function ‘bget’:
> proto_bin.c:513:9: warning: ignoring return value of ‘write’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>   513 |         write(fderr, "\r#ABORT#\r", 9);
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> proto_bin.c: In function ‘bput’:
> proto_bin.c:167:72: warning: ‘%s’ directive writing up to 4096 bytes 
> into a region of size 2027 [-Wformat-overflow=]
>   167 |                                 sprintf(err_msg, "error: cannot 
> unlink %s (%s)\n", filename, strerror(errno));
>       |                                                                 
>        ^~          ~~~~~~~~
> In file included from /usr/include/stdio.h:970,
>                  from includes.h:10,
>                  from proto_bin.c:7:
> In function ‘sprintf’,
>     inlined from ‘bput’ at proto_bin.c:167:5:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: 
> ‘__builtin___sprintf_chk’ output 26 or more bytes (assuming 4122) into 
> a destination of size 2048
>    30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    31 |                                   __glibc_objsize (__s), __fmt,
>       |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    32 |                                   __va_arg_pack ());
>       |                                   ~~~~~~~~~~~~~~~~~
> proto_bin.c: In function ‘bput’:
> proto_bin.c:173:62: warning: ‘%s’ directive writing up to 4096 bytes 
> into a region of size 2029 [-Wformat-overflow=]
>   173 |                         sprintf(err_msg, "error: cannot open %s 
> (%s)\n", filename, strerror(errno));
>       |                                                              ^~ 
>          ~~~~~~~~
> In function ‘sprintf’,
>     inlined from ‘bput’ at proto_bin.c:173:4:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: 
> ‘__builtin___sprintf_chk’ output 24 or more bytes (assuming 4120) into 
> a destination of size 2048
>    30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    31 |                                   __glibc_objsize (__s), __fmt,
>       |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    32 |                                   __va_arg_pack ());
>       |                                   ~~~~~~~~~~~~~~~~~
> proto_bin.c: In function ‘bget’:
> proto_bin.c:334:62: warning: ‘%s’ directive writing up to 4096 bytes 
> into a region of size 2029 [-Wformat-overflow=]
>   334 |                         sprintf(err_msg, "error: cannot open %s 
> (%s)\n", filename, strerror(errno));
>       |                                                              ^~ 
>          ~~~~~~~~
> In function ‘sprintf’,
>     inlined from ‘bget’ at proto_bin.c:334:4:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: 
> ‘__builtin___sprintf_chk’ output 24 or more bytes (assuming 4120) into 
> a destination of size 2048
>    30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    31 |                                   __glibc_objsize (__s), __fmt,
>       |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    32 |                                   __va_arg_pack ());
>       |                                   ~~~~~~~~~~~~~~~~~
> x86_64-linux-gnu-gcc  -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall  -Wl,-z,relro -Wl,-z,now -o axgetput axgetput.o 
> util.o proto_bin.o  
> make[4]: Leaving directory '/<<PKGBUILDDIR>>/ax25/axgetput'
> make[4]: Entering directory '/<<PKGBUILDDIR>>/ax25'
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE 
> -DAX25_SYSCONFDIR=\""/etc/ax25/"\" 
> -DAX25_LOCALSTATEDIR=\""/var/ax25/"\" -Wdate-time -D_FORTIFY_SOURCE=2  
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o mheard.o mheard.c
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE 
> -DAX25_SYSCONFDIR=\""/etc/ax25/"\" 
> -DAX25_LOCALSTATEDIR=\""/var/ax25/"\" -Wdate-time -D_FORTIFY_SOURCE=2  
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o ax25d.o ax25d.c
> ax25d.c: In function ‘main’:
> ax25d.c:1291:57: warning: ignoring return value of ‘write’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>  1291 |                                                         
> write(new, buf, strlen(buf));
>       |                                                         
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE 
> -DAX25_SYSCONFDIR=\""/etc/ax25/"\" 
> -DAX25_LOCALSTATEDIR=\""/var/ax25/"\" -Wdate-time -D_FORTIFY_SOURCE=2  
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o axctl.o axctl.c
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE 
> -DAX25_SYSCONFDIR=\""/etc/ax25/"\" 
> -DAX25_LOCALSTATEDIR=\""/var/ax25/"\" -Wdate-time -D_FORTIFY_SOURCE=2  
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o axparms.o axparms.c
> axparms.c: In function ‘associate’:
> axparms.c:194:17: warning: ignoring return value of ‘fgets’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>   194 |                 fgets(buffer, 80, fp);
>       |                 ^~~~~~~~~~~~~~~~~~~~~
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE 
> -DAX25_SYSCONFDIR=\""/etc/ax25/"\" 
> -DAX25_LOCALSTATEDIR=\""/var/ax25/"\" -Wdate-time -D_FORTIFY_SOURCE=2  
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o axspawn.o axspawn.c
> axspawn.c: In function ‘main’:
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE 
> -DAX25_SYSCONFDIR=\""/etc/ax25/"\" 
> -DAX25_LOCALSTATEDIR=\""/var/ax25/"\" -Wdate-time -D_FORTIFY_SOURCE=2  
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o access.o access.c
> axspawn.c:1762:25: warning: ignoring return value of ‘chown’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>  1762 |                         chown(ptyslave, pw->pw_uid, 0);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> axspawn.c:1771:33: warning: ignoring return value of ‘chdir’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>  1771 |                                 chdir(p);
>       |                                 ^~~~~~~~
> axspawn.c:1939:49: warning: ignoring return value of ‘write’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>  1939 |                                                 write(fdmaster, 
> buf, cnt);
>       |                                                 
> ^~~~~~~~~~~~~~~~~~~~~~~~~
> axspawn.c: In function ‘read_config’:
> axspawn.c:1276:17: warning: ignoring return value of ‘fgets’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>  1276 |                 fgets(buf, sizeof(buf), fp);
>       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> axspawn.c: In function ‘new_user’:
> axspawn.c:1081:9: warning: ignoring return value of ‘chdir’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>  1081 |         chdir("/");
>       |         ^~~~~~~~~~
> axspawn.c:1119:41: warning: ignoring return value of ‘chown’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>  1119 |                                         chown(p, uid, user_gid);
>       |                                         ^~~~~~~~~~~~~~~~~~~~~~~
> axspawn.c:1238:25: warning: ignoring return value of ‘write’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>  1238 |                         write(fd_b, "\n", 1);
>       |                         ^~~~~~~~~~~~~~~~~~~~
> axspawn.c:1254:25: warning: ignoring return value of ‘write’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>  1254 |                         write(fd_b, &buf, cnt);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~
> axspawn.c:1258:17: warning: ignoring return value of ‘chown’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>  1258 |                 chown(USERPROFILE, uid, user_gid);
>       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> axspawn.c: In function ‘get_assoc’:
> axspawn.c:959:9: warning: ignoring return value of ‘fgets’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>   959 |         fgets(buf, sizeof(buf)-1, fp);
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> access.c: In function ‘write_example_passwd’:
> access.c:211:9: warning: ignoring return value of ‘fchown’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>   211 |         fchown(i, (pwlocation == SYSTEMPW ? 0 : pw->pw_uid), 
> (pwlocation == SYSTEMPW ? 0 : pw->pw_gid));
>       |         
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> access.c: In function ‘read_pwd’:
> access.c:322:93: warning: ‘%s’ directive writing up to 4096 bytes into 
> a region of size 2010 [-Wformat-overflow=]
>   322 |                                         sprintf(buf, "Failed to 
> find a suitable password in %s\r", pwfile);
>       |                                                                 
>                             ^~     ~~~~~~
> In file included from /usr/include/stdio.h:970,
>                  from access.c:1:
> In function ‘sprintf’,
>     inlined from ‘read_pwd’ at access.c:322:6:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: 
> ‘__builtin___sprintf_chk’ output between 40 and 4136 bytes into a 
> destination of size 2048
>    30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    31 |                                   __glibc_objsize (__s), __fmt,
>       |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    32 |                                   __va_arg_pack ());
>       |                                   ~~~~~~~~~~~~~~~~~
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE 
> -DAX25_SYSCONFDIR=\""/etc/ax25/"\" 
> -DAX25_LOCALSTATEDIR=\""/var/ax25/"\" -Wdate-time -D_FORTIFY_SOURCE=2  
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o md5.o md5.c
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE 
> -DAX25_SYSCONFDIR=\""/etc/ax25/"\" 
> -DAX25_LOCALSTATEDIR=\""/var/ax25/"\" -Wdate-time -D_FORTIFY_SOURCE=2  
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o axwrapper.o axwrapper.c
> axwrapper.c: In function ‘main’:
> axwrapper.c:202:25: warning: ignoring return value of ‘write’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>   202 |                         write(pipe_in[1], buf, len);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE 
> -DAX25_SYSCONFDIR=\""/etc/ax25/"\" 
> -DAX25_LOCALSTATEDIR=\""/var/ax25/"\" -Wdate-time -D_FORTIFY_SOURCE=2  
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o beacon.o beacon.c
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE 
> -DAX25_SYSCONFDIR=\""/etc/ax25/"\" 
> -DAX25_LOCALSTATEDIR=\""/var/ax25/"\" -Wdate-time -D_FORTIFY_SOURCE=2  
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o bpqparms.o bpqparms.c
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE 
> -DAX25_SYSCONFDIR=\""/etc/ax25/"\" 
> -DAX25_LOCALSTATEDIR=\""/var/ax25/"\" -Wdate-time -D_FORTIFY_SOURCE=2  
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o mheardd.o mheardd.c
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE 
> -DAX25_SYSCONFDIR=\""/etc/ax25/"\" 
> -DAX25_LOCALSTATEDIR=\""/var/ax25/"\" -Wdate-time -D_FORTIFY_SOURCE=2  
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o rxecho.o rxecho.c
> sed -e 's|[@]SBINDIR[@]|/usr/sbin|' -e 's|[@]SYSCONFDIR[@]|/etc|' < 
> ./ax25d.conf.in > ax25d.conf.tmp
> mv ax25d.conf.tmp ax25d.conf
> x86_64-linux-gnu-gcc  -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall  -Wl,-z,relro -Wl,-z,now -o mheard mheard.o 
> -lax25 
> x86_64-linux-gnu-gcc  -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall  -Wl,-z,relro -Wl,-z,now -o ax25d ax25d.o -lax25 
> x86_64-linux-gnu-gcc  -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall  -Wl,-z,relro -Wl,-z,now -o axctl axctl.o -lax25 
> x86_64-linux-gnu-gcc  -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall  -Wl,-z,relro -Wl,-z,now -o axparms axparms.o 
> -lax25 
> x86_64-linux-gnu-gcc  -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall  -Wl,-z,relro -Wl,-z,now -o axspawn axspawn.o 
> access.o md5.o -lax25 -lutil 
> x86_64-linux-gnu-gcc  -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall  -Wl,-z,relro -Wl,-z,now -o axwrapper axwrapper.o 
> -lax25 
> x86_64-linux-gnu-gcc  -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall  -Wl,-z,relro -Wl,-z,now -o beacon beacon.o 
> -lax25 
> x86_64-linux-gnu-gcc  -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall  -Wl,-z,relro -Wl,-z,now -o bpqparms bpqparms.o 
> -lax25 
> x86_64-linux-gnu-gcc  -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall  -Wl,-z,relro -Wl,-z,now -o mheardd mheardd.o 
> -lax25 
> x86_64-linux-gnu-gcc  -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall  -Wl,-z,relro -Wl,-z,now -o rxecho rxecho.o 
> -lax25 
> make[4]: Leaving directory '/<<PKGBUILDDIR>>/ax25'
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/ax25'
> Making all in hdlcutil
> make[3]: Entering directory '/<<PKGBUILDDIR>>/hdlcutil'
> Making all in .
> make[4]: Entering directory '/<<PKGBUILDDIR>>/hdlcutil'
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE 
> -DAX25_SYSCONFDIR=\""/etc/ax25/"\" 
> -DAX25_LOCALSTATEDIR=\""/var/ax25/"\" -Wdate-time -D_FORTIFY_SOURCE=2  
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o sethdlc.o sethdlc.c
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE 
> -DAX25_SYSCONFDIR=\""/etc/ax25/"\" 
> -DAX25_LOCALSTATEDIR=\""/var/ax25/"\" -Wdate-time -D_FORTIFY_SOURCE=2  
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security 
> -fcf-protection -Wall -c -o hdrvcomm.o hdrvcomm.c
> In file included from sethdlc.c:47:
> hdrvcomm.h:40:10: fatal error: linux/hdlcdrv.h: No such file or 
> directory
>    40 | #include <linux/hdlcdrv.h>
>       |          ^~~~~~~~~~~~~~~~~
> compilation terminated.
> make[4]: *** [Makefile:476: sethdlc.o] Error 1
> make[4]: *** Waiting for unfinished jobs....
> In file included from hdrvcomm.c:49:
> hdrvcomm.h:40:10: fatal error: linux/hdlcdrv.h: No such file or 
> directory
>    40 | #include <linux/hdlcdrv.h>
>       |          ^~~~~~~~~~~~~~~~~
> compilation terminated.
> make[4]: *** [Makefile:476: hdrvcomm.o] Error 1
> make[4]: Leaving directory '/<<PKGBUILDDIR>>/hdlcutil'
> make[3]: *** [Makefile:578: all-recursive] Error 1
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/hdlcutil'
> make[2]: *** [Makefile:389: all-recursive] Error 1
> make[2]: Leaving directory '/<<PKGBUILDDIR>>'
> make[1]: *** [Makefile:328: all] Error 2
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_build: error: make -j2 returned exit code 2
> make: *** [debian/rules:7: binary] Error 25
> dpkg-buildpackage: error: debian/rules binary subprocess failed with 
> exit status 2
> --------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.