Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189730 - sys-power/apcupsd-3.10.18-r1 fails to compile apcupsd
Summary: sys-power/apcupsd-3.10.18-r1 fails to compile apcupsd
Status: RESOLVED DUPLICATE of bug 176339
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-21 16:47 UTC by David Gardner [work]
Modified: 2007-08-21 17:47 UTC (History)
0 users

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


Attachments
emerge apcups output (apcout,44.36 KB, text/plain)
2007-08-21 16:51 UTC, David Gardner [work]
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Gardner [work] 2007-08-21 16:47:35 UTC
Emergeing apcupsd fails to install /usr/sbin/apcupsd
I have tried this on four machines and this happened on three of the four machines. Re-emergeing with +doc seems to fix the problem.
All of the machines I tested this on were amd64. Two were hardened amd64. One of the hardened boxes was the one that didn't produce the problem.

Reproducible: Sometimes

Steps to Reproduce:
1.emerge apcupsd with only +ncurses
2./etc/init.d/apcupsd start
3.

Actual Results:  
spycam ~ # /etc/init.d/apcupsd start
 * Caching service dependencies ...                                       [ ok ]
 * Starting APC UPS daemon ...
/sbin/start-stop-daemon: stat /usr/sbin/apcupsd: No such file or directory (No s                          uch file or directory)                                                    [ !! ]


Expected Results:  
spycam ~ # /etc/init.d/apcupsd start
 * Starting APC UPS daemon ...                                                                      [ ok ]


*** Deprecated use of action 'info', use '--info' instead
Portage 2.1.2.12 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r3 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 20 Aug 2007 15:20:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ "
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X alsa amd64 berkdb bitmap-fonts cdr cli cracklib crypt cups dri dvd dvdr dvdread gdbm gpm gtk iconv isdnlog jpeg logrotate midi mp3 mudflap ncurses nptl nptlonly opengl openmp pam pcre perl png ppds pppd python readline reflection session spl ssl ssse3 svg tcpd tiff truetype-fonts type1-fonts unicode vorbis xorg xv xvid xvmc 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 David Gardner [work] 2007-08-21 16:51:40 UTC
Created attachment 128791 [details]
emerge apcups output

Shows compiler errors starting on line 560
Comment 2 David Gardner [work] 2007-08-21 16:54:57 UTC
I went back and looked at the gcc output from the emerge and found that the binary is failing to compile, which is somewhat confusing because emerge continues on and adds apcupsd to world as if the compile was successful:

gcc -g -O  apcupsd.o apcoptd.o apcnet.o apcreports.o apcaction.o apcnis.o apcdev                          ice.o /var/tmp/portage/sys-power/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src/dri                          vers/libdrivers.a /var/tmp/portage/sys-power/apcupsd-3.10.18-r1/work/apcupsd-3.1                          0.18/src/lib/libapc.a      -o apcupsd                                                     /var/tmp/portage/sys-power/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src/drivers/l                          ibdrivers.a(drivers.o):(.rodata+0x138): undefined reference to `net_ups_open'                     /var/tmp/portage/sys-power/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src/drivers/l                          ibdrivers.a(drivers.o):(.rodata+0x140): undefined reference to `net_ups_setup'                    /var/tmp/portage/sys-power/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src/drivers/l                          ibdrivers.a(drivers.o):(.rodata+0x148): undefined reference to `net_ups_close'
/var/tmp/portage/sys-power/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src/drivers/l                          ibdrivers.a(drivers.o):(.rodata+0x150): undefined reference to `net_ups_kill_pow                          er'
/var/tmp/portage/sys-power/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src/drivers/l                          ibdrivers.a(drivers.o):(.rodata+0x158): undefined reference to `net_ups_read_sta                          tic_data'
/var/tmp/portage/sys-power/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src/drivers/l                          ibdrivers.a(drivers.o):(.rodata+0x160): undefined reference to `net_ups_read_vol                          atile_data'
/var/tmp/portage/sys-power/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src/drivers/l                          ibdrivers.a(drivers.o):(.rodata+0x168): undefined reference to `net_ups_get_capa                          bilities'
/var/tmp/portage/sys-power/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src/drivers/l                          ibdrivers.a(drivers.o):(.rodata+0x170): undefined reference to `net_ups_check_st                          ate'
/var/tmp/portage/sys-power/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src/drivers/l                          ibdrivers.a(drivers.o):(.rodata+0x178): undefined reference to `net_ups_program_                          eeprom'
/var/tmp/portage/sys-power/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src/drivers/l                          ibdrivers.a(drivers.o):(.rodata+0x180): undefined reference to `net_ups_entry_po                          int'
collect2: ld returned 1 exit status
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-08-21 17:47:04 UTC

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