#[32;01m*#[0m CPV: sys-power/apcupsd-3.14.8 #[32;01m*#[0m REPO: gentoo #[32;01m*#[0m USE: amd64 cgi elibc_glibc kernel_linux multilib nls usb userland_GNU /usr/portage/sys-power/apcupsd/apcupsd-3.14.8.ebuild: line 35: !linux_chkconfig_present: command not found >>> Unpacking source... >>> Unpacking apcupsd-3.14.8.tar.gz to /var/tmp/portage/sys-power/apcupsd-3.14.8/work >>> Source unpacked in /var/tmp/portage/sys-power/apcupsd-3.14.8/work >>> Compiling source in /var/tmp/portage/sys-power/apcupsd-3.14.8/work/apcupsd-3.14.8 ... * econf: updating apcupsd-3.14.8/autoconf/config.guess with /usr/share/gnuconfig/config.guess * econf: updating apcupsd-3.14.8/autoconf/config.sub with /usr/share/gnuconfig/config.sub ./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 --disable-net-snmp --disable-gapcmon --enable-cgi --with-cgi-bin=/usr/share/webapps/apcupsd/3.14.8/hostroot/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... libraries , headers checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking whether #! works in shell scripts... yes Using halpolicydir=/usr/share/hal/fdi/policy/20thirdparty checking for gdImagePng in -lgd... yes using PNG 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 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 Sun Jan 24 13:00:14 NOVT 2010: 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.4.2 Compiler flags: -I/usr/local/include -O2 -pipe -march=amdfam10 -mtune=amdfam10 -fno-exceptions -fno-rtti -Wall Linker: x86_64-pc-linux-gnu-gcc Linker flags: -Wl,-O1 -L/usr/local/lib64 -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 no-net-snmp pcnet no-test enable-nis: yes with-nisip: 0.0.0.0 enable-cgi: yes with-cgi-bin: /usr/share/webapps/apcupsd/3.14.8/hostroot/cgi-bin with-libwrap: enable-pthreads: yes enable-dist-install: yes enable-gapcmon: no enable-apcagent: no Configuration complete: Run 'make' to build apcuspd. make -j4 src doc src/lib MAN apcupsd.8 -> apcupsd.man.txt MAN apcaccess.8 -> apcaccess.man.txt src/drivers 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 CXX src/lib/apcconfig.c /usr/share/groff/1.20.1/tmac/doc.tmac:3375: bad character definition CXX src/drivers/apcsmart/smart.c /usr/share/groff/1.20.1/tmac/doc.tmac:3375: bad character definition smart.c: In function ‘char* smart_poll(char, UPSINFO*)’: smart.c:149: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored smart.c: In function ‘int apcsmart_ups_entry_point(UPSINFO*, int, void*)’: smart.c:780: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored src/drivers/dumb MAN apctest.8 -> apctest.man.txt ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded: ignored. CXX src/drivers/dumb/dumboper.c /usr/share/groff/1.20.1/tmac/doc.tmac:3375: bad character definition CXX src/lib/apcerror.c CXX src/drivers/apcsmart/smarteeprom.c col: Invalid or incomplete multibyte or wide character make[2]: *** [apctest.man.txt] Error 1 make[1]: *** [all] Error 2 make: *** [doc_DIR] Error 2 make: *** Waiting for unfinished jobs.... CXX src/drivers/dumb/dumbsetup.c smarteeprom.c: In function ‘void change_ups_name(UPSINFO*, const char*)’: smarteeprom.c:247: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored smarteeprom.c:252: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored smarteeprom.c:257: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored smarteeprom.c: In function ‘void change_ups_battery_date(UPSINFO*, const char*)’: smarteeprom.c:299: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored smarteeprom.c:304: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored smarteeprom.c:309: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored smarteeprom.c: In function ‘int change_ups_eeprom_item(UPSINFO*, const char*, char, const char*)’: smarteeprom.c:341: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored smarteeprom.c:358: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored smarteeprom.c:371: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored smarteeprom.c:375: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored smarteeprom.c:388: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored smarteeprom.c:392: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored CXX src/drivers/apcsmart/smartoper.c CXX src/drivers/apcsmart/smartsetup.c CXX src/lib/apcevents.c src/drivers/net smartsetup.c: In function ‘int apcsmart_ups_setup(UPSINFO*)’: smartsetup.c:161: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored smartsetup.c:175: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored apcevents.c: In function ‘int trim_eventfile(UPSINFO*)’: apcevents.c:89: warning: the result ‘int ftruncate(int, __off_t)’, declared with attribute warn_unused_result, ignored CXX src/drivers/net/net.c CXX src/lib/apcexec.c CXX src/lib/apcfile.c CXX src/drivers/apcsmart/smartsetup2.c apcfile.c: In function ‘void make_pid_file()’: apcfile.c:65: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored smartsetup2.c: In function ‘void get_apc_model(UPSINFO*)’: smartsetup2.c:130: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored CXX src/lib/apclibnis.c CXX src/lib/apclock.c CXX src/lib/apclog.c src/drivers/pcnet apclog.c: In function ‘void log_event(const UPSINFO*, int, const char*, ...)’: apclog.c:68: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored apclog.c:74: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored CXX src/drivers/pcnet/pcnet.c CXX src/lib/apcsignal.c CXX src/lib/apcstatus.c CXX src/lib/asys.c src/drivers/usb CXX src/lib/newups.c src/drivers/usb/linux CXX src/lib/md5.c CXX src/drivers/usb/linux/linux-usb.c src/drivers/snmplite CXX src/lib/statmgr.cpp CXX src/drivers/snmplite/asn.cpp CXX src/lib/gethostname.c CXX src/drivers/usb/usb.c CXX src/drivers/snmplite/mib.cpp CXX src/drivers/snmplite/snmp.cpp CXX src/lib/amutex.cpp CXX src/lib/astring.cpp CXX src/lib/autil.cpp CXX src/drivers/snmplite/snmplite.cpp CXX src/lib/atimer.cpp snmplite.cpp: In function ‘int snmplite_ups_open(UPSINFO*)’: snmplite.cpp:62: предупреждение: deprecated conversion from string constant to ‘char*’ CXX src/lib/athread.cpp CXX src/drivers/drivers.c AR src/lib/libapc.a src/cgi CXX src/cgi/upsfetch.c CXX src/cgi/multimon.c CXX src/cgi/cgilib.c AR src/drivers/libdrivers.a CXX src/cgi/upsstats.c CXX src/cgi/upsimage.c CXX src/cgi/upsfstats.c LD src/cgi/multimon.cgi LD src/cgi/upsstats.cgi LD src/cgi/upsfstats.cgi LD src/cgi/upsimage.cgi CXX src/options.c CXX src/device.c CXX src/reports.c CXX src/action.c action.c: In function ‘void logonfail(UPSINFO*, int)’: action.c:185: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored In file included from /usr/include/string.h:641, from /var/tmp/portage/sys-power/apcupsd-3.14.8/work/apcupsd-3.14.8/include/apc.h:80, from reports.c:27: In function ‘char* strncat(char*, const char*, size_t)’, inlined from ‘void log_status_write(UPSINFO*, const char*, ...)’ at reports.c:110: /usr/include/bits/string3.h:154: warning: call to char* __builtin___strncat_chk(char*, const char*, long unsigned int, long unsigned int) might overflow destination buffer CXX src/apcupsd.c CXX src/apcnis.c CXX src/apcaccess.c apcupsd.c: In function ‘void daemon_start()’: apcupsd.c:383: warning: the result ‘int chdir(const char*)’, declared with attribute warn_unused_result, ignored CXX src/apctest.c CXX src/smtp.c apctest.c: In function ‘int main(int, char**)’: apctest.c:482: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored apctest.c: In function ‘void smart_ttymode()’: apctest.c:1009: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored apctest.c:1015: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored apctest.c: In function ‘void monitor_calibration_progress(int)’: apctest.c:1200: warning: the result of 'ssize_t write (int, const void *, size_t)', declared with attribute warn_unused_result, ignored apctest.c:1217: warning: the result ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result, ignored apctest.c:1224: warning: the result ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result, ignored LD src/apcaccess LD src/apcupsd LD src/apctest LD src/smtp #[31;01m*#[0m ERROR: sys-power/apcupsd-3.14.8 failed: #[31;01m*#[0m emake failed #[31;01m*#[0m #[31;01m*#[0m Call stack: #[31;01m*#[0m ebuild.sh, line 48: Called src_compile #[31;01m*#[0m environment, line 3369: Called die #[31;01m*#[0m The specific snippet of code: #[31;01m*#[0m MANPAGER=$(type -p cat) emake || die "emake failed" #[31;01m*#[0m #[31;01m*#[0m If you need support, post the output of 'emerge --info =sys-power/apcupsd-3.14.8', #[31;01m*#[0m the complete build log and the output of 'emerge -pqv =sys-power/apcupsd-3.14.8'. #[31;01m*#[0m The complete build log is located at '/var/tmp/portage/sys-power/apcupsd-3.14.8/temp/build.log'. #[31;01m*#[0m The ebuild environment file is located at '/var/tmp/portage/sys-power/apcupsd-3.14.8/temp/environment'. #[31;01m*#[0m S: '/var/tmp/portage/sys-power/apcupsd-3.14.8/work/apcupsd-3.14.8'