#1143343 nfstrace: FTBFS: /usr/include/json-c/linkhash.h:448:36: error: 'lh_entry* lh_entry_prev(const lh_entry*)' defined but not used [-Werror=unused-function]

Package:
src:nfstrace
Source:
src:nfstrace
Submitter:
Santiago Vila
Date:
2026-09-02 11:07:01 UTC
Severity:
normal
Tags:
#1143343#5
Date:
2026-08-01 22:36:49 UTC
From:
To:
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:nfstrace, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
[ 86%] Building CXX object analyzers/src/json/CMakeFiles/json.dir/json_tcp_service.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/analyzers/src/json && /usr/bin/x86_64-linux-gnu-g++ -Djson_EXPORTS -I/<<PKGBUILDDIR>>/src -I/usr/include/tirpc -I/usr/include/json-c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++14 -pedantic -Wall -Werror -Wextra -Wno-invalid-offsetof -Wno-error=address-of-packed-member -fPIC -fvisibility=hidden -fPIC -MD -MT analyzers/src/json/CMakeFiles/json.dir/json_tcp_service.cpp.o -MF CMakeFiles/json.dir/json_tcp_service.cpp.o.d -o CMakeFiles/json.dir/json_tcp_service.cpp.o -c /<<PKGBUILDDIR>>/analyzers/src/json/json_tcp_service.cpp
In file included from /usr/include/json-c/json.h:33,
                 from /<<PKGBUILDDIR>>/analyzers/src/json/json_tcp_service.cpp:24:
/usr/include/json-c/linkhash.h:448:36: error: ‘lh_entry* lh_entry_prev(const lh_entry*)’ defined but not used [-Werror=unused-function]
  448 | static _LH_INLINE struct lh_entry *lh_entry_prev(const struct lh_entry *e)
      |                                    ^~~~~~~~~~~~~
/usr/include/json-c/linkhash.h:438:36: error: ‘lh_entry* lh_entry_next(const lh_entry*)’ defined but not used [-Werror=unused-function]
  438 | static _LH_INLINE struct lh_entry *lh_entry_next(const struct lh_entry *e)
      |                                    ^~~~~~~~~~~~~
/usr/include/json-c/linkhash.h:428:24: error: ‘void lh_entry_set_val(lh_entry*, void*)’ defined but not used [-Werror=unused-function]
  428 | static _LH_INLINE void lh_entry_set_val(struct lh_entry *e, void *newval)
      |                        ^~~~~~~~~~~~~~~~
/usr/include/json-c/linkhash.h:419:25: error: ‘void* lh_entry_v(const lh_entry*)’ defined but not used [-Werror=unused-function]
  419 | static _LH_INLINE void *lh_entry_v(const struct lh_entry *e)
      |                         ^~~~~~~~~~
/usr/include/json-c/linkhash.h:408:23: error: ‘int lh_entry_k_is_constant(const lh_entry*)’ defined but not used [-Werror=unused-function]
  408 | static _LH_INLINE int lh_entry_k_is_constant(const struct lh_entry *e)
      |                       ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/json-c/linkhash.h:398:25: error: ‘void* lh_entry_k(const lh_entry*)’ defined but not used [-Werror=unused-function]
  398 | static _LH_INLINE void *lh_entry_k(const struct lh_entry *e)
      |                         ^~~~~~~~~~
/usr/include/json-c/linkhash.h:376:33: error: ‘long unsigned int lh_get_hash(const lh_table*, const void*)’ defined but not used [-Werror=unused-function]
  376 | static _LH_INLINE unsigned long lh_get_hash(const struct lh_table *t, const void *k)
      |                                 ^~~~~~~~~~~
/usr/include/json-c/linkhash.h:360:36: error: ‘lh_entry* lh_table_head(const lh_table*)’ defined but not used [-Werror=unused-function]
  360 | static _LH_INLINE struct lh_entry *lh_table_head(const lh_table *t)
      |                                    ^~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [analyzers/src/json/CMakeFiles/json.dir/build.make:138: analyzers/src/json/CMakeFiles/json.dir/json_tcp_service.cpp.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:398: analyzers/src/json/CMakeFiles/json.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 88%] Building CXX object CMakeFiles/nfstrace.dir/src/protocols/nfs4/nfs4_utils.cpp.o
/usr/bin/x86_64-linux-gnu-g++  -I/<<PKGBUILDDIR>>/src -I/usr/include/tirpc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++14 -pedantic -Wall -Werror -Wextra -Wno-invalid-offsetof -Wno-error=address-of-packed-member -fPIC -fvisibility=hidden -MD -MT CMakeFiles/nfstrace.dir/src/protocols/nfs4/nfs4_utils.cpp.o -MF CMakeFiles/nfstrace.dir/src/protocols/nfs4/nfs4_utils.cpp.o.d -o CMakeFiles/nfstrace.dir/src/protocols/nfs4/nfs4_utils.cpp.o -c /<<PKGBUILDDIR>>/src/protocols/nfs4/nfs4_utils.cpp
[ 89%] Building CXX object CMakeFiles/nfstrace.dir/src/utils/dynamic_load.cpp.o
/usr/bin/x86_64-linux-gnu-g++  -I/<<PKGBUILDDIR>>/src -I/usr/include/tirpc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++14 -pedantic -Wall -Werror -Wextra -Wno-invalid-offsetof -Wno-error=address-of-packed-member -fPIC -fvisibility=hidden -MD -MT CMakeFiles/nfstrace.dir/src/utils/dynamic_load.cpp.o -MF CMakeFiles/nfstrace.dir/src/utils/dynamic_load.cpp.o.d -o CMakeFiles/nfstrace.dir/src/utils/dynamic_load.cpp.o -c /<<PKGBUILDDIR>>/src/utils/dynamic_load.cpp
[ 91%] Building CXX object CMakeFiles/nfstrace.dir/src/utils/log.cpp.o
/usr/bin/x86_64-linux-gnu-g++  -I/<<PKGBUILDDIR>>/src -I/usr/include/tirpc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++14 -pedantic -Wall -Werror -Wextra -Wno-invalid-offsetof -Wno-error=address-of-packed-member -fPIC -fvisibility=hidden -MD -MT CMakeFiles/nfstrace.dir/src/utils/log.cpp.o -MF CMakeFiles/nfstrace.dir/src/utils/log.cpp.o.d -o CMakeFiles/nfstrace.dir/src/utils/log.cpp.o -c /<<PKGBUILDDIR>>/src/utils/log.cpp
[ 92%] Building CXX object CMakeFiles/nfstrace.dir/src/utils/out.cpp.o
/usr/bin/x86_64-linux-gnu-g++  -I/<<PKGBUILDDIR>>/src -I/usr/include/tirpc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++14 -pedantic -Wall -Werror -Wextra -Wno-invalid-offsetof -Wno-error=address-of-packed-member -fPIC -fvisibility=hidden -MD -MT CMakeFiles/nfstrace.dir/src/utils/out.cpp.o -MF CMakeFiles/nfstrace.dir/src/utils/out.cpp.o.d -o CMakeFiles/nfstrace.dir/src/utils/out.cpp.o -c /<<PKGBUILDDIR>>/src/utils/out.cpp
[ 94%] Building CXX object CMakeFiles/nfstrace.dir/src/utils/sessions.cpp.o
/usr/bin/x86_64-linux-gnu-g++  -I/<<PKGBUILDDIR>>/src -I/usr/include/tirpc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++14 -pedantic -Wall -Werror -Wextra -Wno-invalid-offsetof -Wno-error=address-of-packed-member -fPIC -fvisibility=hidden -MD -MT CMakeFiles/nfstrace.dir/src/utils/sessions.cpp.o -MF CMakeFiles/nfstrace.dir/src/utils/sessions.cpp.o.d -o CMakeFiles/nfstrace.dir/src/utils/sessions.cpp.o -c /<<PKGBUILDDIR>>/src/utils/sessions.cpp
[ 95%] Linking CXX executable nfstrace
/usr/bin/cmake -E cmake_link_script CMakeFiles/nfstrace.dir/link.txt --verbose=1
/usr/bin/x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PK [too-long-redacted] 64-linux-gnu/libpcap.so -ltirpc
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 95%] Built target nfstrace
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:169: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j2 INSTALL="install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1143343#10
Date:
2026-08-31 10:44:48 UTC
From:
To:
Dear maintainer,

I've prepared an NMU for nfstrace (versioned as 0.4.3.2+git20200805+b220d04-4.2)
and uploaded it to DELAYED/2. Please feel free to tell me if I should
cancel it.

cu
Adrian

#1143343#19
Date:
2026-09-02 11:04:55 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
nfstrace, 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 1143343@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adrian Bunk <bunk@debian.org> (supplier of updated nfstrace 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: Mon, 31 Aug 2026 13:41:31 +0300
Source: nfstrace
Architecture: source
Version: 0.4.3.2+git20200805+b220d04-4.2
Distribution: unstable
Urgency: medium
Maintainer: Andrej Shadura <andrewsh@debian.org>
Changed-By: Adrian Bunk <bunk@debian.org>
Closes: 1143343
Changes:
 nfstrace (0.4.3.2+git20200805+b220d04-4.2) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Don't build with -Werror. (Closes: #1143343)
Checksums-Sha1:
 30d6ed27e989508e8054c49325110bc4575e7253 2452 nfstrace_0.4.3.2+git20200805+b220d04-4.2.dsc
 066d322f96c8658620d4a54e084d667a41bf5b6b 7024 nfstrace_0.4.3.2+git20200805+b220d04-4.2.debian.tar.xz
Checksums-Sha256:
 e01239b567ef68a483b16c5871555e115a82bbb587cbc757c885203695bdfc07 2452 nfstrace_0.4.3.2+git20200805+b220d04-4.2.dsc
 04d781d156c9afb2fbddfe93074015c47178bb14fe6c4a2a41812c0d8a460588 7024 nfstrace_0.4.3.2+git20200805+b220d04-4.2.debian.tar.xz
Files:
 f316d3aa922fee75d1c8099dc9ab0c9e 2452 net optional nfstrace_0.4.3.2+git20200805+b220d04-4.2.dsc
 0459e574c26361e85a6eb716e7b36707 7024 net optional nfstrace_0.4.3.2+git20200805+b220d04-4.2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmqVWvIACgkQiNJCh6LY
mLGBtQ/9EYySu7pT0R8rJ+rthDMoIBN2R3uf1ITHUuADMzdJtTfHLXkiI4qtQnoz
OTRk425aN5uKxjzu79ABUGHulRfJoLsC+eeKtodq+gWsrfhGFVhbtHDhSA3S/lj4
6YxrFf0noHsFGeDdVkGoUVh74XJ1nRTSW3a88kI/yO2KZ0DE4w9rKnj5WAsnlZ6v
9BqwYweC4TMAJhE6JjdIIekYcNGRx+Wj2kTYL4lxaQtq5QFF5oMSMayPZKE2k+e4
r8n+H7dBxkXgatTTD+pTdI2wlnROxPI8pod836Kxkdg/NKDlD8lFHwyYulU9+3ZZ
NlIoeZaJg+ffDZEhFgwXo9QRojWiQH8twHlApFlfNM8DOpH3wAiQcLlrG8bt5UlR
f4em1Xin/EnQEgWIkQXay/f7hjyHyyYxZ9zigHmfXeocYBTneDEsbgnOSz3vCKh9
yNfY0cpXBqmj7PzvFE7HJGrtJsHGATJxNbKgJhi1Vvn3pZ+MU90D6AiBoSKQTXRU
E2tokpEA88sJIAPHm6ertDmJscIcJ5UIDQl+UwXXBLA0ynbNTTa4MINdFkJ21rxf
sH3Xq8mVN58BlZUnQqKmtlhU6IHAA81EKhIz/sAVTxKwvFXk2p8j15fdypkdgsQd
qaBE3u9UFYxzJhJXZVteLZ6W0u5TTyNkeIlT5F5hY59vLClK4zE=
=Dwy0
-----END PGP SIGNATURE-----