I got the same failure on x86 like Thomas Kahle who reported it in bug 339389 with attachment https://bugs.gentoo.org/attachment.cgi?id=288081 net-dialup/freeradius-2.1.11 fails to build with USE="frxp -threads" gmake[6]: Entering directory `/var/tmp/portage/net-dialup/freeradius-2.1.11/work/freeradius-server-2.1.11/src/modules/rlm_smsotp' /bin/sh /var/tmp/portage/net-dialup/freeradius-2.1.11/work/freeradius-server-2.1.11/libtool --mode=compile i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -D_GNU_SOURCE -DNDEBUG -I/var/tmp/portage/net-dialup/freeradius-2.1.11/work/freeradius-server-2.1.11/src -c rlm_smsotp.c libtool: compile: i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -D_GNU_SOURCE -DNDEBUG -I/var/tmp/portage/net-dialup/freeradius-2.1.11/work/freeradius-server-2.1.11/src -c rlm_smsotp.c -fPIC -DPIC -o .libs/rlm_smsotp.o rlm_smsotp.c:242: error: 'PTHREAD_MUTEX_INITIALIZER' undeclared here (not in a function) rlm_smsotp.c: In function '_smsotp_pthread_mutex_init': rlm_smsotp.c:411: warning: implicit declaration of function 'pthread_mutex_init' rlm_smsotp.c: In function '_smsotp_pthread_mutex_lock': rlm_smsotp.c:422: warning: implicit declaration of function 'pthread_mutex_lock' rlm_smsotp.c: In function '_smsotp_pthread_mutex_trylock': rlm_smsotp.c:433: warning: implicit declaration of function 'pthread_mutex_trylock' rlm_smsotp.c: In function '_smsotp_pthread_mutex_unlock': rlm_smsotp.c:447: warning: implicit declaration of function 'pthread_mutex_unlock' This doesn't happen with freeradius-2.0.5, so i made the blocker.
Ok the ebuild needs to be ported to use EAPI4 and REQUIRED_USE="frxp? ( threads )"
Fixed