Discrepancy between "make install" and portupgrade breaks builds

MC rossiya at gmail.com
Sun Sep 10 23:47:57 UTC 2006


Hi I have been doing a mass upgrade of 800 ports on a dedicated
workstation.  Some ports persistently fail to build.  Upon closer
inspection, after having done "pkgdb -F" a lot, I found that traditional
installation worked flawlessly for a number of ports while portupgrade
failed.  Apparently portupgrade is failing to take into account the special
Makefile flags of a subdirectory.  Instead it just seems to go with eh main
build settings which of course break.  Here's the difference in the flags
between a portupgrade run and the manual build:

portupgrade:

gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/lib'
/usr/local/bin/ccache /usr/bin/c++ -c -I/usr/local/include -L/usr/local/lib
-I/usr/local/include -fno-exceptions -fno-rtti -O2 -pipe -funit-at-a-time
-march=pentium4   apcconfig.c

make:

===>  Building for apcupsd-3.12.4
gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/lib'
/usr/local/bin/ccache /usr/bin/c++ -c -I/usr/local/include -L/usr/local/lib
-I/usr/local/include -fno-exceptions -fno-rt
ti -I/usr/local/include -L/usr/local/lib -Wall -pthread
-I/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4/include   apc
config.c

The directory looks like:

pocket:/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4/src/lib # tree -f .
.
|-- ./Makefile
|-- ./Makefile.in
|-- ./apcconfig.c
|-- ./apcerror.c
|-- ./apcevents.c
|-- ./apcexec.c
|-- ./apcfile.c
|-- ./apclibnis.c
|-- ./apclist.c
|-- ./apclock.c
|-- ./apclog.c
|-- ./apcsignal.c
|-- ./apcstatus.c
|-- ./asys.c
|-- ./dummy.c
|-- ./getopt.c
|-- ./getopt1.c
|-- ./inet_pton.c
|-- ./localtime_r.c
|-- ./memmove.c
|-- ./newups.c
|-- ./strcasecmp.c
|-- ./strstr.c
`-- ./wincompat.c


Here's a dump of the portupgrade run:

pocket:/usr/ports/sysutils/apcupsd #  LC_ALL=C jj portinstall -R
sysutils/apcupsd
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 753 packages
found (-1 +1) (...). done]
--->  Skipping 'lang/perl5.8' because it is held by user (specify -f to
force)
--->  Installing 'apcupsd-3.12.4' from a port (sysutils/apcupsd)
--->  Building '/usr/ports/sysutils/apcupsd' with make flags: "CFLAGS?= -O2
-pipe -funit-at-a-time -march=pentium4 "
===>  Cleaning for net-snmp-5.2.3_1
===>  Cleaning for gettext-0.14.5_2
===>  Cleaning for perl-5.8.8
===>  Cleaning for libtool-1.5.22_2
===>  Cleaning for openssl-0.9.8c
===>  Cleaning for autoconf-2.59_2
===>  Cleaning for libiconv-1.9.2_2
===>  Cleaning for m4-1.4.4
===>  Cleaning for help2man-1.36.4_1
===>  Cleaning for gmake-3.81_1
===>  Cleaning for p5-gettext-1.05_1
===>  Cleaning for apcupsd-3.12.4
===>  Vulnerability check disabled, database not found
===>  Found saved configuration for apcupsd-3.10.16_3
===>  Extracting for apcupsd-3.12.4
=> MD5 Checksum OK for apcupsd-3.12.4.tar.gz.
=> SHA256 Checksum OK for apcupsd-3.12.4.tar.gz.
===>  Patching for apcupsd-3.12.4
===>  Configuring for apcupsd-3.12.4
checking for true... /usr/bin/true
checking for false... /usr/bin/false
checking build system type... i386-unknown-freebsd6.1
checking host system type... i386-unknown-freebsd6.1
checking for gcc... /usr/local/bin/ccache /usr/bin/gcc
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 /usr/local/bin/ccache /usr/bin/gcc accepts -g... yes
checking for /usr/local/bin/ccache /usr/bin/gcc option to accept ANSI C...
none needed
checking how to run the C preprocessor... /usr/local/bin/ccache /usr/bin/gcc
-E
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/local/bin/ccache /usr/bin/c++ accepts -g... yes
checking whether /usr/local/bin/ccache /usr/bin/gcc and cc understand -c and
-o together... yes
checking for egrep... grep -E
checking whether /usr/local/bin/ccache /usr/bin/gcc needs -traditional... no
checking for a BSD-compatible install... /usr/bin/install -c -o root -g
wheel
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for library containing strerror... none required
checking for /usr/local/bin/ccache... /usr/local/bin/ccache /usr/bin/c++
test: /usr/local/bin/ccache: unexpected operator
checking for pthreads... checking for shutdown... /sbin/shutdown
checking for mail... /usr/bin/mail
checking for wall... /usr/bin/wall
checking for sh... /bin/sh
checking for gmake... /usr/local/bin/gmake
checking for makedepend... /usr/X11R6/bin/makedepend
checking for ranlib... /usr/bin/ranlib
checking for libtool... /usr/local/bin/libtool
checking for etags... /usr/local/bin/etags
checking for etags... /usr/local/bin/etags
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for echo... /bin/echo
checking for ln... /bin/ln
checking for sed... /usr/bin/sed
checking for ar... /usr/bin/ar
checking for mv... /bin/mv
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 nanosleep... yes
checking for usleep... yes
checking for syslog... yes
checking for strftime... yes
checking whether setpgrp takes no argument... no
checking for socket... yes
using libc's socket
checking for gethostname... yes
using libc's gethostname
checking for socklen_t... yes
checking for gethostbyname... yes
using libc's resolver
checking for gettext... no
checking for gettext in -lintl... yes
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... yes
checking for inet_pton... yes
checking for localtime_r... yes
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 an ANSI C-conforming const... yes
checking for inline... inline
checking for preprocessor stringizing operator... yes
checking whether #! works in shell scripts... yes
checking for libwrap... yes
checking for EVP_DigestInit in -lcrypto... yes
        including crypto library for snmp.
checking for snmp_open in -lnetsnmp... yes
checking for initscr in -lncurses... yes
checking for new_menu in -lmenu... yes
checking for new_form in -lform... yes
checking for new_panel in -lpanel... yes
checking if libsupc++ is required... yes
checking if GCC supports -fno-exceptions... yes
checking if GCC supports -fno-rtti... yes
checking for msgfmt... /usr/local/bin/msgfmt
checking whether /usr/local/bin/gmake sets $(MAKE)... yes
checking for ranlib... /usr/bin/ranlib
checking for working alloca.h... no
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking argz.h usability... no
checking argz.h presence... no
checking for argz.h... no
checking for limits.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
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... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... no
checking for wait... yes
checking for waitpid... yes
checking for wait3... yes
checking for union wait... no
Disabling internal libintl...
Disabling internationalization support...
Disabling cgi support...
checking ncurses/curses.h usability... no
checking ncurses/curses.h presence... no
checking for ncurses/curses.h... no
checking ncurses/menu.h usability... no
checking ncurses/menu.h presence... no
checking for ncurses/menu.h... no
checking ncurses/panel.h usability... no
checking ncurses/panel.h presence... no
checking for ncurses/panel.h... no
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking menu.h usability... yes
checking menu.h presence... yes
checking for menu.h... yes
checking panel.h usability... yes
checking panel.h presence... yes
checking for panel.h... yes
configure: creating ./config.status
config.status: creating autoconf/variables.mak
config.status: creating autoconf/Makefile
config.status: creating doc/Makefile
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating src/lib/Makefile
config.status: creating src/drivers/Makefile
config.status: creating platforms/Makefile
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/masterconnect
config.status: creating platforms/etc/mastertimeout
config.status: creating platforms/etc/onbattery
config.status: creating platforms/etc/Makefile
config.status: creating platforms/etc/apcupsd.conf
config.status: creating examples/Makefile
config.status: creating examples/safe.apccontrol
config.status: creating Makefile
config.status: creating platforms/freebsd/Makefile
config.status: creating platforms/freebsd/apcupsd
config.status: creating platforms/freebsd/apccontrol
config.status: creating src/drivers/apcsmart/Makefile
config.status: creating src/drivers/dumb/Makefile
config.status: creating src/drivers/usb/Makefile
config.status: creating src/drivers/usb/bsd/Makefile
config.status: creating src/libusbhid/Makefile
config.status: creating src/drivers/net/Makefile
config.status: creating src/drivers/snmp/Makefile
config.status: creating include/config.h
config.status: linking ././src/intl/libgettext.h to ./include/libintl.h
config.status: executing default-1 commands
config.status: executing default commands
Doing make of dependencies
Nothing to do for depend.
gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src'
gmake[1]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src'
gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/lib'
gmake[2]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/lib'
gmake[2]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/lib'
gmake[1]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/lib'
gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/libusbhid'
gmake[2]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/libusbhid'
gmake[2]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/libusbhid'
gmake[1]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/libusbhid'
gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers'
gmake[2]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers'
gmake[2]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers'
gmake[2]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/apcsmart'
gmake[3]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/apcsmart'
gmake[3]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/apcsmart'
gmake[2]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/apcsmart'
gmake[2]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/dumb'
gmake[3]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/dumb'
gmake[3]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/dumb'
gmake[2]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/dumb'
gmake[2]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/net'
gmake[3]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/net'
gmake[3]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/net'
gmake[2]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/net'
gmake[2]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/usb'
gmake[3]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/usb'
gmake[3]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/usb'
gmake[3]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/usb/bsd'
gmake[4]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/usb/bsd'
gmake[4]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/usb/bsd'
gmake[3]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/usb/bsd'
gmake[2]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/usb'
gmake[2]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/snmp'
gmake[3]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/snmp'
gmake[3]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/snmp'
gmake[2]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/snmp'
gmake[1]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers'
Nothing to do for depend.
Nothing to do for depend.
Nothing to do for depend.
gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/platforms/etc'
Nothing to do for depend.
gmake[1]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/platforms/etc'
gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/platforms/freebsd'
Nothing to do for depend.
gmake[1]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/platforms/freebsd'
Nothing to do for depend.
(cd examples; /usr/local/bin/gmake clean)
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig client readfifo megaclient newslave upsapm
/bin/rm -f core core.* 1 2 3 *.o
/bin/rm -f client readfifo megaclient newslave upsapm hid-ups hid-set
gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/lib'
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
gmake[1]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/lib'
gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/libusbhid'
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
gmake[1]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/libusbhid'
gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers'
gmake[2]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/apcsmart'
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
gmake[2]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/apcsmart'
gmake[2]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/dumb'
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
gmake[2]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/dumb'
gmake[2]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/net'
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
gmake[2]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/net'
gmake[2]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/usb'
gmake[3]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/usb/bsd'
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
gmake[3]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/usb/bsd'
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
gmake[2]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/usb'
gmake[2]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/drivers/snmp'
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
gmake[2]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers/snmp'
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
/bin/rm -f *_stamp
gmake[1]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/drivers'
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig apcupsd apctest apcaccess smtp powerflute
/bin/rm -f devicedbg
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/platforms/etc'
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
gmake[1]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/platforms/etc'
gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/platforms/freebsd'
gmake[1]: Nothing to be done for `clean'.
gmake[1]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/platforms/freebsd'
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
/bin/rm -f *.o *.lo *.a core core.* .*~ *~ *.bak
/bin/rm -f *.exe *.res *.cgi
/bin/rm -f 1 2 3 4 ID TAGS *.orig
find . -type f -size 0 -exec /bin/rm -f {} \;


Configuration on Sun Sep 10 15:10:05 PDT 2006:

  Host:                       i386-unknown-freebsd6.1 -- freebsd
6.1-RELEASE-p3
  Apcupsd version:            3.12.4 (19 August 2006)
  Source code location:       .
  Install binaries:           /usr/local/sbin
  Install config files:       /usr/local/etc/apcupsd
  Install man files:          /usr/local/man
  Nologin file in:            /var/run
  PID directory:              /var/run
  LOG dir (events, status)    /var/log
  LOCK dir (for serial port)  /var/spool/lock
  Power Fail dir              /var/run
  Compiler:                   /usr/local/bin/ccache /usr/bin/c++ 3.4.4
  Compiler flags:             -I/usr/local/include -L/usr/local/lib -Wall
  Linker flags:                -L/usr/local/lib -L/usr/local/lib -pthread
  Host and version:           freebsd 6.1-RELEASE-p3
  Shutdown Program:           /sbin/shutdown
  Port/Device:                /dev/usv
  Network Info Port (CGI):    3551
  Master/slave Port:          6666
  UPSTYPE                     apcsmart
  UPSCABLE                    smart

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

  enable-master-slave:        no
  enable-nis:                 yes
  with-nisip:                 0.0.0.0
  enable-cgi:                 no
  with-cgi-bin:               /etc/apcupsd
  with-libwrap:               yes
  enable-nls:                 no
  enable-libintl:             no
  enable-powerflute:          yes
  enable-pthreads:            yes
  enable-dist-install:        no

===>  Building for apcupsd-3.12.4
gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/lib'
/usr/local/bin/ccache /usr/bin/c++ -c -I/usr/local/include -L/usr/local/lib
-I/usr/local/include -fno-exceptions -fno-rtti -O2 -pipe -funit-at-a-time
-march=pentium4   apcconfig.c
apcconfig.c:28:17: apc.h: No such file or directory
apcconfig.c:35: error: `SLAVEINFO' does not name a type
apcconfig.c:39: error: `HANDLER' does not name a type
apcconfig.c:41: error: `HANDLER' does not name a type
apcconfig.c:49: error: `GENINFO' does not name a type
apcconfig.c:55: error: `GENINFO' does not name a type
apcconfig.c:61: error: `GENINFO' does not name a type
apcconfig.c:83: error: `GENINFO' does not name a type
apcconfig.c:93: error: `GENINFO' does not name a type
apcconfig.c:102: error: `GENINFO' does not name a type
apcconfig.c:110: error: `GENINFO' does not name a type
apcconfig.c:136: error: `PAIRS' does not name a type
apcconfig.c: In function `void print_pairs_table()':
apcconfig.c:275: error: `printf' undeclared (first use this function)
apcconfig.c:275: error: (Each undeclared identifier is reported only once
for each function it appears in.)
apcconfig.c:277: error: `table' undeclared (first use this function)
apcconfig.c:277: error: `NULL' undeclared (first use this function)
apcconfig.c: At global scope:
apcconfig.c:281: error: `UPSINFO' was not declared in this scope
apcconfig.c:281: error: `ups' was not declared in this scope
apcconfig.c:281: error: expected primary-expression before "int"
apcconfig.c:281: error: expected primary-expression before "const"
apcconfig.c:281: error: expected primary-expression before "const"
apcconfig.c:282: error: initializer expression list treated as compound
expression
apcconfig.c:282: error: expected `,' or `;' before '{' token
apcconfig.c:349: error: `UPSINFO' was not declared in this scope
apcconfig.c:349: error: `ups' was not declared in this scope
apcconfig.c:349: error: expected primary-expression before "int"
apcconfig.c:349: error: expected primary-expression before "const"
apcconfig.c:349: error: expected primary-expression before "const"
apcconfig.c:350: error: initializer expression list treated as compound
expression
apcconfig.c:350: error: expected `,' or `;' before '{' token
apcconfig.c:360: error: `UPSINFO' was not declared in this scope
apcconfig.c:360: error: `ups' was not declared in this scope
apcconfig.c:360: error: expected primary-expression before "int"
apcconfig.c:360: error: expected primary-expression before "const"
apcconfig.c:360: error: expected primary-expression before "const"
apcconfig.c:361: error: initializer expression list treated as compound
expression
apcconfig.c:361: error: expected `,' or `;' before '{' token
apcconfig.c:410: error: `UPSINFO' was not declared in this scope
apcconfig.c:410: error: `ups' was not declared in this scope
apcconfig.c:410: error: expected primary-expression before "int"
apcconfig.c:410: error: expected primary-expression before "const"
apcconfig.c:410: error: expected primary-expression before "const"
apcconfig.c:411: error: initializer expression list treated as compound
expression
apcconfig.c:411: error: expected `,' or `;' before '{' token
apcconfig.c:445: error: `UPSINFO' was not declared in this scope
apcconfig.c:445: error: `ups' was not declared in this scope
apcconfig.c:445: error: expected primary-expression before "int"
apcconfig.c:446: error: expected primary-expression before "const"
apcconfig.c:446: error: expected primary-expression before "const"
apcconfig.c:447: error: initializer expression list treated as compound
expression
apcconfig.c:447: error: expected `,' or `;' before '{' token
apcconfig.c:471: error: `UPSINFO' was not declared in this scope
apcconfig.c:471: error: `ups' was not declared in this scope
apcconfig.c:471: error: expected primary-expression before "int"
apcconfig.c:471: error: expected primary-expression before "const"
apcconfig.c:471: error: expected primary-expression before "const"
apcconfig.c:472: error: initializer expression list treated as compound
expression
apcconfig.c:472: error: expected `,' or `;' before '{' token
apcconfig.c:490: error: `UPSINFO' was not declared in this scope
apcconfig.c:490: error: `ups' was not declared in this scope
apcconfig.c:490: error: expected primary-expression before "int"
apcconfig.c:491: error: expected primary-expression before "const"
apcconfig.c:491: error: expected primary-expression before "const"
apcconfig.c:492: error: initializer expression list treated as compound
expression
apcconfig.c:492: error: expected `,' or `;' before '{' token
apcconfig.c:543: error: `UPSINFO' was not declared in this scope
apcconfig.c:543: error: `ups' was not declared in this scope
apcconfig.c:543: error: expected primary-expression before "char"
apcconfig.c:544: error: initializer expression list treated as compound
expression
apcconfig.c:544: error: expected `,' or `;' before '{' token
apcconfig.c:644: error: variable or field `init_ups_struct' declared void
apcconfig.c:644: error: `UPSINFO' was not declared in this scope
apcconfig.c:644: error: `ups' was not declared in this scope
apcconfig.c:645: error: expected `,' or `;' before '{' token
apcconfig.c:759: error: variable or field `check_for_config' declared void
apcconfig.c:759: error: `UPSINFO' was not declared in this scope
apcconfig.c:759: error: `ups' was not declared in this scope
apcconfig.c:759: error: expected primary-expression before "char"
apcconfig.c:760: error: initializer expression list treated as compound
expression
apcconfig.c:760: error: expected `,' or `;' before '{' token
gmake[1]: *** [apcconfig.o] Error 1
gmake[1]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/lib'
/usr/local/bin/ccache /usr/bin/c++ -c -I/usr/local/include -L/usr/local/lib
-I/usr/local/include -fno-exceptions -fno-rtti -I/usr/local/include
-L/usr/local/lib -Wall -pthread  -I/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/include   apcupsd.c
/usr/local/bin/ccache /usr/bin/c++ -c -I/usr/local/include -L/usr/local/lib
-I/usr/local/include -fno-exceptions -fno-rtti -I/usr/local/include
-L/usr/local/lib -Wall -pthread  -I/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/include   options.c
/usr/local/bin/ccache /usr/bin/c++ -c -I/usr/local/include -L/usr/local/lib
-I/usr/local/include -fno-exceptions -fno-rtti -I/usr/local/include
-L/usr/local/lib -Wall -pthread  -I/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/include   apcnet.c
/usr/local/bin/ccache /usr/bin/c++ -c -I/usr/local/include -L/usr/local/lib
-I/usr/local/include -fno-exceptions -fno-rtti -I/usr/local/include
-L/usr/local/lib -Wall -pthread  -I/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/include   reports.c
/usr/local/bin/ccache /usr/bin/c++ -c -I/usr/local/include -L/usr/local/lib
-I/usr/local/include -fno-exceptions -fno-rtti -I/usr/local/include
-L/usr/local/lib -Wall -pthread  -I/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/include   action.c
/usr/local/bin/ccache /usr/bin/c++ -c -I/usr/local/include -L/usr/local/lib
-I/usr/local/include -fno-exceptions -fno-rtti -I/usr/local/include
-L/usr/local/lib -Wall -pthread  -I/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/include   apcnis.c
/usr/local/bin/ccache /usr/bin/c++ -c -I/usr/local/include -L/usr/local/lib
-I/usr/local/include -fno-exceptions -fno-rtti -I/usr/local/include
-L/usr/local/lib -Wall -pthread  -I/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/include   device.c
gmake[1]: Entering directory `/usr/ports/sysutils/apcupsd/work/apcupsd-
3.12.4/src/lib'
/usr/local/bin/ccache /usr/bin/c++ -c -I/usr/local/include -L/usr/local/lib
-I/usr/local/include -fno-exceptions -fno-rtti -O2 -pipe -funit-at-a-time
-march=pentium4   apcconfig.c
apcconfig.c:28:17: apc.h: No such file or directory
apcconfig.c:35: error: `SLAVEINFO' does not name a type
apcconfig.c:39: error: `HANDLER' does not name a type
apcconfig.c:41: error: `HANDLER' does not name a type
apcconfig.c:49: error: `GENINFO' does not name a type
apcconfig.c:55: error: `GENINFO' does not name a type
apcconfig.c:61: error: `GENINFO' does not name a type
apcconfig.c:83: error: `GENINFO' does not name a type
apcconfig.c:93: error: `GENINFO' does not name a type
apcconfig.c:102: error: `GENINFO' does not name a type
apcconfig.c:110: error: `GENINFO' does not name a type
apcconfig.c:136: error: `PAIRS' does not name a type
apcconfig.c: In function `void print_pairs_table()':
apcconfig.c:275: error: `printf' undeclared (first use this function)
apcconfig.c:275: error: (Each undeclared identifier is reported only once
for each function it appears in.)
apcconfig.c:277: error: `table' undeclared (first use this function)
apcconfig.c:277: error: `NULL' undeclared (first use this function)
apcconfig.c: At global scope:
apcconfig.c:281: error: `UPSINFO' was not declared in this scope
apcconfig.c:281: error: `ups' was not declared in this scope
apcconfig.c:281: error: expected primary-expression before "int"
apcconfig.c:281: error: expected primary-expression before "const"
apcconfig.c:281: error: expected primary-expression before "const"
apcconfig.c:282: error: initializer expression list treated as compound
expression
apcconfig.c:282: error: expected `,' or `;' before '{' token
apcconfig.c:349: error: `UPSINFO' was not declared in this scope
apcconfig.c:349: error: `ups' was not declared in this scope
apcconfig.c:349: error: expected primary-expression before "int"
apcconfig.c:349: error: expected primary-expression before "const"
apcconfig.c:349: error: expected primary-expression before "const"
apcconfig.c:350: error: initializer expression list treated as compound
expression
apcconfig.c:350: error: expected `,' or `;' before '{' token
apcconfig.c:360: error: `UPSINFO' was not declared in this scope
apcconfig.c:360: error: `ups' was not declared in this scope
apcconfig.c:360: error: expected primary-expression before "int"
apcconfig.c:360: error: expected primary-expression before "const"
apcconfig.c:360: error: expected primary-expression before "const"
apcconfig.c:361: error: initializer expression list treated as compound
expression
apcconfig.c:361: error: expected `,' or `;' before '{' token
apcconfig.c:410: error: `UPSINFO' was not declared in this scope
apcconfig.c:410: error: `ups' was not declared in this scope
apcconfig.c:410: error: expected primary-expression before "int"
apcconfig.c:410: error: expected primary-expression before "const"
apcconfig.c:410: error: expected primary-expression before "const"
apcconfig.c:411: error: initializer expression list treated as compound
expression
apcconfig.c:411: error: expected `,' or `;' before '{' token
apcconfig.c:445: error: `UPSINFO' was not declared in this scope
apcconfig.c:445: error: `ups' was not declared in this scope
apcconfig.c:445: error: expected primary-expression before "int"
apcconfig.c:446: error: expected primary-expression before "const"
apcconfig.c:446: error: expected primary-expression before "const"
apcconfig.c:447: error: initializer expression list treated as compound
expression
apcconfig.c:447: error: expected `,' or `;' before '{' token
apcconfig.c:471: error: `UPSINFO' was not declared in this scope
apcconfig.c:471: error: `ups' was not declared in this scope
apcconfig.c:471: error: expected primary-expression before "int"
apcconfig.c:471: error: expected primary-expression before "const"
apcconfig.c:471: error: expected primary-expression before "const"
apcconfig.c:472: error: initializer expression list treated as compound
expression
apcconfig.c:472: error: expected `,' or `;' before '{' token
apcconfig.c:490: error: `UPSINFO' was not declared in this scope
apcconfig.c:490: error: `ups' was not declared in this scope
apcconfig.c:490: error: expected primary-expression before "int"
apcconfig.c:491: error: expected primary-expression before "const"
apcconfig.c:491: error: expected primary-expression before "const"
apcconfig.c:492: error: initializer expression list treated as compound
expression
apcconfig.c:492: error: expected `,' or `;' before '{' token
apcconfig.c:543: error: `UPSINFO' was not declared in this scope
apcconfig.c:543: error: `ups' was not declared in this scope
apcconfig.c:543: error: expected primary-expression before "char"
apcconfig.c:544: error: initializer expression list treated as compound
expression
apcconfig.c:544: error: expected `,' or `;' before '{' token
apcconfig.c:644: error: variable or field `init_ups_struct' declared void
apcconfig.c:644: error: `UPSINFO' was not declared in this scope
apcconfig.c:644: error: `ups' was not declared in this scope
apcconfig.c:645: error: expected `,' or `;' before '{' token
apcconfig.c:759: error: variable or field `check_for_config' declared void
apcconfig.c:759: error: `UPSINFO' was not declared in this scope
apcconfig.c:759: error: `ups' was not declared in this scope
apcconfig.c:759: error: expected primary-expression before "char"
apcconfig.c:760: error: initializer expression list treated as compound
expression
apcconfig.c:760: error: expected `,' or `;' before '{' token
gmake[1]: *** [apcconfig.o] Error 1
gmake[1]: Leaving directory `/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4
/src/lib'
gmake: *** [/usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4/src/lib/libapc.a]
Error 2
*** Error code 2

Stop in /usr/ports/sysutils/apcupsd/work/apcupsd-3.12.4.
*** Error code 1

Stop in /usr/ports/sysutils/apcupsd.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portinstall.39247.11 env make "CFLAGS?= -O2 -pipe -funit-at-a-time
-march=pentium4 "
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
        ! sysutils/apcupsd      (missing header)
--->  Packages processed: 0 done, 11 ignored, 0 skipped and 1 failed
pocket:/usr/ports/sysutils/apcupsd #



More information about the freebsd-ports-bugs mailing list