Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19324 - Bind 9.2.2 fails on 2.4.20-gentoo-r2: kernel version errors and capset errors.
Summary: Bind 9.2.2 fails on 2.4.20-gentoo-r2: kernel version errors and capset errors.
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 51577
  Show dependency tree
 
Reported: 2003-04-14 17:06 UTC by Lisa Seelye (RETIRED)
Modified: 2004-05-20 23:37 UTC (History)
2 users (show)

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


Attachments
Log of the emerge that results in faulty installation (broken.log.txt.gz,32.16 KB, application/x-gzip)
2003-04-16 22:19 UTC, Lisa Seelye (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lisa Seelye (RETIRED) gentoo-dev 2003-04-14 17:06:22 UTC
I compiled Bind 9.2.2 on 2.4.19-gentoo-r10 and at first and it worked, however, 
an update to 2.4.20-gentoo-r2 resulted in:




* Starting chrooted named...


named: -u not supported on Linux kernels older than 2.3.99-pre3 or 2.2.18 when 
using threads                    [ !! ]




I was able to fix this by commenting out the threads option in the ebuild for 
Bind.  Then:




The /etc/init.d/named start script would successfully run ( [ok] ), but the 
following two lines were in /var/log/daemon.log


Apr 13 22:42:08 www named[31793]: capset failed: Operation not permitted


Apr 13 22:42:08 www named[31793]: exiting (due to early fatal error)




/etc/init.d/named zap.  To fix this I had to change the econf line(s) in the 
ebuild to:




        econf   --sysconfdir=/etc/bind \


                --localstatedir=/var \


                --disable-threads \


                --disable-linux-caps \


                --with-libtool \


                ${myconf}




Bind now works


Reproducible: Always
Steps to Reproduce:
1. Compile 2.4.20-gentoo-r2


2. Compile Bind 9.2.2


3. Try to run bind



Actual Results:  
See details


Expected Results:  
Should've worked :]
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-04-14 18:15:28 UTC
how about reemerge bind ?
it works fine on my system with the config you reported
Comment 2 Lisa Seelye (RETIRED) gentoo-dev 2003-04-14 19:43:27 UTC
I recompiled Bind many times as well as the kernel.  The only thing that worked was the fix I posted here.
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-04-14 19:45:41 UTC
did you try etc-update ? maybe the init script changed
Comment 4 Lisa Seelye (RETIRED) gentoo-dev 2003-04-15 12:55:58 UTC
The last time I did etc-update my system's configuration files were radically changed.  Regardless, why would the init script change if its the SAME version used on 2.4.19 and 2.4.20? Especially when not changing the default ebuild.
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-04-16 07:24:20 UTC
try reemerge
Comment 6 Lisa Seelye (RETIRED) gentoo-dev 2003-04-16 22:12:41 UTC
 net-dns/bind
    selected: none
   protected: 9.2.2
     omitted: none

>>> clean: No packages selected for removal.

>>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages ...


>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.
 * IMPORTANT: 50 config files in /etc need updating.
 * IMPORTANT: 7 config files in /usr/X11R6/lib/X11/xkb need updating.
 * Type emerge --help config to learn how to update config files.

root@www pri # /etc/init.d/named stop
 * Stopping named...                                                                                                                                    [ ok ]
root@www pri # /etc/init.d/named start
 * Starting chrooted named...
named: capset failed: Operation not permitted                                                                                                           [ !! ]

root@www pri # /etc/init.d/named start
 * Starting chrooted named...
named: capset failed: Operation not permitted                                                                                                           [ !! ]

Haven't I said that I tried to reemerge already??
Comment 7 Lisa Seelye (RETIRED) gentoo-dev 2003-04-16 22:19:06 UTC
Created attachment 10771 [details]
Log of the emerge that results in faulty installation
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2003-04-17 05:36:59 UTC
IMPORTANT: 50 config files in /etc need updating.
 * IMPORTANT: 7 config files in /usr/X11R6/lib/X11/xkb need updating.


please run #etc-update
Comment 9 Lisa Seelye (RETIRED) gentoo-dev 2003-04-17 11:37:42 UTC
etc-update has a nasty habit of overwriting important files, such as /etc/fstab, /etc/apache/conf/apache.conf, etc.  Here's the diff between the new and what I have.

root@www init.d # diff ._cfg0000_named named
66c66
<
\ No newline at end of file
---
>



~~


root@www conf.d # diff ._cfg0000_named named
7c7
< CPU="1"
---
> CPU="2"
13c13
< # CHROOT="/chroot/dns"
---
> CHROOT="/chroot/dns"

Comment 10 Martin Holzer (RETIRED) gentoo-dev 2003-04-17 14:43:21 UTC
does it work now ?
Comment 11 Lisa Seelye (RETIRED) gentoo-dev 2003-04-17 15:51:00 UTC
I have it working by --disable threads and --disable-linux caps... which is the whole point of the bug report.  Nothing else worked.
Comment 12 Martin Holzer (RETIRED) gentoo-dev 2003-04-17 15:55:11 UTC
fact is, it's working here, AS-IS

kernel-guys maybe you could solve this
Comment 13 Jay Pfeifer (RETIRED) gentoo-dev 2003-05-04 14:25:11 UTC
well, this cannot be reproduced.

but, i do know this is an issue if you use lids and do not disable thread and caps you will have the issues you list.

are you patching the kernel with stuff from http://www.lids.org/ ???

Thanks,

Jay
Comment 14 Jay Pfeifer (RETIRED) gentoo-dev 2003-05-05 23:22:22 UTC
well, this does not seem to be a reproducible issue and no further information has been 
provided. 
 
can't fix without more info. 
 
Jay 
Comment 15 Martin Holzer (RETIRED) gentoo-dev 2003-05-22 08:45:10 UTC
if you'd like have a look to bug #21255 
Comment 16 Martin Holzer (RETIRED) gentoo-dev 2003-09-25 14:24:28 UTC
db issue
Comment 17 Mudrii 2004-04-26 01:04:46 UTC
I try the same thing to solve the problem and have
 
gentoo root # ebuild econf   --sysconfdir=/etc/bind --localstatedir=/var --disable-threads --disable-linux-caps --with-libtool ${myconf}
!!! Name error in : missing a version or name part.
!!! Error: PF is null ''; exiting.
gentoo root # /etc/init.d/named start
 * Starting named...
named: capset failed: Operation not permitted                             [ !! ]

gentoo root # etc-update
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)
Comment 18 Mudrii 2004-04-26 21:05:26 UTC
Problem was fis just tipe in console:

gentoo conf.d #/etc/init.d/named start
named: capset failed: Operation not permitted
gentoo / #modprobe capability
gentoo / #/etc/init.d/named start
 * Starting named...                                                                           [ ok ]
gentoo / #


In my case was fix ;)