###
### Mon Jun 28 03:06:57 EST 2004:
### /usr/pkg/bin/bmake bulk-package for apcupsd-3.8.6nb1
### Current pkg count:  4 installed packages: digest-20021220 libtool-base-1.5.6nb1 patch-2.5.4nb2 xpkgwedge-1.10
###
BULK> Full rebuild in progress...
BULK> Cleaning package and its depends
===> Cleaning for apcupsd-3.8.6nb1
===> Cleaning for gettext-lib-0.11.5nb3
===> Cleaning for libiconv-1.9.1nb2
===> Cleaning for libtool-base-1.5.6nb1
===> Cleaning for patch-2.5.4nb2
===> Cleaning for gettext-0.11.5nb4
===> Cleaning for gettext-m4-0.11.5
===> Cleaning for pkg_install-info-4.5nb2
===> Cleaning for gmake-3.80nb3
BULK> Removing installed packages which are not needed to build apcupsd-3.8.6nb1
BULK> Keeping BULK_PREREQ: digest-20021220 (pkgtools/digest)
/usr/pkg/sbin/pkg_delete -K /var/db/pkg -r xpkgwedge-1.10
pkg_delete: package 'xpkgwedge-1.10' doesn't have a prefix
pkg_delete: package 'xpkgwedge-1.10' doesn't have a prefix
BULK> apcupsd-3.8.6nb1 requires installed package patch-2.5.4nb2 (devel/patch) to build.
BULK> apcupsd-3.8.6nb1 requires installed package libtool-base-1.5.6nb1 (devel/libtool-base) to build.
BULK> Installing packages which are required to build apcupsd-3.8.6nb1.
BULK>  /usr/pkg/sbin/pkg_add -K /var/db/pkg  /packages/SunOS/5.9/sparc/All/gettext-lib-0.11.5nb3.tgz

===> Installing configuration/support files for libiconv-1.9.1nb2

	/usr/pkg/lib/charset.alias
BULK> Required package libiconv-1.9.1nb2 (converters/libiconv) is already installed
BULK> Required package libtool-base-1.5.6nb1 (devel/libtool-base) is already installed
BULK> Required package patch-2.5.4nb2 (devel/patch) is already installed
BULK>  /usr/pkg/sbin/pkg_add -K /var/db/pkg  /packages/SunOS/5.9/sparc/All/gettext-0.11.5nb4.tgz
BULK> Required package gettext-m4-0.11.5 (devel/gettext-m4) is already installed
BULK> Required package pkg_install-info-4.5nb2 (pkgtools/pkg_install-info) is already installed
BULK>  /usr/pkg/sbin/pkg_add -K /var/db/pkg  /packages/SunOS/5.9/sparc/All/gmake-3.80nb3.tgz
BULK> Required package digest-20021220 (pkgtools/digest) is already installed
/usr/pkg/bin/bmake package (apcupsd-3.8.6nb1)
===> Checking for vulnerabilities in apcupsd-3.8.6nb1
=> Checksum OK for apcupsd-3.8.6.tar.gz.
work -> /work/pkgbuild/sysutils/apcupsd/work
===> Extracting for apcupsd-3.8.6nb1
===> Required installed package gettext-lib>=0.11.5nb1: gettext-lib-0.11.5nb3 found
===> Required installed package libiconv>=1.9.1: libiconv-1.9.1nb2 found
===> Required installed package gettext>=0.10.35nb1: gettext-0.11.5nb4 found
===> Required installed package gmake>=3.78: gmake-3.80nb3 found
===> Required installed package patch>=2.2: patch-2.5.4nb2 found
===> Patching for apcupsd-3.8.6nb1
===> Applying pkgsrc patches for apcupsd-3.8.6nb1
===> Overriding tools for apcupsd-3.8.6nb1
===> Buildlinking for apcupsd-3.8.6nb1
===> Configuring for apcupsd-3.8.6nb1
creating cache ./config.cache
checking for true... /usr/bin/true
checking for false... /usr/bin/false
checking for gcc... cc
checking whether the C compiler (cc -O -I/usr/pkg/include -L/usr/pkg/lib -R/usr/pkg/lib) works... yes
checking whether the C compiler (cc -O -I/usr/pkg/include -L/usr/pkg/lib -R/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... no
checking whether cc accepts -g... yes
checking how to run the C preprocessor... cc -E
checking whether cc understands -c and -o together... yes
checking for a BSD compatible install... /usr/ucb/install -c -o root -g root
checking for mawk... /usr/bin/nawk
checking for pthreads... enabled
checking for Cygwin environment... no
checking for shutdown... /usr/sbin/shutdown
checking for wall... /usr/sbin/wall
checking for sh... /usr/bin/sh
checking for makedepend... /usr/openwin/bin/makedepend
checking for ranlib... /usr/ccs/bin/ranlib
checking for abort... yes
checking for alarm... yes
checking for fork... yes
checking for calloc... yes
checking for gethostname... 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 syslog... yes
checking for tcgetattr... yes
checking for vfprintf... yes
checking for setpgrp... yes
checking for strftime... yes
checking whether setpgrp takes no argument... yes
checking for shmctl... yes
checking for socket... no
checking for socket in -lxnet... yes
checking for socket in -lsocket... yes
checking for socket in -linet... no
checking for gethostbyname... yes
using libc's resolver
checking for gettext... yes
using libc's gettext
checking for inet_addr... yes
using libc's inet_addr
checking for strchr... yes
using libc's strchr
checking for strstr... yes
checking for strcasecmp... yes
checking for memmove... yes
checking for getopt_long... no
checking for setproctitle... no
checking for arpa/inet.h... yes
checking for ctype.h... yes
checking for errno.h... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for netdb.h... yes
checking for netinet/in.h... yes
checking for pwd.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for strings.h... yes
checking for sys/ioctl.h... yes
checking for sys/socket.h... yes
checking for sys/types.h... yes
checking for syslog.h... yes
checking for termios.h... yes
checking for unistd.h... yes
checking for sys/ipc.h... yes
checking for sys/sem.h... yes
checking for sys/shm.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 tm_zone in struct tm... no
checking for tzname... yes
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for ANSI C header files... yes
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 whether byte ordering is bigendian... yes
checking for working const... yes
checking for inline... inline
checking whether char is unsigned... no
checking for preprocessor stringizing operator... yes
checking for mingw32 environment... no
checking for executable suffix... no
checking whether #! works in shell scripts... yes
checking for msgfmt... /usr/bin/msgfmt
checking whether gmake sets ${MAKE}... yes
checking for ranlib... /usr/ccs/bin/ranlib
checking for POSIXized ISC... no
checking for working alloca.h... yes
checking for alloca... yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for argz.h... no
checking for limits.h... (cached) yes
checking for locale.h... yes
checking for nl_types.h... yes
checking for malloc.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... no
checking for setlocale... yes
checking for strchr... (cached) yes
checking for strcasecmp... (cached) yes
checking for strdup... yes
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no
checking for stpcpy... no
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for libintl.h... yes
checking for gettext in libc... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
found xgettext program is not GNU xgettext; ignore it
checking for catalogs to be installed...  it
checking for wait... yes
checking for waitpid... yes
checking for wait3... yes
checking for union wait... no
Disabling internal libintl...
Enabling internationalization support...
Disabling cgi support...
updating cache ./config.cache
creating ./config.status
creating Makefile
creating lib/Makefile
creating distributions/Makefile
creating etc/changeme
creating etc/commfailure
creating etc/commok
creating etc/mainsback
creating etc/onbattery
creating etc/Makefile
creating etc/apcupsd.conf
creating examples/safe.apccontrol
creating distributions/sun/Makefile
creating distributions/sun/apcupsd
creating distributions/sun/rc0.solaris
creating distributions/sun/apccontrol.sh
creating po/Makefile
creating config.h
You can ignore any makedepend error messages
(cd lib; make depend)
make[1]: Entering directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/lib'
make[1]: Leaving directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/lib'


Configuration:

  Apcupsd version:	      3.8.6 (5 February 2003)
  Source code location:       .
  Install binaries:	      /usr/pkg/sbin
  Install config files:       /usr/pkg/etc/apcupsd
  Install man files:	      /usr/pkg/man
  Nologin file in:	      /etc
  PID directory:	      /var/run
  LOG dir (events, status)    /usr/pkg/etc/apcupsd
  LOCK dir (for serial port)  /var/spool/lock
  Power Fail dir	      /etc
  Compiler:		      cc
  Compiler flags:	      -O -I/usr/pkg/include 
  Loader flags: 	      -L/usr/pkg/lib -R/usr/pkg/lib -lpthread
  Host and version:	      sun Solaris
  Shutdown Program:	      /usr/sbin/shutdown
  Serial device 	      /dev/tty01
  Network Info Port (CGI)     7000
  Master/slave Port	      6666
  UPSTYPE		      smartups
  UPSCABLE		      smart

  enable-cgi:		      no
  with-cgi-bin: 	      /etc/apcupsd
  with-css-dir: 	      
  with-libwrap: 	      no
  enable-nls:		      yes
  enable-libintl:	      no
  enable-powerflute:	      no
  enable-pthreads:	      yes
  enable-dist-install:	      yes
  
===> Building for apcupsd-3.8.6nb1
cd . \
  && CONFIG_FILES=./Makefile CONFIG_HEADERS= /bin/sh ./config.status
creating ./Makefile
You can ignore any makedepend error messages
make[1]: Entering directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6'
(cd lib; make depend)
make[2]: Entering directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/lib'
cd .. \
  && CONFIG_FILES=lib/Makefile CONFIG_HEADERS= /bin/sh ./config.status
creating lib/Makefile
You can ignore any makedepend error messages
make[3]: Entering directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6'
(cd lib; make depend)
make[4]: Entering directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/lib'
make[4]: Leaving directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/lib'
make[3]: Leaving directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6'
make[2]: Leaving directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/lib'
make[2]: Entering directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/lib'
make[2]: Leaving directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/lib'
make[1]: Leaving directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6'
(internal libintl disabled)
cc -DHAVE_CONFIG_H  -c -I. -I./include  -O -I/usr/pkg/include    apcupsd.c
cc -DHAVE_CONFIG_H  -c -I. -I./include  -O -I/usr/pkg/include    apcnet.c
cc -DHAVE_CONFIG_H  -c -I. -I./include  -O -I/usr/pkg/include    apcsetup.c
cc -DHAVE_CONFIG_H  -c -I. -I./include  -O -I/usr/pkg/include    apcreports.c
cc -DHAVE_CONFIG_H  -c -I. -I./include  -O -I/usr/pkg/include    apcsmart.c
cc -DHAVE_CONFIG_H  -c -I. -I./include  -O -I/usr/pkg/include    apcserial.c
cc -DHAVE_CONFIG_H  -c -I. -I./include  -O -I/usr/pkg/include    apcaction.c
cc -DHAVE_CONFIG_H  -c -I. -I./include  -O -I/usr/pkg/include    apcoptd.c
cc -DHAVE_CONFIG_H  -c -I. -I./include  -O -I/usr/pkg/include    apcnis.c
(cd lib; /usr/pkg/bin/gmake)
gmake[1]: Entering directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/lib'
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include getopt.c
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include getopt1.c
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include proctitle.c
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include apcconfig.c
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include apcerror.c
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include apcevents.c
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include apcexec.c
"apcexec.c", line 86: warning: implicit function declaration: thr_setconcurrency
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include apcfile.c
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include apcipc.c
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include apclibnis.c
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include apclist.c
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include apclock.c
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include apclog.c
"apclog.c", line 97: warning: implicit function declaration: localtime_r
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include apcsignal.c
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include apcstatus.c
"apcstatus.c", line 83: warning: implicit function declaration: localtime_r
cc -c -O -I/usr/pkg/include    -I../ -I.. -I../include apcwinipc.c
ar rc libapc.a getopt.o getopt1.o proctitle.o apcconfig.o apcerror.o apcevents.o apcexec.o apcfile.o apcipc.o apclibnis.o apclist.o apclock.o apclog.o apcsignal.o apcstatus.o apcwinipc.o
/usr/ccs/bin/ranlib libapc.a
gmake[1]: Leaving directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/lib'
cc -Llib -L/usr/pkg/lib -R/usr/pkg/lib -lpthread apcupsd.o apcnet.o apcsetup.o apcreports.o apcsmart.o apcserial.o apcaction.o apcoptd.o apcnis.o -lsocket -lxnet -lintl -liconv -lintl -liconv  \
	 -o apcupsd -lapc
cc -DHAVE_CONFIG_H  -c -I. -I./include  -O -I/usr/pkg/include    apcaccess.c
cc -L/usr/pkg/lib -R/usr/pkg/lib -lpthread apcaccess.o  lib/libapc.a -lsocket -lxnet -lintl -liconv -lintl -liconv  \
	-o apcaccess
cc -DHAVE_CONFIG_H  -c -I. -I./include  -O -I/usr/pkg/include    apcnisd.c
cc -Llib -L/usr/pkg/lib -R/usr/pkg/lib -lpthread apcnisd.o  -lsocket -lxnet -lintl -liconv -lintl -liconv  \
	-o apcnisd -lapc
cd po; /usr/pkg/bin/gmake
gmake[1]: Entering directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/po'
file=./`echo it | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file it.po
gmake[1]: Leaving directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/po'
(CGI support disabled)
cc -DHAVE_CONFIG_H  -c -I. -I./include  -O -I/usr/pkg/include    apctest.c
"apctest.c", line 807: warning: statement not reached
cc -Llib -L/usr/pkg/lib -R/usr/pkg/lib -lpthread apctest.o apcnet.o apcsetup.o apcreports.o apcsmart.o apcserial.o apcaction.o apcoptd.o apcnis.o -lsocket -lxnet -lintl -liconv -lintl -liconv  \
	 -o apctest -lapc
=> Fixing buildlink references in files-to-be-installed.
/usr/pkg/bin/nbsed -e 's|@@PREFIX@@|/usr/pkg|'  /work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/examples/apcupsd.master.conf >  /work/pkgbuild/sysutils/apcupsd/work/apcupsd.master.conf
/usr/pkg/bin/nbsed -e 's|@@PREFIX@@|/usr/pkg|'  /work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/examples/apcupsd.slave.conf >  /work/pkgbuild/sysutils/apcupsd/work/apcupsd.slave.conf
/usr/pkg/bin/nbsed -e 's|@@PREFIX@@|/usr/pkg|' -e 's|@@SYSCONFDIR@@|/usr/pkg/etc/apcupsd|'  /work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/doc/apcupsd.man > /work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/doc/apcupsd.8
===> Installing for apcupsd-3.8.6nb1
(cd lib; /usr/pkg/bin/gmake)
gmake[1]: Entering directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/lib'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/lib'
Creating installation directories...
if [ ! -d /usr/pkg/etc/apcupsd ] ; then \
	/bin/sh ./scripts/mkinstalldirs /usr/pkg/etc/apcupsd; \
	chmod 755 /usr/pkg/etc/apcupsd; \
fi;
/bin/sh ./scripts/mkinstalldirs /usr/pkg/sbin /usr/pkg/man/man8 /usr/pkg/share/examples/apcupsd
mkdir /usr/pkg/share/examples/apcupsd
Installing apcupsd binary...
/usr/ucb/install -c -s -o root -g root -m 555 ./apcupsd /usr/pkg/sbin/apcupsd
Installing apcnisd binary...
/usr/ucb/install -c -s -o root -g root -m 555 ./apcnisd /usr/pkg/sbin/apcnisd
Installing apcaccess binary...
/usr/ucb/install -c -s -o root -g root -m 555 ./apcaccess /usr/pkg/sbin/apcaccess
Installing apctest binary...
/usr/ucb/install -c -s -o root -g root -m 555 ./apctest /usr/pkg/sbin/apctest
Installing apccontrol script...
/usr/ucb/install -c -o root -g root -m 555 ./distributions/sun/apccontrol.sh /usr/pkg/share/examples/apcupsd/apccontrol
Installing manual pages...
/usr/ucb/install -c -o root -g root -m 444 ./doc/apcupsd.8 /usr/pkg/man/man8/apcupsd.8
Installing language catalogs...
cd po; /usr/pkg/bin/gmake install
gmake[1]: Entering directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/po'
if test -r "../scripts/mkinstalldirs"; then \
  ../scripts/mkinstalldirs /usr/pkg/share; \
else \
  /bin/sh ../mkinstalldirs /usr/pkg/share; \
fi
installing it.gmo as /usr/pkg/share/locale/it/LC_MESSAGES/apcupsd.mo
if test "apcupsd" = "gettext"; then \
  if test -r "../scripts/mkinstalldirs"; then \
    ../scripts/mkinstalldirs /usr/pkg/share/gettext/po; \
  else \
    /bin/sh ../mkinstalldirs /usr/pkg/share/gettext/po; \
  fi; \
  /usr/ucb/install -c -o root -g root -m 444 Makefile.in \
		  /usr/pkg/share/gettext/po/Makefile.in; \
else \
  : ; \
fi
gmake[1]: Leaving directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/po'
/usr/ucb/install -c -o root -g root -m 555 ./etc/changeme /usr/pkg/share/examples/apcupsd
/usr/ucb/install -c -o root -g root -m 555 ./etc/commfailure /usr/pkg/share/examples/apcupsd
/usr/ucb/install -c -o root -g root -m 555 ./etc/commok /usr/pkg/share/examples/apcupsd
/usr/ucb/install -c -o root -g root -m 555 ./etc/onbattery /usr/pkg/share/examples/apcupsd
/usr/ucb/install -c -o root -g root -m 555 ./etc/mainsback /usr/pkg/share/examples/apcupsd
/usr/pkg/bin/gmake dummy
gmake[1]: Entering directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6'
gmake[1]: Nothing to be done for `dummy'.
gmake[1]: Leaving directory `/work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6'
(CGI support disabled)
/usr/ucb/install -c -o root -g root -m 444 /work/pkgbuild/sysutils/apcupsd/work/apcupsd.master.conf  /usr/pkg/share/examples/apcupsd
/usr/ucb/install -c -o root -g root -m 444 /work/pkgbuild/sysutils/apcupsd/work/apcupsd.slave.conf  /usr/pkg/share/examples/apcupsd
/usr/ucb/install -c -o root -g root -m 555 /work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/distributions/netbsd/apcupsd  /usr/pkg/etc/rc.d
install: /work/pkgbuild/sysutils/apcupsd/work/apcupsd-3.8.6/distributions/netbsd/apcupsd: No such file or directory
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/sysutils/apcupsd
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/sysutils/apcupsd
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/sysutils/apcupsd
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/sysutils/apcupsd
BULK> apcupsd-3.8.6nb1 was marked as broken:
-rw-r--r--   1 root     other      19174 Jun 28 03:16 .broken.html
/usr/pkg/bin/bmake deinstall
===> Deinstalling for apcupsd
BULK> Marking all packages which depend upon apcupsd-3.8.6nb1 as broken:
BULK> Build for apcupsd-3.8.6nb1 was not successful, aborting.