#1150646 tftp-hpa: FTBFS on armhf: error: conflicting types for ‘off_t’; have ‘long int’

Package:
src:tftp-hpa
Source:
src:tftp-hpa
Submitter:
Sebastian Ramacher
Date:
2026-10-13 09:37:03 UTC
Severity:
normal
Tags:
#1150646#5
Date:
2026-10-11 17:16:44 UTC
From:
To:
Source: tftp-hpa
Version: 7.2-3
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: debian-arm@lists.debian.org, sramacher@debian.org
User: debian-arm@lists.debian.org
Usertags: armhf

Dear maintainer,

tftp-hpa does not build on armhf:

arm-linux-gnueabihf-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tftp-hpa-7.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -g3 -ggdb -fwrapv -fno-strict-aliasing -ftrivial-auto-var-init=zero -U__STRICT_ANSI__ -fno-common -pthread -ffunction-sections -fdata-sections -W -Wall -Wpedantic -Wbad-function-cast -Wc99-c11-compat -Wc11-c23-compat -Wc23-c2y-compat -Wflex-array-member-not-at-end -Wframe-larger-than=768 -Wheader-guard -Winline -Wjump-misses-init -Wlogical-op -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstack-usage=16384 -Wstrict-prototypes -Wtrigraphs -Wtrivial-auto-var-init -Wundef -Wvla -Wwrite-strings -MMD -MF pollset.o.dep -I.. -c pollset.c
In file included from tftpsubs.h:12,
                 from tftp-xfer.h:10,
                 from tftp-xfer.c:7:
../config.h:314:14: error: conflicting types for ‘off_t’; have ‘long int’
  314 | typedef long off_t;
      |              ^~~~~
In file included from /usr/include/arm-linux-gnueabihf/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from ../config.h:36:
/usr/include/unistd.h:245:19: note: previous declaration of ‘off_t’ with type ‘off_t’ {aka ‘long long int’}
  245 | typedef __off64_t off_t;
      |                   ^~~~~
In file included from xalloc.h:17,
                 from xasprintf.c:7:
../config.h:314:14: error: conflicting types for ‘off_t’; have ‘long int’
  314 | typedef long off_t;
      |              ^~~~~
In file included from /usr/include/arm-linux-gnueabihf/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from ../config.h:36:
/usr/include/unistd.h:245:19: note: previous declaration of ‘off_t’ with type ‘off_t’ {aka ‘long long int’}
  245 | typedef __off64_t off_t;
      |                   ^~~~~
In file included from progname.c:7:
../config.h:314:14: error: conflicting types for ‘off_t’; have ‘long int’
  314 | typedef long off_t;
      |              ^~~~~
In file included from signal.c:13:
../config.h:314:14: error: conflicting types for ‘off_t’; have ‘long int’
  314 | typedef long off_t;
      |              ^~~~~
In file included from /usr/include/arm-linux-gnueabihf/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from ../config.h:36:
/usr/include/unistd.h:245:19: note: previous declaration of ‘off_t’ with type ‘off_t’ {aka ‘long long int’}
  245 | typedef __off64_t off_t;
      |                   ^~~~~
In file included from /usr/include/arm-linux-gnueabihf/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from ../config.h:36:
/usr/include/unistd.h:245:19: note: previous declaration of ‘off_t’ with type ‘off_t’ {aka ‘long long int’}
  245 | typedef __off64_t off_t;
      |                   ^~~~~
In file included from xalloc.h:17,
                 from xalloc.c:14:
../config.h:314:14: error: conflicting types for ‘off_t’; have ‘long int’
  314 | typedef long off_t;
      |              ^~~~~
In file included from /usr/include/arm-linux-gnueabihf/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from ../config.h:36:
/usr/include/unistd.h:245:19: note: previous declaration of ‘off_t’ with type ‘off_t’ {aka ‘long long int’}
  245 | typedef __off64_t off_t;
      |                   ^~~~~
In file included from tftp-io.c:7:
../config.h:314:14: error: conflicting types for ‘off_t’; have ‘long int’
  314 | typedef long off_t;
      |              ^~~~~
In file included from /usr/include/arm-linux-gnueabihf/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from ../config.h:36:
/usr/include/unistd.h:245:19: note: previous declaration of ‘off_t’ with type ‘off_t’ {aka ‘long long int’}
  245 | typedef __off64_t off_t;
      |                   ^~~~~
make[2]: *** [../MRULES:9: xasprintf.o] Error 1

See
https://buildd.debian.org/status/fetch.php?pkg=tftp-hpa&arch=armhf&ver=7.2-3&stamp=1790534322&raw=0
for details.

Cheers

#1150646#14
Date:
2026-10-13 09:34:56 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
tftp-hpa, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1150646@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Hofstaedtler <zeha@debian.org> (supplier of updated tftp-hpa package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 13 Oct 2026 11:09:51 +0200
Source: tftp-hpa
Architecture: source
Version: 7.2+20261013-1
Distribution: unstable
Urgency: medium
Maintainer: Chris Hofstaedtler <zeha@debian.org>
Changed-By: Chris Hofstaedtler <zeha@debian.org>
Closes: 1150646 1150647
Changes:
 tftp-hpa (7.2+20261013-1) unstable; urgency=medium
 .
   Update to latest upstream snapshot.
 .
   [ H. Peter Anvin ]
   * Fix autoconf test for off_t (Closes: #1150646)
   * tftp: fix type of r_timeout (Closes: #1150647)
Checksums-Sha1:
 666685b1f40c0582b71284c07094c17bd3c83f51 1534 tftp-hpa_7.2+20261013-1.dsc
 93279d12a50d04caa6effb3b2a1a5283c0c4ef7a 130237 tftp-hpa_7.2+20261013.orig.tar.gz
 5bed71ee00cb89aa765244f7eaa14d3e12b06ede 23708 tftp-hpa_7.2+20261013-1.debian.tar.xz
Checksums-Sha256:
 cdbf9342c97da0eed0b369b4bbca9c95154e2a00fedda468e4b8997580ea6fa7 1534 tftp-hpa_7.2+20261013-1.dsc
 1e12f70a0346a0aee4bf654a807fa9d214424eb16c8d864cffc7012c0783288e 130237 tftp-hpa_7.2+20261013.orig.tar.gz
 c2741b126998d146abe8f03ea6470f1dba0b14a508febe72029b94d32fad04ba 23708 tftp-hpa_7.2+20261013-1.debian.tar.xz
Files:
 13650c43f8fa2c0aa124f6c7cf6b63f5 1534 net optional tftp-hpa_7.2+20261013-1.dsc
 d5328b0040756505b357c680f264d2f9 130237 net optional tftp-hpa_7.2+20261013.orig.tar.gz
 407893ac5b6f0e29d7cec56de567ce0b 23708 net optional tftp-hpa_7.2+20261013-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQSAaWBt6yRrKLK4+bRHi2NEKKNrcgUCas32lAAKCRBHi2NEKKNr
cnivAQDQFZyazudYb6Lr2biWKvRZ3kjpPpxqDWJvZmGkwlJGIwD+M0Qo5a3Pei8/
SkwXrhvW2Hc7pnfj5OEKmRLzd08MNwE=
=rHws
-----END PGP SIGNATURE-----