[Debian-med-packaging] Bug#1075584: tree-puzzle: ftbfs with failure to link sprng symbols
Étienne Mollier
emollier at debian.org
Wed Aug 7 12:30:08 BST 2024
Control: tag -1 confirmed
Since the bug submission, it seems another issue cropped up.
From what I can parse of the new build output, something off
went of with the sprng symbols. Relevant part of the build:
Use Debian packaged libsprng2.
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wl,-z,relro -Wl,-z,now sgamma.o sml1.o sml2.o smlparam.o smodel1.o smodel2.o spuzzle1.o spuzzle2.o spstep.o sutil.o sconsensus.o streesort.o streetest.o -lsprng -lm -o puzzle
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_mod'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_cmp'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_powm'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_abs'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_init_set_str'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_set'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_get_ui'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpq_init'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_sub_ui'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_mul'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_pow_ui'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpq_set_den'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_mul_ui'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_set_str'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_add_ui'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpq_set_num'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_init_set_ui'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpq_get_den'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_fdiv_q_2exp'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_neg'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_sub'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_init'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_clear'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_fdiv_q'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `__mpn_add_n'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpq_get_num'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_cmp_ui'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `__mpn_sub_n'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_init_set'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libsprng.so: undefined reference to `mpz_add'
collect2: error: ld returned 1 exit status
As far as I can tell, this seems to be a problem within sprng,
because tree-puzzle does not make direct use of the referenced
symbols.
--
.''`. Étienne Mollier <emollier at debian.org>
: :' : pgp: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
`. `' sent from /dev/pts/0, please excuse my verbosity
`- on air: Beardfish - Sleeping in Traffic
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20240807/bc1cdc8c/attachment.sig>
More information about the Debian-med-packaging
mailing list