Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 385575

Summary: net-dialup/freeradius-2.1.11 requires 'threads' useflag to be enabled when USE="frxp" is used
Product: Gentoo Linux Reporter: Andreas Schürch <nativemad>
Component: New packagesAssignee: Alin Năstac (RETIRED) <mrness>
Status: RESOLVED FIXED    
Severity: normal CC: net-dialup
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 339389    

Description Andreas Schürch gentoo-dev 2011-10-04 06:01:53 UTC
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.
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2011-10-06 22:55:19 UTC
Ok the ebuild needs to be ported to use EAPI4 and REQUIRED_USE="frxp? ( threads )"
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2011-10-06 22:57:44 UTC
Fixed