Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62485 - emerge apcupsd-3.10.13: /usr/sbin/apcupsd: No such file or directory
Summary: emerge apcupsd-3.10.13: /usr/sbin/apcupsd: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Michael Imhof (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-01 02:45 UTC by norbert kamenicky
Modified: 2004-10-10 04:10 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 norbert kamenicky 2004-09-01 02:45:43 UTC
Today I updated apcupsd-3.10.10 to apcupsd-3.10.13
and tried to restart apcups daemon ...

it failed with this message:

# /etc/init.d/apcupsd start
 * Starting APC UPS daemon...
start-stop-daemon: stat /usr/sbin/apcupsd: No such file or directory


I checked package contents:

# qpkg -l apcupsd |grep sbin
/usr/sbin

Now it's clear, that for some reason daemon itself
is missing ...

Reproducible: Always
Steps to Reproduce:
1.emerge apcupsd
2./etc/init.d/apcupsd start
3.

Actual Results:  
/usr/sbin/apcupsd: No such file or directory

Expected Results:  
* Starting APC UPS daemon...   [ok]

# emerge info
Portage 2.0.50-r10 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.4.26-gentoo-r9)
=================================================================
System uname: 2.4.26-gentoo-r9 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -msse -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail
/var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -msse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apache2 apm arts avi cdr crypt cups encode esd foomaticdb gdbm gif gpm
gtk gtk2 imap imlib java jpeg kde libg++ libwww mad maildir mikmod motif mozilla
mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt
quicktime readline sasl sdl slang snmp spell ssl svga tcltk tcpd tetex truetype
x86 xml2 xmms xv zlib"
Comment 1 norbert kamenicky 2004-09-01 03:05:21 UTC
It seems to be a "snmp" flag problem, since emerge -snmp apcupsd
works correct.
It's interesting, that compilation with "snmp" flag produces
tons of errors (see bottom), but emerge ends OK.

 
/usr/include/ucd-snmp/asn1.h:7:2: #error "Please update your headers or configure using --enable-ucd-
snmp-compatibility"
In file included from snmp/snmp.h:62,
                 from drivers.c:74:
/usr/include/ucd-snmp/snmp.h:7:2: #error "Please update your headers or configure using --enable-ucd-
snmp-compatibility"
In file included from snmp/snmp.h:63,
                 from drivers.c:74:
/usr/include/ucd-snmp/snmp_api.h:7:2: #error "Please update your headers or configure using --enable-
ucd-snmp-compatibility"
In file included from snmp/snmp.h:64,
                 from drivers.c:74:
/usr/include/ucd-snmp/snmp_client.h:7:2: #error "Please update your headers or configure using --enab
le-ucd-snmp-compatibility"
gmake[3]: *** [real-depend] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/apcupsd-3.10.10-r2/work/apcupsd-3.10.10/src/drivers'
gmake[2]: *** [depend] Error 2

... etc. about 1000 other errors
Comment 2 James Slater 2004-09-22 08:10:45 UTC
As far as I'm aware, those error messages only appear in the net-snmp package, and not the ucd-snmp one which that version of the apcupsd ebuild depends on. Do you have net-snmp or ucd-snmp installed?

3.10.15 depends on virtual/snmp so installing that version should fix the problem regardless?
Comment 3 norbert kamenicky 2004-10-10 04:10:43 UTC
Ok, I checked it and found I had both snmp packages installed.
(ucd-snmp was pulled by emerge apcupsd - see errors in Comments #1.)
I put ~x86 to my keywords file and updated it to version 10.10.15-r1.
Yes, it compiles now with snmp too and is happy with virtual snmp package.
Thanks.