Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385575 - net-dialup/freeradius-2.1.11 requires 'threads' useflag to be enabled when USE="frxp" is used
Summary: net-dialup/freeradius-2.1.11 requires 'threads' useflag to be enabled when US...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: CVE-2010-3696
  Show dependency tree
 
Reported: 2011-10-04 06:01 UTC by Andreas Schürch
Modified: 2011-10-06 22:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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