https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104363
--- Comment #2 from Mathieu Malaterre <mathieu.malaterre at gmail dot com> --- I've downgraded binutils to version from bullseye, and I am getting the exact same symptoms: ``` libtool: link: ( cd ".libs" && rm -f "libkcapi.la" && ln -s "../libkcapi.la" "libkcapi.la" ) /bin/bash ./libtool --tag=CC --mode=link hppa-linux-gnu-gcc -g -O2 -fpie -fPIE -DPIE -Wl,-z,relro,-z,now -pie -o bin/kcapi-rng apps/bin_kcapi_rng-kcapi-rng.o apps/bin_kcapi_rng-app-internal.o libkcapi.la libtool: link: hppa-linux-gnu-gcc -g -O2 -fpie -fPIE -DPIE -Wl,-z -Wl,relro -Wl,-z -Wl,now -pie -o bin/.libs/kcapi-rng apps/bin_kcapi_rng-kcapi-rng.o apps/bin_kcapi_rng-app-internal.o ./.libs/libkcapi.so /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: apps/bin_kcapi_rng-kcapi-rng.o: in function `main': /tmp/libkcapi-1.3.1/apps/kcapi-rng.c:302: undefined reference to `kcapi_rng_generate' /usr/lib/gcc-cross/hppa-linux-gnu/11/../../../../hppa-linux-gnu/bin/ld: /tmp/libkcapi-1.3.1/apps/kcapi-rng.c:328: undefined reference to `kcapi_memset_secure' ``` % apt-cache policy binutils-hppa-linux-gnu binutils-hppa-linux-gnu: Installed: 2.35.2-2 Candidate: 2.37.90.20220130-2 Version table: 2.37.90.20220130-2 500 500 http://deb.debian.org/debian sid/main amd64 Packages *** 2.35.2-2 100 100 /var/lib/dpkg/status