Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23328 - "Could not get dependency" starting named
Summary: "Could not get dependency" starting named
Status: RESOLVED DUPLICATE of bug 22959
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-23 09:19 UTC by Joe Eversole
Modified: 2011-10-30 22:21 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 Joe Eversole 2003-06-23 09:19:58 UTC
I emerged bind into my system. I configured it accordingly. When starting named
using the init script, I get "Could not get dependency info for "named"!" and
the service starts. When I try to stop the service, I get !!'s (and that's
covered in Bug 22959.

Reproducible: Always
Steps to Reproduce:
1. emerge bind
2. configure bind
3. execute "/etc/init.d/named start"


Actual Results:  
See error message about dependencies as above

Expected Results:  
Started without any error messages.

eversolej var # emerge info
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
GENTOO_MIRRORS=" ftp://ftp.ussg.iu.edu/pub/linux/gentoo
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/
ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt cups encode gif gpm jpeg libg++ mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa
gdbm berkdb slang readline arts bonobo svga tcltk java guile X sdl tcpd pam
libwww ssl perl python esd imlib gnome gtk qt kde motif opengl mozilla oggvorbis
imap id3lib gtk2"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
====================================

eversolej var # cat /etc/init.d/named
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-x86/net-dns/bind/files/named.rc6,v 1.10
2003/06/01 05:22:40 lostlogic Exp $
 
opts="start stop reload restart"
 
depend() {
        need net
        use logger
        provide dns
}
 
checkconfig() {
        if [ ! -f ${CHROOT}/etc/bind/named.conf ] ; then
                eerror "No ${CHROOT}/etc/bind/named.conf file exists!"
        fi
 
        # In case someone doesn't have $CPU set from /etc/conf.d/named
        if [ ! $CPU ] ; then
                CPU=1
        fi
 
        if [ $CHROOT -a -d $CHROOT ] ; then
                PIDFILE="${CHROOT}/var/run/named.pid"
                KEY="${CHROOT}/etc/bind/rndc.key"
        else
                PIDFILE="/var/run/named.pid"
                KEY="/etc/bind/rndc.key"
        fi
}
 
start() {
        ebegin "Starting ${CHROOT:+chrooted }named"
        checkconfig || return 1
        start-stop-daemon --start --quiet --exec /usr/sbin/named -- -u named -n
$CPU $OPTIONS ${CHROOT:+-t $CHROOT}
        eend $?
}
 
stop() {
        ebegin "Stopping named"
        checkconfig || return 2
        start-stop-daemon --stop --quiet --pidfile $PIDFILE
        eend $?
}
 
reload() {
        checkconfig || return 3
        if [ ! -f $PIDFILE ] ; then
                /etc/init.d/named start &>/dev/null
                exit
        fi
 
        if [ -f $KEY ] ; then
                ebegin "Reloading named.conf and zone files"
                rndc -k $KEY reload &>/dev/null
                eend $?
        else /etc/init.d/named restart &>/dev/null
        fi
}
 
restart() {
        svc_stop
        svc_start
}
Comment 1 Matteo Sasso 2003-06-23 10:00:02 UTC
I have this problem on virtually EVERY script I have got!!! 
I could not track the source of the message (I tried grepping for the msg in /etc, /bin 
and /sbin). 
Please somebody fix this soon!! :( 
Comment 2 Matteo Sasso 2003-06-23 13:49:26 UTC
Ok, problem solved. In my case, my gawk installation got really f**k'd up and 
"/lib/rcscripts/filefuncs.so" got deleted somehow. Possibly by the very same 
baselayout ebuild, since gawk worked fine till I emerged it. 
Re-emerging gawk was the workaround. All's well that ends well. 
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-06-24 12:48:23 UTC

*** This bug has been marked as a duplicate of 22959 ***