>>> apcupsd 3.14.14 Extracting gzip -d -c /tmp/instance-1/dl/apcupsd/apcupsd-3.14.14.tar.gz | /tmp/instance-1/output-1/host/bin/tar --strip-components=1 -C /tmp/instance-1/output-1/build/apcupsd-3.14.14 -xf - >>> apcupsd 3.14.14 Patching >>> apcupsd 3.14.14 Updating config.sub and config.guess for file in config.guess config.sub; do for i in $(find /tmp/instance-1/output-1/build/apcupsd-3.14.14 -name $file); do cp support/gnuconfig/$file $i; done; done >>> apcupsd 3.14.14 Patching libtool >>> apcupsd 3.14.14 Configuring (cd /tmp/instance-1/output-1/build/apcupsd-3.14.14/ && rm -rf config.cache && PATH="/tmp/instance-1/output-1/host/bin:/tmp/instance-1/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" AR="/tmp/instance-1/output-1/host/bin/arm-linux-ar" AS="/tmp/instance-1/output-1/host/bin/arm-linux-as" LD="/tmp/instance-1/output-1/host/bin/arm-linux-ld" NM="/tmp/instance-1/output-1/host/bin/arm-linux-nm" CC="/tmp/instance-1/output-1/host/bin/arm-linux-gcc" GCC="/tmp/instance-1/output-1/host/bin/arm-linux-gcc" CPP="/tmp/instance-1/output-1/host/bin/arm-linux-cpp" CXX="/tmp/instance-1/output-1/host/bin/arm-linux-g++" FC="/tmp/instance-1/output-1/host/bin/arm-linux-gfortran" F77="/tmp/instance-1/output-1/host/bin/arm-linux-gfortran" RANLIB="/tmp/instance-1/output-1/host/bin/arm-linux-ranlib" READELF="/tmp/instance-1/output-1/host/bin/arm-linux-readelf" STRIP="/tmp/instance-1/output-1/host/bin/arm-linux-strip" OBJCOPY="/tmp/instance-1/output-1/host/bin/arm-linux-objcopy" OBJDUMP="/tmp/instance-1/output-1/host/bin/arm-linux-objdump" AR_FOR_BUILD="/usr/bin/ar" AS_FOR_BUILD="/usr/bin/as" CC_FOR_BUILD="/usr/bin/gcc" GCC_FOR_BUILD="/usr/bin/gcc" CXX_FOR_BUILD="/usr/bin/g++" LD_FOR_BUILD="/usr/bin/ld" CPPFLAGS_FOR_BUILD="-I/tmp/instance-1/output-1/host/include" CFLAGS_FOR_BUILD="-O2 -I/tmp/instance-1/output-1/host/include" CXXFLAGS_FOR_BUILD="-O2 -I/tmp/instance-1/output-1/host/include" LDFLAGS_FOR_BUILD="-L/tmp/instance-1/output-1/host/lib -Wl,-rpath,/tmp/instance-1/output-1/host/lib" FCFLAGS_FOR_BUILD="" DEFAULT_ASSEMBLER="/tmp/instance-1/output-1/host/bin/arm-linux-as" DEFAULT_LINKER="/tmp/instance-1/output-1/host/bin/arm-linux-ld" CPPFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " LDFLAGS="" FCFLAGS=" -Os " FFLAGS=" -Os " PKG_CONFIG="/tmp/instance-1/output-1/host/bin/pkg-config" STAGING_DIR="/tmp/instance-1/output-1/host/arm-buildroot-linux-uclibcgnueabihf/sysroot" INTLTOOL_PERL=/usr/bin/perl ac_cv_lbl_unaligned_fail=yes ac_cv_func_mmap_fixed_mapped=yes ac_cv_func_memcmp_working=yes ac_cv_have_decl_malloc=yes gl_cv_func_malloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes ac_cv_func_calloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes lt_cv_sys_lib_search_path_spec="" ac_cv_c_bigendian=no CONFIG_SITE=/dev/null ./configure --target=arm-buildroot-linux-uclibcgnueabihf --host=arm-buildroot-linux-uclibcgnueabihf --build=x86_64-pc-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --program-prefix="" --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no --disable-dependency-tracking --enable-ipv6 --disable-nls --disable-static --enable-shared --disable-test --disable-apcsmart --disable-dumb --disable-modbus-usb --disable-modbus --disable-net --disable-pcnet --enable-snmp --disable-usb ) configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --disable-dependency-tracking, --enable-ipv6, --disable-nls, --disable-static, --enable-shared configure: loading site script /dev/null checking for true... /bin/true checking for false... /bin/false checking build system type... x86_64-pc-linux-gnu checking host system type... arm-buildroot-linux-uclibcgnueabihf checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether /tmp/instance-1/output-1/host/bin/arm-linux-g++ accepts -g... yes checking for arm-buildroot-linux-uclibcgnueabihf-gcc... /tmp/instance-1/output-1/host/bin/arm-linux-gcc checking whether we are using the GNU C compiler... yes checking whether /tmp/instance-1/output-1/host/bin/arm-linux-gcc accepts -g... yes checking for /tmp/instance-1/output-1/host/bin/arm-linux-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... /tmp/instance-1/output-1/host/bin/arm-linux-cpp 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... no configure: WARNING: mail program not found ! checking for wall... /usr/bin/wall checking for sh... /bin/sh checking for GNU make... make checking for arm-buildroot-linux-uclibcgnueabihf-ranlib... /tmp/instance-1/output-1/host/bin/arm-linux-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 arm-buildroot-linux-uclibcgnueabihf-ar... /tmp/instance-1/output-1/host/bin/arm-linux-ar checking for mv... /bin/mv checking for arm-buildroot-linux-uclibcgnueabihf-windres... no checking for windres... no checking for arm-buildroot-linux-uclibcgnueabihf-strip... no checking for arm-buildroot-linux-uclibcgnueabihf-true... no checking for strip... strip configure: WARNING: using cross tools not prefixed with host triplet checking for rst2html... no checking for rst2html.py... no checking for rst2pdf... no checking for abort... yes checking for calloc... yes checking for getpid... yes checking for rewind... yes checking for signal... yes checking for strerror... yes checking for strncmp... yes checking for strncpy... yes checking for vfprintf... yes checking for snprintf... yes checking for vsnprintf... yes checking for strlcpy... yes checking for strlcat... yes checking for accept4... yes checking for fork... yes checking for ioctl... yes checking for kill... yes checking for select... yes checking for setsid... yes checking for tcgetattr... yes checking for syslog... yes checking for library containing nanosleep... none required checking for strftime... 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 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 grep that handles long lines and -e... /bin/grep checking for egrep... /bin/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 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 X... no checking whether #! works in shell scripts... yes Using halpolicydir=/usr/share/hal/fdi/policy/20thirdparty checking pkg-config is at least version 0.9.0... ./configure: 11885: ./configure.lineno: /tmp/instance-1/output-1/host/bin/pkg-config: not found no checking how many arguments gethostbyname_r() takes... six checking if libsupc++ is required... yes checking whether C compiler accepts -fno-exceptions... yes checking whether C compiler accepts -fno-rtti... yes checking whether C compiler accepts -Wall... yes checking whether C compiler accepts -Wno-unused-result... yes checking for wait... yes checking for waitpid... yes checking for wait3... yes Disabling cgi support... configure: creating ./config.status config.status: creating autoconf/variables.mak config.status: WARNING: 'autoconf/variables.mak.in' seems to ignore the --datarootdir setting 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 platforms/debian/apcupsd config.status: creating platforms/debian/ups-monitor config.status: creating include/apcconfig.h configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --disable-dependency-tracking, --enable-ipv6, --disable-nls, --disable-static, --enable-shared make[1]: Entering directory '/tmp/instance-1/output-1/build/apcupsd-3.14.14' make[1]: Leaving directory '/tmp/instance-1/output-1/build/apcupsd-3.14.14' Configuration on Thu Apr 23 11:54:14 MDT 2020: Host: arm-buildroot-linux-uclibcgnueabihf -- debian buster/sid Apcupsd version: 3.14.14 (31 May 2016) Source code location: . Install binaries: /sbin Install config files: /etc Install man files: ${prefix}/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 Compiler: /tmp/instance-1/output-1/host/bin/arm-linux-g++ 2020.02) Preprocessor flags: -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 Compiler flags: -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fno-exceptions -fno-rtti -Wall -Wno-unused-result Linker: /tmp/instance-1/output-1/host/bin/arm-linux-gcc Linker flags: Host and version: debian buster/sid Shutdown Program: /sbin/shutdown Port/Device: /dev/ttyS0 Network Info Port (CGI): 3551 UPSTYPE apcsmart UPSCABLE smart drivers (no-* are disabled): no-apcsmart no-dumb no-net no-usb snmp no-pcnet no-modbus no-modbus-usb no-test enable-nis: yes with-nisip: 0.0.0.0 enable-cgi: no with-cgi-bin: /etc/apcupsd with-libwrap: enable-pthreads: yes enable-dist-install: yes enable-gapcmon: no enable-apcagent: no Configuration complete: Run 'make' to build apcuspd. >>> apcupsd 3.14.14 Building PATH="/tmp/instance-1/output-1/host/bin:/tmp/instance-1/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" /usr/bin/make -j32 -C /tmp/instance-1/output-1/build/apcupsd-3.14.14/src make[1]: Entering directory '/tmp/instance-1/output-1/build/apcupsd-3.14.14/src' src/lib src/drivers src/drivers/snmplite CXX src/drivers/snmplite/mibs.cpp CXX src/drivers/snmplite/rfc1628-mib.cpp CXX src/drivers/snmplite/asn.cpp CXX src/drivers/snmplite/apc-mib.cpp CXX src/drivers/snmplite/mge-mib.cpp CXX src/drivers/snmplite/snmp.cpp CXX src/lib/apcerror.c CXX src/drivers/snmplite/snmplite.cpp CXX src/lib/apcconfig.c CXX src/lib/apcevents.c CXX src/lib/apcexec.c CXX src/lib/apcfile.c CXX src/lib/apclibnis.c CXX src/lib/apclog.c CXX src/lib/apcsignal.c CXX src/lib/apclock.c CXX src/lib/apcstatus.c CXX src/lib/asys.c CXX src/lib/newups.c CXX src/lib/md5.c CXX src/lib/statmgr.cpp CXX src/lib/gethostname.c CXX src/lib/amutex.cpp CXX src/lib/astring.cpp CXX src/lib/autil.cpp CXX src/lib/atimer.cpp CXX src/lib/athread.cpp CXX src/lib/usbvidpid.cpp In file included from mge-mib.cpp:25: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. CXX src/lib/cloexec.c make[4]: *** [../../../autoconf/targets.mak:155: .obj/mge-mib.o] Error 1 make[4]: *** Waiting for unfinished jobs.... In file included from apcerror.c:26: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. In file included from snmplite.cpp:25: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. In file included from amutex.cpp:25: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/amutex.h:28:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. In file included from rfc1628-mib.cpp:25: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. make[3]: *** [../../autoconf/targets.mak:148: .obj/apcerror.o] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from snmp.h:28, from mibs.h:28, from mibs.cpp:25: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. In file included from apclibnis.c:26: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. make[3]: *** [../../autoconf/targets.mak:155: .obj/amutex.o] Error 1 make[4]: *** [../../../autoconf/targets.mak:155: .obj/snmplite.o] Error 1 In file included from snmp.cpp:25: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. make[4]: *** [../../../autoconf/targets.mak:155: .obj/rfc1628-mib.o] Error 1 In file included from apcevents.c:25: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. In file included from apclog.c:26: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. In file included from apcfile.c:26: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. make[4]: *** [../../../autoconf/targets.mak:155: .obj/mibs.o] Error 1 make[3]: *** [../../autoconf/targets.mak:148: .obj/apclibnis.o] Error 1 make[4]: *** [../../../autoconf/targets.mak:155: .obj/snmp.o] Error 1 In file included from apcconfig.c:28: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. In file included from apc-mib.cpp:25: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. In file included from apclock.c:28: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. make[3]: *** [../../autoconf/targets.mak:148: .obj/apclog.o] Error 1 make[3]: *** [../../autoconf/targets.mak:148: .obj/apcevents.o] Error 1 In file included from asys.c:29: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. make[3]: *** [../../autoconf/targets.mak:148: .obj/apcfile.o] Error 1 In file included from apcexec.c:27: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. In file included from apcsignal.c:26: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. In file included from apcstatus.c:25: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. make[4]: *** [../../../autoconf/targets.mak:155: .obj/apc-mib.o] Error 1 make[3]: *** [../../autoconf/targets.mak:148: .obj/apclock.o] Error 1 make[3]: *** [../../autoconf/targets.mak:148: .obj/apcconfig.o] Error 1 make[3]: *** [../../autoconf/targets.mak:148: .obj/asys.o] Error 1 In file included from newups.c:26: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. make[3]: *** [../../autoconf/targets.mak:148: .obj/apcexec.o] Error 1 make[3]: *** [../../autoconf/targets.mak:148: .obj/apcsignal.o] Error 1 make[3]: *** [../../autoconf/targets.mak:148: .obj/apcstatus.o] Error 1 make[3]: *** [../../autoconf/targets.mak:148: .obj/newups.o] Error 1 In file included from atimer.cpp:23: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/atimer.h:28:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. In file included from athread.cpp:25: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/athread.h:28:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. make[3]: *** [../../autoconf/targets.mak:155: .obj/atimer.o] Error 1 make[3]: *** [../../autoconf/targets.mak:155: .obj/athread.o] Error 1 In file included from gethostname.c:1: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. In file included from statmgr.cpp:19: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. make[3]: *** [../../autoconf/targets.mak:148: .obj/gethostname.o] Error 1 make[3]: *** [../../autoconf/targets.mak:155: .obj/statmgr.o] Error 1 In file included from autil.cpp:26: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. make[3]: *** [../../autoconf/targets.mak:155: .obj/autil.o] Error 1 In file included from cloexec.c:25: /tmp/instance-1/output-1/build/apcupsd-3.14.14/include/apc.h:67:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. make[3]: *** [../../autoconf/targets.mak:148: .obj/cloexec.o] Error 1 make[2]: *** [../../autoconf/targets.mak:55: all] Error 2 make[1]: *** [../autoconf/targets.mak:111: lib_DIR] Error 2 make[1]: *** Waiting for unfinished jobs.... make[3]: *** [../../../autoconf/targets.mak:55: all] Error 2 make[2]: *** [../../autoconf/targets.mak:111: snmplite_DIR] Error 2 make[1]: *** [../autoconf/targets.mak:111: drivers_DIR] Error 2 make[1]: Leaving directory '/tmp/instance-1/output-1/build/apcupsd-3.14.14/src' make: *** [package/pkg-generic.mk:269: /tmp/instance-1/output-1/build/apcupsd-3.14.14/.stamp_built] Error 2 make: Leaving directory '/tmp/instance-1/buildroot'