Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89358 - named won't start with USE='threads -caps'
Summary: named won't start with USE='threads -caps'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: BIND Maintainers (DISABLED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-16 16:02 UTC by Tristan Horn
Modified: 2007-02-11 15:14 UTC (History)
0 users

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 Tristan Horn 2005-04-16 16:02:22 UTC
named won't start when compiled with USE=threads:

 * Starting named ...
named: -u with Linux threads not supported: no capabilities support or capabilities disabled at build time                                                [ !! ]



Reproducible: Always
Steps to Reproduce:
(as root)
1. USE='berkdb -bind-mysql -caps -dlz -doc -idn ipv6 -ldap mysql -odbc postgres -selinux ssl threads' emerge bind
2. /etc/init.d/named start
Actual Results:  
 * Starting named ...
named: -u with Linux threads not supported: no capabilities support or
capabilities disabled at build time                                            
   [ !! ]

Expected Results:  
 * Starting named ...                                                     [ ok ]

Removing "-u named" from /etc/init.d/named allows named to start.
Comment 1 Tristan Horn 2005-04-16 16:13:41 UTC
Neglected to mention that this is bind-9.2.5-r1 (which is ~x86).
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-04-16 16:17:03 UTC
Just a suggestion - try with USE="caps" 
Comment 3 Tristan Horn 2005-04-16 16:38:04 UTC
Thanks!  That did the trick.
Comment 4 Konstantin Arkhipov (RETIRED) gentoo-dev 2005-04-17 03:52:47 UTC
so closing as invalid. :-)
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-04-17 04:44:16 UTC
Konstantin, should not it be impossible to specify USE="threads -caps" if bind does not work then? I cannot verify that threads require caps (no SMP machine handy now). Or maybe some ewarn that this combination of flags might not work. 
Comment 6 Konstantin Arkhipov (RETIRED) gentoo-dev 2005-04-17 04:47:37 UTC
Jakub: yes, threads will require caps on smp machine.
you're right, i'm reopening this bug
i'm going to drop "caps" use flag and automatically enable capabilities when "threads" is used.
Comment 7 Konstantin Arkhipov (RETIRED) gentoo-dev 2005-04-17 05:33:02 UTC
fixed in 9.2.5-r2 and 9.3.1-r1
Comment 8 Simon Arlott 2007-02-11 15:14:30 UTC
This should be reopened, your fix is just wrong.
It should be possible to compile with --enable-linux-caps --disable-threads.