#1135493 xraylib: FTBFS: file.c:17:(.text+0x9): undefined reference to `_strdup'

Package:
src:xraylib
Source:
src:xraylib
Submitter:
Santiago Vila
Date:
2026-06-15 23:09:01 UTC
Severity:
normal
Tags:
#1135493#5
Date:
2026-05-01 23:15:37 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/202605/

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:xraylib, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --without autoreconf --buildsystem pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:385: dh_auto_clean --buildsystem=cmake
I: pybuild base:385: dh_auto_clean --buildsystem=cmake
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --without autoreconf --buildsystem pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:385: dh_auto_configure --buildsystem=meson --builddirectory=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build -- --native-file=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/pybuild-meson-native.ini -Dpython-bindings=enabled -Dpython-numpy-bindings=enabled -Dpython=python3.14
	cd .pybuild/cpython3_3.14/build && LC_ALL=C.UTF-8 meson setup ../../.. --wrap-mode=nodownload --buildtype=plain --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=lib/x86_64-linux-gnu -Dpython.bytecompile=-1 --native-file=/<<BUILDDIR>>/xraylib-4.2.1\+dfsg/.pybuild/cpython3_3.14/build/pybuild-meson-native.ini -Dpython-bindings=enabled -Dpython-numpy-bindings=enabled -Dpython=python3.14
The Meson build system
Version: 1.11.1
Source dir: /<<PKGBUILDDIR>>

[... snipped ...]


        #ifdef __has_include
         #if !__has_include("complex.h")
          #error "Header 'complex.h' could not be found"
         #endif
        #else
         #include <complex.h>
        #endif
-----------
Command line: `cc /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/meson-private/tmpecn1fcsc/testfile.c -E -P -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -P -O0 -U_FORTIFY_SOURCE` -> 0
Has header "complex.h" : YES
Configuring config.h using configuration
Running compile:
Working directory:  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/meson-private/tmp7zxsnv77
Code:
int main(void) { return 0; }
extern int i;
int i;
extern int i;
int i;
extern int i;
int i;
extern int i;
int i;
extern int i;
int i;
extern int i;
int i;
extern int i;
int i;
int main(void) { return 0; }
-----------
Command line: `cc /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/meson-private/tmppdg1wr_o/testfile.c -o /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/meson-private/tmppdg1wr_o/output.exe -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -U_FORTIFY_SOURCE -Wl,--fatal-warnings -Wl,--output-def,/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/src/libxrl-11.def -Wl,-z,relro -Wl,-z,now` -> 1
stderr:
/usr/bin/x86_64-linux-gnu-ld.bfd: unrecognized option '--output-def'
/usr/bin/x86_64-linux-gnu-ld.bfd: use the --help option for usage information
collect2: error: ld returned 1 exit status
-----------
Compiler for C supports link arguments -Wl,--output-def,/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/src/libxrl-11.def: NO
Pkg-config binary missing from cross or native file, or env var undefined.
Trying a default Pkg-config fallback at pkg-config
Found pkg-config: YES (/usr/bin/pkg-config) 2.5.1
Adding test "atomiclevelwidth"
Adding test "atomicweight"
Adding test "auger"
Adding test "compoundparser"
Adding test "comptonprofiles"
Adding test "coskron"
Adding test "cross_sections"
Adding test "crystal_diffraction"
Adding test "cs_barns"
Adding test "cs_cp"
Adding test "cs_line"
Adding test "densities"
Adding test "edges"
Adding test "fi"
Adding test "fii"
Adding test "fluor_lines"
Adding test "fluor_yield"
Adding test "jump"
Adding test "kissel_pe"
Adding test "polarized"
Adding test "radrate"
Adding test "refractive_indices"
Adding test "scattering"
Adding test "nist-compounds"
Adding test "radionuclides"
Adding test "error"
Adding test "version"
-----------
Detecting compiler via: `c++ --version` -> 0
stdout:
c++ (Debian 15.2.0-17) 15.2.0
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------
Running command: -cpp -x c++ -E -dM -
-----
-----------
Detecting linker via: `c++ -Wl,--version -Wl,-z,relro -Wl,-z,now -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2` -> 0
stdout:
GNU ld (GNU Binutils for Debian) 2.46
Copyright (C) 2026 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
-----------
stderr:
collect2 version 15.2.0
/usr/bin/ld -plugin /usr/libexec/gcc/x86_64-linux-gnu/15/lib [too-long-redacted] ./../../x86_64-linux-gnu/crtn.o
-----------
Sanity check compiler command line: c++ -D_FILE_OFFSET_BITS=64 -o sanity_check_for_cpp.exe sanity_check_for_cpp.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -Wl,-z,relro -Wl,-z,now
Sanity check compile stdout:
----- Sanity check compile stderr:
--- stderr --- Running compile: Working directory: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/meson-private/tmpnrp8hc5d Code: extern int i; int i; extern int i; int i; extern int i; int i; extern int i; int i; extern int i; int i; ../../../python/meson.build:51:25: ERROR: python.extension_module keyword argument 'install_tag' was of type array[str] but should have been one of: str, NoneType dh_auto_configure: error: cd .pybuild/cpython3_3.14/build && LC_ALL=C.UTF-8 meson setup ../../.. --wrap-mode=nodownload --buildtype=plain --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=lib/x86_64-linux-gnu -Dpython.bytecompile=-1 --native-file=/<<BUILDDIR>>/xraylib-4.2.1\+dfsg/.pybuild/cpython3_3.14/build/pybuild-meson-native.ini -Dpython-bindings=enabled -Dpython-numpy-bindings=enabled -Dpython=python3.14 returned exit code 1 E: pybuild pybuild:485: configure: plugin meson failed with: exit code=25: dh_auto_configure --buildsystem=meson --builddirectory=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build -- --native-file=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/pybuild-meson-native.ini -Dpython-bindings=enabled -Dpython-numpy-bindings=enabled -Dpython=python{version} dh_auto_configure: error: pybuild --configure -i python{version} -p "3.14 3.13" --parallel=2 returned exit code 13 make: *** [debian/rules:20: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------
#1135493#10
Date:
2026-06-15 12:29:53 UTC
From:
To:
Dear maintainer,

I've prepared an NMU for xraylib (versioned as 4.2.1+dfsg-2.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I should
cancel it.

cu
Adrian

#1135493#19
Date:
2026-06-15 12:34:33 UTC
From:
To:
No problem, you can also upload directly with no delay.

cheers

Fred

#1135493#24
Date:
2026-06-15 22:09:48 UTC
From:
To:
I'll make a team upload from that.
#1135493#29
Date:
2026-06-15 23:06:10 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
xraylib, 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 1135493@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Vila <sanvila@debian.org> (supplier of updated xraylib 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, 15 Jun 2026 23:30:00 +0200
Source: xraylib
Architecture: source
Version: 4.2.1+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian PaN Maintainers <debian-pan-maintainers@alioth-lists.debian.net>
Changed-By: Santiago Vila <sanvila@debian.org>
Closes: 1135493
Changes:
 xraylib (4.2.1+dfsg-3) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Adrian Bunk ]
   * Fix FTBFS with meson 1.11.1. Closes: #1135493.
 .
   [ Santiago Vila ]
   * Update standards-version.
   * Fine-tune salsa-ci.yml.
Checksums-Sha1:
 bfb2024df0fb8df028b59cf57b8d97bb3bd2eae4 2017 xraylib_4.2.1+dfsg-3.dsc
 58694b6215f57f699e16f55eebc92a78bf09e49c 7500 xraylib_4.2.1+dfsg-3.debian.tar.xz
 55cb89274a761b535f0d055ae706d7d40c0c88cc 7138 xraylib_4.2.1+dfsg-3_source.buildinfo
Checksums-Sha256:
 44da8356f1248105143ee5bd430a2415050f60a829c1257598767a1eb68d9bb9 2017 xraylib_4.2.1+dfsg-3.dsc
 8cb887198fdad9221405b39b097bcf70be762046a1c53f6b5c24baa2168a1c64 7500 xraylib_4.2.1+dfsg-3.debian.tar.xz
 1c46f34440bbbb42ab304ff8690823e47390f45a15d5ea29867af7673b68448d 7138 xraylib_4.2.1+dfsg-3_source.buildinfo
Files:
 34d98855a354fcf6d6ec2940c4f37637 2017 libs optional xraylib_4.2.1+dfsg-3.dsc
 36ac59160c698ea6b55f7772925bc9e8 7500 libs optional xraylib_4.2.1+dfsg-3.debian.tar.xz
 c2390cd4c55d75dab6a2efde64e4a838 7138 libs optional xraylib_4.2.1+dfsg-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmowej4ACgkQQc5/C58b
izLv+AgAiCmr9jIYAvZztGGrtPRdREB/xawMBwu2OllT6QZbJE7vVtvwgpKUilGh
d8+K2zqSrdZ8x3Jvnt5kg8ZLUgezbV0tCgcgzXNtsotum0BaJu3lt33IcgPQSGiV
o6cVcBGmsJ/uBSIj92J91set9lx7xB/mjgBjrc5BQ4LMnuuCKxhOz4msCir1s4V2
nicJxNGkuL4yrBiAeWEgTzXG+7fg+1h68WVrQ6f7J9KcDqYcZBce9r0hyVI+13pm
w0eUTtQSs5fQgw6NfPbm9eV1/jg05zagVpkn00JMvTTK2tiCK4d+o2/yA/Ewt2sK
UHnWVidVgb8SAEzCFlck6D4o9gwiSQ==
=R02N
-----END PGP SIGNATURE-----