Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36867 - apcupsd build fails building yet ebuild continues
Summary: apcupsd build fails building yet ebuild continues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Normal minor (vote)
Assignee: Michael Imhof (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-30 21:11 UTC by Blu3
Modified: 2004-01-14 08:07 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 Blu3 2003-12-30 21:11:50 UTC
compile fails badly with snmp (why does everything with snmp fail badly...)

# emerge apcupsd
[...]
powernet-mib-mgr.c:7484: error: dereferencing pointer to incomplete type
powernet-mib-mgr.c:7485: error: dereferencing pointer to incomplete type
powernet-mib-mgr.c:7485: error: dereferencing pointer to incomplete type
powernet-mib-mgr.c:7486: error: dereferencing pointer to incomplete type
powernet-mib-mgr.c: At top level:
powernet-mib-mgr.c:7500: warning: `struct snmp_session' declared inside parameter list
powernet-mib-mgr.c:7501: error: conflicting types for `powernet_mib_mgr_get_mfiletransferControl'
powernet-mib.h:4140: error: previous declaration of `powernet_mib_mgr_get_mfiletransferControl'
powernet-mib-mgr.c: In function `powernet_mib_mgr_get_mfiletransferControl':
powernet-mib-mgr.c:7507: error: `SNMP_MSG_GETNEXT' undeclared (first use in this function)
powernet-mib-mgr.c:7507: warning: assignment makes pointer from integer without a cast
powernet-mib-mgr.c:7508: error: `oid' undeclared (first use in this function)
powernet-mib-mgr.c:7510: warning: assignment makes pointer from integer without a cast
powernet-mib-mgr.c:7516: error: `STAT_SUCCESS' undeclared (first use in this function)
powernet-mib-mgr.c:7525: error: dereferencing pointer to incomplete type
[...]
>>> sys-apps/apcupsd-3.10.6 merged.
[...]

# ls -l /usr/sbin/apcupsd
-rwx------    1 root     root         100K May  2  2003 /usr/sbin/apcupsd

 date
Wed Dec 31 00:09:28 EST 2003

# tail -n 200 /var/log/messages |grep ": apcupsd.*startup"
Dec 31 00:06:03 Huntington-Beach apcupsd[6949]: apcupsd 3.10.5 (04 February 2003) gentoo startup succeeded
Comment 1 Blu3 2003-12-30 21:38:17 UTC
gmake[3]: Entering directory `/var/tmp/portage/apcupsd-3.10.6/work/apcupsd-3.10.6/src/drivers'
In file included from snmp/snmp.h:61,
                 from drivers.c:74:
/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 --enable-ucd-snmp-compatibility"
gmake[3]: *** [real-depend] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/apcupsd-3.10.6/work/apcupsd-3.10.6/src/drivers'
gmake[2]: *** [depend] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/apcupsd-3.10.6/work/apcupsd-3.10.6/src/drivers'


# cat /usr/include/ucd-snmp/asn1.h
#ifdef UCD_COMPATIBLE

#include <net-snmp/library/asn1.h>

#else

#error "Please update your headers or configure using --enable-ucd-snmp-compatibility"

#endif
Comment 2 Blu3 2003-12-30 21:42:30 UTC
# emerge info
Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.0)
=================================================================
System uname: 2.6.0 i686 Unknown CPU Type
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 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="3dnow X X509 acpi acpi4linux alsa apache2 arts artswrappersuid avi bluetooth bonobo cdr crypt cups dga dnd dvd encode esd ethereal ffmpeg fftw flash flexresp foomaticdb freetype fs gd gdbm gif glut gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml imagemagick imap imlib imlib2 jack jack-caps jack-tmpfs java javascript jpeg kde lcms libg++ libgda libwww lirc ltsp mad mbox mcal md5sum mdb memlimit mikmod mmx mng mpeg mpi msn ncurses nls nptl nvidia oav offensive oggvorbis openal opengl oss parse-clocks pcap pda pdflib perl php plotutils png pnp postgres ppds python quicktime readline samba scanner sdl slang slp snmp socks5 sox speex spell sse ssl t1lib tcltk tiff truetype type1 usb v4l x86 xine xinerama xml2 xmms xosd xv xvid yahoo zlib zvbi"
Comment 3 Blu3 2003-12-31 08:05:58 UTC
>>> Completed installing into /var/tmp/portage/apcupsd-3.10.8/image/

>>> Merging sys-apps/apcupsd-3.10.8 to /
--- /etc/
--- /etc/init.d/
>>> /etc/init.d/halt
>>> /etc/init.d/apcupsd
--- /etc/apache2/
--- /etc/apache2/conf/
--- /etc/apache2/conf/modules.d/
>>> /etc/apache2/conf/modules.d/60_apcupsd.conf
--- /etc/apcupsd/
>>> /etc/apcupsd/masterconnect
>>> /etc/apcupsd/._cfg0000_apcupsd.conf
>>> /etc/apcupsd/changeme
>>> /etc/apcupsd/powerout -> onbattery
>>> /etc/apcupsd/commok
>>> /etc/apcupsd/mastertimeout
>>> /etc/apcupsd/safe.apccontrol
>>> /etc/apcupsd/onbattery
>>> /etc/apcupsd/._cfg0000_apccontrol
>>> /etc/apcupsd/commfailure
>>> /etc/apcupsd/mainsback
--- /var/
--- /var/www/
>>> /var/www/apcupsd/
--- /usr/
--- /usr/man/
--- /usr/man/man8/
>>> /usr/man/man8/apcupsd.8
--- /usr/sbin/

>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                        [ ok ]
>>> sys-apps/apcupsd-3.10.8 merged.

No new binary installed.  Oops?

:)
Comment 4 Blu3 2003-12-31 08:08:56 UTC
Disabling SNMP in USE yields the binaries.  Looks like this makefile pkg needs fixed and the net-snmp package needs fixed for those headers.

>>> /usr/sbin/apcaccess
>>> /usr/sbin/powerflute
>>> /usr/sbin/apcnisd
>>> /usr/sbin/apctest
>>> /usr/sbin/apcupsd
Comment 5 Michael Imhof (RETIRED) gentoo-dev 2004-01-02 16:58:08 UTC
I checked in an ebuild for 3.10.8 in which this problem should have been fixed.
Please test it and report back if it works for you.
Comment 6 Michael Imhof (RETIRED) gentoo-dev 2004-01-07 16:06:51 UTC
Could you give me some feedback?
Comment 7 Michael Imhof (RETIRED) gentoo-dev 2004-01-14 08:07:08 UTC
Closing as i got no response.