Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Problem emerging apcupsd-3.14.8-r1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
firefox25
n00b
n00b


Joined: 22 Aug 2012
Posts: 2

PostPosted: Wed Aug 22, 2012 1:08 pm    Post subject: [SOLVED] Problem emerging apcupsd-3.14.8-r1 Reply with quote

Hi,
during my last emerge world the compilation of sys-power/apcupsd-3.14.8-r1 failed. I already tried using the testing version ~3.14.10-r1, but to no avail.

As I am fairly new to Gentoo, I thought I could ask here if anyone knows this problem or can help me solve it.

Here are the relevant outputs:

emerge --info '=sys-power/apcupsd-3.14.8-r1'
Code:

Portage 2.1.11.9 (default/linux/amd64/10.0/server, gcc-4.5.4, glibc-2.15-r2, 3.3.8-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.3.8-gentoo-x86_64-Intel-R-_Core-TM-_i5-3550_CPU_@_3.30GHz-with-gentoo-2.1
Timestamp of tree: Wed, 22 Aug 2012 12:00:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo gbin sunrise sabayon
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://de-mirror.org/gentoo/ http://de-mirror.org/gentoo/ rsync://de-mirror.org/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gbin /var/lib/layman/sunrise /var/lib/layman/sabayon"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib cron crypt cups cxx dri fortran gdbm git gpm iconv ipv6 logrotate mmx modules mudflap multilib ncurses nls nptl openmp pam pcre perl pppd readline session snmp sqlite sse sse2 ssl subversion tcpd truetype unicode wide-unicode xml zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-power/apcupsd-3.14.8-r1 was built with the following:
USE="cgi (multilib) nls snmp usb -gnome"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing"


emerge -pqv '=sys-power/apcupsd-3.14.8-r1'
Code:
[ebuild   R   ] sys-power/apcupsd-3.14.8-r1  USE="cgi nls snmp usb -gnome"


build log in /var/tmp/portage/sys-power/apcupsd-3.14.8-r1/temp/build.log
Code:

 * Package:    sys-power/apcupsd-3.14.8-r1
 * Repository: gentoo
 * Maintainer: mattm@gentoo.org base-system@gentoo.org
 * USE:        amd64 cgi elibc_glibc kernel_linux multilib nls snmp usb userland_GNU
 * FEATURES:   sandbox

 * This profile is merely a convenience for people who require a more
 * minimal profile, yet are unable to use hardened due to restrictions in
 * the software being used on the server. If you seek a secure
 * production server profile, please check the Hardened project
 * (http://hardened.gentoo.org)

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.3.8-gentoo/build
 * Found sources for kernel version:
 *     3.3.8-gentoo
 * Checking for suitable kernel configuration options...                                [ ok ]
>>> Unpacking source...
>>> Unpacking apcupsd-3.14.8.tar.gz to /var/tmp/portage/sys-power/apcupsd-3.14.8-r1/work
>>> Source unpacked in /var/tmp/portage/sys-power/apcupsd-3.14.8-r1/work
>>> Preparing source in /var/tmp/portage/sys-power/apcupsd-3.14.8-r1/work/apcupsd-3.14.8 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-power/apcupsd-3.14.8-r1/work/apcupsd-3.14.8 ...
 * econf: updating apcupsd-3.14.8/autoconf/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating apcupsd-3.14.8/autoconf/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --sbindir=/sbin --sysconfdir=/etc/apcupsd --with-pwrfail-dir=/etc/apcupsd --with-lock-dir=/var/lock --with-pid-dir=/var/run --with-log-dir=/var/log --with-nis-port=3551 --enable-net --enable-pcnet --with-distname=gentoo --enable-net-snmp --disable-gapcmon --enable-cgi --with-cgi-bin=/usr/libexec/apcupsd/cgi-bin --with-upstype=usb --with-upscable=usb --enable-usb --with-dev= APCUPSD_MAIL=/bin/mail
checking for true... /bin/true
checking for false... /bin/false
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for library containing strerror... none required
checking for shutdown... /sbin/shutdown
checking for mail... /bin/mail
checking for wall... /usr/bin/wall
checking for sh... /bin/sh
checking for GNU make... make
checking for ranlib... /usr/bin/ranlib
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for echo... /bin/echo
checking for ln... /bin/ln
checking for sed... /bin/sed
checking for ar... /usr/bin/ar
checking for mv... /bin/mv
checking for rst2html... no
checking for rst2pdf... no
checking for abort... yes
checking for fork... yes
checking for calloc... yes
checking for getpid... yes
checking for ioctl... yes
checking for kill... yes
checking for rewind... yes
checking for select... yes
checking for setsid... yes
checking for signal... yes
checking for strerror... yes
checking for strncmp... yes
checking for strncpy... yes
checking for tcgetattr... yes
checking for vfprintf... yes
checking for setpgrp... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for library containing nanosleep... none required
checking for syslog... yes
checking for strftime... yes
checking whether setpgrp takes no argument... yes
checking for library containing socket... none required
checking for library containing gethostname... none required
checking for library containing gethostbyname... none required
checking for library containing gethostbyname_r... none required
checking for socklen_t... yes
checking for library containing inet_addr... none required
checking for strchr... yes
using libc's strchr
checking for strstr... yes
checking for strcasecmp... yes
checking for memmove... yes
checking for getopt_long... yes
checking for inet_pton... yes
checking for localtime_r... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/types.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking arpa/nameser.h usability... yes
checking arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking whether stat file-mode macros are broken... no
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking return type of signal handlers... void
checking for size_t... yes
checking for uid_t in sys/types.h... (cached) yes
checking for socklen_t... yes
checking for int32_t... yes
checking for X... no
checking whether #! works in shell scripts... yes
Using halpolicydir=/usr/share/hal/fdi/policy/20thirdparty
checking for gdImagePng in -lgd... no
checking for gdImageGif in -lgd... yes
using GIF file format (/usr/lib).
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
Using Linux USB driver.
checking for EVP_DigestInit in -lcrypto... yes
   including crypto library for snmp.
checking for snmp_open in -lnetsnmp... yes
checking for x86_64-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking how many arguments gethostbyname_r() takes... six
checking if libsupc++ is required... yes
checking if GCC supports -fno-exceptions... yes
checking if GCC supports -fno-rtti... yes
checking for wait... yes
checking for waitpid... yes
checking for wait3... yes
checking for union wait... yes
checking for snprintf... (cached) yes
Enabling cgi program support...
distname set to gentoo
configure: creating ./config.status
config.status: creating autoconf/variables.mak
config.status: creating platforms/apccontrol
config.status: creating platforms/etc/changeme
config.status: creating platforms/etc/commfailure
config.status: creating platforms/etc/commok
config.status: creating platforms/etc/offbattery
config.status: creating platforms/etc/onbattery
config.status: creating platforms/etc/apcupsd.conf
config.status: creating examples/safe.apccontrol
config.status: creating src/win32/Makefile
config.status: creating platforms/gentoo/apcupsd
config.status: creating platforms/gentoo/halt
config.status: creating src/cgi/cgiconfig.h
config.status: creating include/config.h


Configuration on Wed Aug 22 22:36:24 CEST 2012:

  Host:                       x86_64-pc-linux-gnu -- gentoo
  Apcupsd version:            3.14.8 (16 January 2010)
  Source code location:       .
  Install binaries:           /sbin
  Install config files:       /etc/apcupsd
  Install man files:          /usr/share/man
  Nologin file in:            /etc
  PID directory:              /var/run
  LOG dir (events, status)    /var/log
  LOCK dir (for serial port)  /var/lock
  Power Fail dir              /etc/apcupsd
  Compiler:                   x86_64-pc-linux-gnu-g++ 4.5.4
  Compiler flags:              -I/usr/local/include -I/usr/local/include -march=native -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing -fno-exceptions -fno-rtti -Wall
  Linker:                     x86_64-pc-linux-gnu-gcc
  Linker flags:               -Wl,-O1 -Wl,--as-needed -L/usr/local/lib64 -L/usr/local/lib -L/usr/local/lib
  Host and version:           gentoo
  Shutdown Program:           /sbin/shutdown
  Port/Device:
  Network Info Port (CGI):    3551
  UPSTYPE                     usb
  UPSCABLE                    usb

  drivers (no-* are disabled): apcsmart dumb net linux-usb snmp net-snmp pcnet no-test

  enable-nis:                 yes
  with-nisip:                 0.0.0.0
  enable-cgi:                 yes
  with-cgi-bin:               /usr/libexec/apcupsd/cgi-bin
  with-libwrap:
  enable-pthreads:            yes
  enable-dist-install:        yes
  enable-gapcmon:             no
  enable-apcagent:            no

Configuration complete: Run 'make' to build apcuspd.

>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-power/apcupsd-3.14.8-r1/work/apcupsd-3.14.8 ...
make -j5
        src
        doc
        src/lib
        src/drivers
  MAN   apcupsd.8 -> apcupsd.man.txt
  MAN   apctest.8 -> apctest.man.txt
  MAN   apcaccess.8 -> apcaccess.man.txt
ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded: ignored.
        src/drivers/apcsmart
ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded: ignored.
  CXX   src/drivers/apcsmart/smartsetup2.c
  CXX   src/lib/apcconfig.c
  CXX   src/drivers/apcsmart/smartoper.c
  CXX   src/drivers/apcsmart/smart.c
  MAN   apccontrol.8 -> apccontrol.man.txt
ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded: ignored.
smartsetup2.c: In function 'void get_apc_model(UPSINFO*)':
smartsetup2.c:130:28: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
  MAN   apcupsd.conf.5 -> apcupsd.conf.man.txt
ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded: ignored.
mdoc warning: Empty input line #88
  CXX   src/drivers/apcsmart/smarteeprom.c
smart.c: In function 'int apcsmart_ups_entry_point(UPSINFO*, int, void*)':
smart.c:780:29: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
smart.c: In function 'char* smart_poll(char, UPSINFO*)':
smart.c:149:30: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
  CXX   src/lib/apcerror.c
  CXX   src/lib/apcevents.c
smarteeprom.c: In function 'void change_ups_battery_date(UPSINFO*, const char*)':
smarteeprom.c:299:25: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
smarteeprom.c:304:25: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
smarteeprom.c:309:29: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
smarteeprom.c: In function 'void change_ups_name(UPSINFO*, const char*)':
smarteeprom.c:247:25: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
smarteeprom.c:252:25: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
smarteeprom.c:257:29: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
smarteeprom.c: In function 'int change_ups_eeprom_item(UPSINFO*, const char*, char, const char*)':
smarteeprom.c:341:27: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
smarteeprom.c:358:27: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
smarteeprom.c:371:30: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
smarteeprom.c:375:28: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
smarteeprom.c:388:30: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
smarteeprom.c:392:30: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
  CXX   src/lib/apcexec.c
apcevents.c: In function 'int trim_eventfile(UPSINFO*)':
apcevents.c:89:31: warning: ignoring return value of 'int ftruncate(int, __off_t)', declared with attribute warn_unused_result
        src/drivers/dumb
  CXX   src/drivers/dumb/dumbsetup.c
  CXX   src/drivers/apcsmart/smartsetup.c
  CXX   src/lib/apcfile.c
        src/drivers/net
        src/drivers/pcnet
smartsetup.c: In function 'int apcsmart_ups_setup(UPSINFO*)':
smartsetup.c:161:25: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
smartsetup.c:175:28: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
apcfile.c: In function 'void make_pid_file()':
apcfile.c:65:27: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
  CXX   src/drivers/net/net.c
  CXX   src/drivers/dumb/dumboper.c
  CXX   src/drivers/pcnet/pcnet.c
  CXX   src/lib/apclibnis.c
  CXX   src/lib/apclock.c
  CXX   src/lib/apclog.c
apclog.c: In function 'void log_event(const UPSINFO*, int, const char*, ...)':
apclog.c:68:50: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
apclog.c:74:31: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
        src/drivers/usb
  CXX   src/lib/apcsignal.c
        src/drivers/usb/linux
  CXX   src/drivers/usb/linux/linux-usb.c
  CXX   src/lib/apcstatus.c
        src/drivers/snmp
  CXX   src/drivers/snmp/drv_rfc1628.c
  CXX   src/drivers/snmp/drv_powernet.c
  CXX   src/lib/asys.c
In file included from drv_rfc1628.c:27:0:
snmp.h:82:10: error: expected unqualified-id before numeric constant
snmp.h:82:10: error: expected ';' before numeric constant
drv_rfc1628.c: In function 'int rfc_1628_check_alarms(UPSINFO*)':
drv_rfc1628.c:35:40: error: expected unqualified-id before numeric constant
drv_rfc1628.c:35:40: error: expected ',' or ';' before numeric constant
drv_rfc1628.c: In function 'int rfc1628_snmp_ups_read_static_data(UPSINFO*)':
drv_rfc1628.c:79:40: error: expected unqualified-id before numeric constant
drv_rfc1628.c:79:40: error: expected ',' or ';' before numeric constant
drv_rfc1628.c: In function 'int rfc1628_snmp_ups_read_volatile_data(UPSINFO*)':
drv_rfc1628.c:101:40: error: expected unqualified-id before numeric constant
drv_rfc1628.c:101:40: error: expected ',' or ';' before numeric constant
make[4]: *** [.obj/drv_rfc1628.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from drv_powernet.c:27:0:
snmp.h:82:10: error: expected unqualified-id before numeric constant  CXX   src/lib/newups.c

snmp.h:82:10: error: expected ';' before numeric constant
drv_powernet.c: In function 'int powernet_check_comm_lost(UPSINFO*)':
drv_powernet.c:37:50: error: expected unqualified-id before numeric constant
drv_powernet.c:37:50: error: expected ',' or ';' before numeric constant
drv_powernet.c: In function 'int powernet_snmp_ups_read_static_data(UPSINFO*)':
drv_powernet.c:164:50: error: expected unqualified-id before numeric constant
drv_powernet.c:164:50: error: expected ',' or ';' before numeric constant
drv_powernet.c: In function 'int powernet_snmp_ups_read_volatile_data(UPSINFO*)':
drv_powernet.c:303:50: error: expected unqualified-id before numeric constant
drv_powernet.c:303:50: error: expected ',' or ';' before numeric constant
make[4]: *** [.obj/drv_powernet.o] Error 1
make[3]: *** [all] Error 2
make[2]: *** [snmp_DIR] Error 2
make[2]: *** Waiting for unfinished jobs....
  CXX   src/lib/md5.c
  CXX   src/lib/statmgr.cpp
  CXX   src/lib/gethostname.c
  CXX   src/lib/amutex.cpp
  CXX   src/drivers/usb/usb.c
  CXX   src/lib/astring.cpp
  CXX   src/lib/autil.cpp
  CXX   src/lib/atimer.cpp
  CXX   src/lib/athread.cpp
  AR    src/lib/libapc.a
        src/cgi
  CXX   src/cgi/upsfetch.c
  CXX   src/cgi/cgilib.c
  CXX   src/cgi/multimon.c
  CXX   src/cgi/upsstats.c
make[1]: *** [drivers_DIR] Error 2
make[1]: *** Waiting for unfinished jobs....
  CXX   src/cgi/upsfstats.c
  CXX   src/cgi/upsimage.c
  LD    src/cgi/upsstats.cgi
  LD    src/cgi/multimon.cgi
  LD    src/cgi/upsfstats.cgi
  LD    src/cgi/upsimage.cgi
make: *** [src_DIR] Error 2
emake failed
 * ERROR: sys-power/apcupsd-3.14.8-r1 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 2983:  Called die
 * The specific snippet of code:
 *       MANPAGER=$(type -p cat) emake || die "emake failed"
 *
 * If you need support, post the output of `emerge --info '=sys-power/apcupsd-3.14.8-r1'`,
 * the complete build log and the output of `emerge -pqv '=sys-power/apcupsd-3.14.8-r1'`.
 * The complete build log is located at '/var/tmp/portage/sys-power/apcupsd-3.14.8-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-power/apcupsd-3.14.8-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-power/apcupsd-3.14.8-r1/work/apcupsd-3.14.8'
 * S: '/var/tmp/portage/sys-power/apcupsd-3.14.8-r1/work/apcupsd-3.14.8'


Thank you for your help.


Last edited by firefox25 on Thu Aug 23, 2012 3:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
flyz
n00b
n00b


Joined: 21 Jun 2011
Posts: 7

PostPosted: Thu Aug 23, 2012 11:53 am    Post subject: Reply with quote

Try downgrading net-analyzer/net-snmp to version 5.4.2.1-r5
Back to top
View user's profile Send private message
firefox25
n00b
n00b


Joined: 22 Aug 2012
Posts: 2

PostPosted: Thu Aug 23, 2012 3:22 pm    Post subject: Reply with quote

Thank you flyz, that did the trick.
Back to top
View user's profile Send private message
bubbl07
Apprentice
Apprentice


Joined: 06 Feb 2005
Posts: 236
Location: New York City

PostPosted: Fri Aug 24, 2012 8:48 pm    Post subject: Reply with quote

Same problem, thanks flyz.
Back to top
View user's profile Send private message
gordonp
n00b
n00b


Joined: 23 May 2005
Posts: 53

PostPosted: Fri Sep 21, 2012 4:11 pm    Post subject: Worked for me too Reply with quote

Another "me too" - same problem, same fix, same happy camper :-)

In my case, apcupsd lives on a gentoo-vserver-host, so the kernel will probably differ from others... but the same problem/fix existed.
Back to top
View user's profile Send private message
mirousek
n00b
n00b


Joined: 25 Sep 2012
Posts: 1

PostPosted: Tue Sep 25, 2012 9:12 am    Post subject: Reply with quote

Thanks, it helped! :)
_________________
Mirousek
Back to top
View user's profile Send private message
thenextdon13
n00b
n00b


Joined: 26 Sep 2012
Posts: 9

PostPosted: Wed Sep 26, 2012 5:25 am    Post subject: Reply with quote

Patch here.
https://bugs.gentoo.org/show_bug.cgi?id=430894
Back to top
View user's profile Send private message
MJGdaishi
n00b
n00b


Joined: 12 Jun 2011
Posts: 9
Location: Arizona USA

PostPosted: Tue Nov 20, 2012 2:55 am    Post subject: Reply with quote

I can't figure out how to apply the patch or downgrade to 3.5.2.1

As far as I can tell I have the same issues as the original thread author.

Any walk through's available? or anyone want to hook up and help me through skype or teamspeak?
_________________
We should admire those who have our back more than those who turn our head.
Back to top
View user's profile Send private message
thenextdon13
n00b
n00b


Joined: 26 Sep 2012
Posts: 9

PostPosted: Tue Nov 20, 2012 7:41 am    Post subject: Reply with quote

When i did the patch, it was the first time i'd ever done a patch on a gentoo system. I took or copied these rough from the internet somewhere.. (in this case 'myebuild' would be net-snmp). To understand better what each ebuild command is doing, take a look at the build man page.

Patch a file during emerge
# ebuild myebuild fetch (if you don't have it in distfiles)
# ebuild myebuild unpack (unpacked to /var/tmp/portage/packagename/something)
# patch file as per standard patching
# ebuild myebuild compile
# ebuild myebuild install
# ebuild myebuild qmerge
Back to top
View user's profile Send private message
MJGdaishi
n00b
n00b


Joined: 12 Jun 2011
Posts: 9
Location: Arizona USA

PostPosted: Wed Nov 28, 2012 9:21 am    Post subject: Reply with quote

SUCCESS!!!!!!! Thanks for your help thenextdon13!
_________________
We should admire those who have our back more than those who turn our head.
Back to top
View user's profile Send private message
thenextdon13
n00b
n00b


Joined: 26 Sep 2012
Posts: 9

PostPosted: Fri Nov 15, 2013 6:05 am    Post subject: Reply with quote

I just ran into this again, and now can't figure out how I did it before!
I find, fetch and unpack the ebuild
Code:

/etc/portage/repos.conf/gentoo.conf:location = /mnt/store/portage
/etc/portage/make.conf:PORTDIR="/mnt/store/portage"


Code:

dylan@BigBox /etc $ ls -l /mnt/store/portage/net-analyzer/net-snmp/*.ebuild
-rw-r--r-- 1 root root 4126 Sep 20 10:01 /mnt/store/portage/net-analyzer/net-snmp/net-snmp-5.7.2.ebuild
-rw-r--r-- 1 root root 4312 Sep 20 08:31 /mnt/store/portage/net-analyzer/net-snmp/net-snmp-5.7.2_rc1.ebuild


Code:

dylan@BigBox /var/tmp/portage $ sudo ebuild /mnt/store/portage/net-analyzer/net-snmp/net-snmp-5.7.2_rc1.ebuild fetch
Password:
 * net-snmp-5.7.2.rc1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                             [ ok ]
 * net-snmp-5.7.2.rc1-patches-3.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                   [ ok ]

Code:

dylan@BigBox /var/tmp/portage $ sudo ebuild /mnt/store/portage/net-analyzer/net-snmp/net-snmp-5.7.2_rc1.ebuild unpack
 * net-snmp-5.7.2.rc1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                             [ ok ]
 * net-snmp-5.7.2.rc1-patches-3.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                   [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                          [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                         [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                        [ ok ]
>>> Unpacking source...
>>> Unpacking net-snmp-5.7.2.rc1.tar.gz to /var/tmp/portage/net-analyzer/net-snmp-5.7.2_rc1/work
>>> Unpacking net-snmp-5.7.2.rc1-patches-3.tar.xz to /var/tmp/portage/net-analyzer/net-snmp-5.7.2_rc1/work
>>> Source unpacked in /var/tmp/portage/net-analyzer/net-snmp-5.7.2_rc1/work


But looking at the resultant directory structure, i don't see where the patches are supposed to get applied...

The patch points to these files
Code:

dylan@BigBox /var/tmp/portage/net-analyzer/net-snmp-5.7.2_rc1 $ grep "+++" netsnmp_patch.patch
+++ src/drivers/snmp/snmp.c     2012-08-09 11:22:30.100725543 +0100
+++ src/drivers/snmp/drv_rfc1628.c      2012-08-09 11:19:08.845988048 +0100
+++ src/drivers/snmp/snmp.h     2012-08-09 11:17:43.988802514 +0100
+++ src/drivers/snmp/drv_powernet.c     2012-08-09 11:20:04.970761477 +0100


But the directory structure of the ebuild doesn't even have a 'src' directory
Code:

dylan@BigBox /var/tmp/portage/net-analyzer/net-snmp-5.7.2_rc1 $ ls -l /var/tmp/portage/net-analyzer/net-snmp-5.7.2_rc1/
total 4
drwxr-xr-x 2 root    portage   80 Nov 14 21:17 distdir
drwxrwxr-x 2 portage portage   40 Nov 14 21:17 homedir
-rw-r--r-- 1 root    root    3967 Nov 14 21:21 netsnmp_patch.patch
drwxrwxr-x 3 portage portage  120 Nov 14 21:17 temp
drwx------ 4 portage portage   80 Nov 14 21:17 work

dylan@BigBox /var/tmp/portage/net-analyzer/net-snmp-5.7.2_rc1 $ sudo ls -l /var/tmp/portage/net-analyzer/net-snmp-5.7.2_rc1/work/net-snmp-5.7.2.rc1 | grep '^d'
drwxr-xr-x  4 portage portage     520 Aug 11  2012 agent
drwxr-xr-x  3 portage portage     680 Aug 11  2012 apps
drwxr-xr-x  2 portage portage     440 Aug 11  2012 configure.d
drwxr-xr-x  4 portage portage     560 Aug 11  2012 dist
drwxr-xr-x  3 portage portage      60 Aug 11  2012 doc
drwxr-xr-x  4 portage portage      80 Aug 11  2012 include
drwxr-xr-x  6 portage portage    1060 Aug 11  2012 local
drwxr-xr-x  2 portage portage     260 Aug 11  2012 m4
drwxr-xr-x  2 portage portage    1120 Aug 11  2012 man
drwxr-xr-x  2 portage portage    1880 Aug 11  2012 mibs
drwxr-xr-x  3 portage portage     180 Aug 11  2012 ov
drwxr-xr-x 10 portage portage     280 Aug 11  2012 perl
drwxr-xr-x  3 portage portage     120 Aug 11  2012 python
drwxr-xr-x  4 portage portage    1580 Aug 11  2012 snmplib
drwxr-xr-x  4 portage portage     160 Aug 11  2012 testing
drwxr-xr-x 29 portage portage    1040 Aug 11  2012 win32



What am i missing!!?
Back to top
View user's profile Send private message
thenextdon13
n00b
n00b


Joined: 26 Sep 2012
Posts: 9

PostPosted: Mon Dec 02, 2013 7:04 am    Post subject: Reply with quote

I was an idiot and was installing the wrong package.

You need to be patching parts of the apsupsd package, not the net-snmp package
DOH
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum