Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#63334 - [libidn] tests are failing

Attached to Project: Arch Linux
Opened by Andreas Baumann (andreas_baumann) - Wednesday, 31 July 2019, 19:12 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 31 January 2022, 17:06 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Ronald van Haren (pressh)
Christian Hesse (eworm)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



../build-aux/test-driver: line 107: 18964 Aborted (core dumped) "$@" > $log_file 2>&1
FAIL: test-thread_create

Additional info:
* package version(s): 1.35-1

Steps to reproduce:

asp export libidn
cd libidn
   log.txt (67.4 KiB)
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Monday, 31 January 2022, 17:06 GMT
Reason for closing:  Fixed
Comment by Andreas Baumann (andreas_baumann) - Friday, 02 August 2019, 14:41 GMT
This sounds promising:

Something about a test function symbol which runs away due to removing unused symbols.

/etc/makepkg.conf contains:


So I have to find a way to counteract that for the test programs.
Comment by Andreas Baumann (andreas_baumann) - Friday, 02 August 2019, 14:45 GMT
The mentioned Ubuntu patch is for 1.33, so it's already integrated for 1.35, sad. Wrong track..
Comment by Andreas Baumann (andreas_baumann) - Friday, 02 August 2019, 14:53 GMT
Removing --as-needed from LDFLAGS in makepkg.conf in the build chroot yields better results (nothing segfaults or fails).

My workaroud for now is setting in PKGBUILD:

build() {
cd ${pkgname}-${pkgver}
export LDFLAGS="-Wl,-O1,--sort-common,-z,relro,-z,now"
./configure --prefix=/usr

check() {
cd ${pkgname}-${pkgver}
export LDFLAGS="-Wl,-O1,--sort-common,-z,relro,-z,now"
make check

This is just a workaround, the root cause is the tests in libidn
playing funny tricks with the linker..
Comment by Andreas Baumann (andreas_baumann) - Saturday, 14 September 2019, 11:54 GMT
Same problem exists for libunistring.
Comment by Andreas Baumann (andreas_baumann) - Friday, 12 February 2021, 18:03 GMT
Builds and tests run fine now for me. Can be closed.
Same goes for libunistring.