Opde Issues Tracker

compile.25

build number: 25

re-implement command

docker pull immortalwrt/opde:sdk
docker run -it --rm immortalwrt/opde:sdk zsh # or bash
export http_proxy= # [your proxy], do not use localhost or 127.0.0.1
export https_proxy=$http_proxy
opde feeds && opde config -a
make package/feeds/packages/apcupsd/compile -j$(nproc) || make package/feeds/packages/apcupsd/compile V=s

Compile.txt

Applying ./patches/010-fix-usb.patch using plaintext: 
patching file include/libusb.h.in
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /openwrt/include/site/x86_64
checking for true... /usr/bin/true
checking for false... /usr/bin/false
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-openwrt-linux-gnu
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 ccache_cxx accepts -g... yes
checking for x86_64-openwrt-linux-gcc... ccache_cc
checking whether we are using the GNU C compiler... yes
checking whether ccache_cc accepts -g... yes
checking for ccache_cc option to accept ISO C89... none needed
checking how to run the C preprocessor... ccache_cc -E
checking for a BSD-compatible install... /openwrt/staging_dir/host/bin/install -c
checking for gawk... gawk
checking for library containing strerror... none required
checking for shutdown... /sbin/halt
checking for mail... /bin/true
checking for wall... /bin/true
checking for sh... /bin/sh
checking for GNU make... make
checking for x86_64-openwrt-linux-ranlib... x86_64-openwrt-linux-musl-gcc-ranlib
checking for rm... /usr/bin/rm
checking for cp... /openwrt/staging_dir/host/bin/cp
checking for echo... /usr/bin/echo
checking for ln... /usr/bin/ln
checking for sed... /openwrt/staging_dir/host/bin/sed
checking for x86_64-openwrt-linux-ar... x86_64-openwrt-linux-musl-gcc-ar
checking for mv... /usr/bin/mv
checking for x86_64-openwrt-linux-windres... no
checking for windres... no
checking for x86_64-openwrt-linux-strip... x86_64-openwrt-linux-strip
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... (cached) yes
checking for strncmp... yes
checking for strncpy... yes
checking for vfprintf... yes
checking for snprintf... yes
checking for vsnprintf... (cached) 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... (cached) 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... /openwrt/staging_dir/host/bin/grep
checking for egrep... /openwrt/staging_dir/host/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... disabled
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.
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
Using Linux USB driver.
checking for libusb-config... /openwrt/staging_dir/target-x86_64_musl/host/bin/libusb-config
Using generic libusb USB driver.
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 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
checking for snprintf... (cached) yes
Enabling cgi program support...
distname set to unknown
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/unknown/apcupsd
config.status: creating platforms/unknown/halt
config.status: creating include/libusb.h
config.status: creating src/cgi/cgiconfig.h
config.status: creating include/apcconfig.h
configure: WARNING: unrecognized options: --disable-nls
make[4]: Entering directory '/openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14'
make[4]: Leaving directory '/openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14'


Configuration on Fri Sep 10 07:09:51 UTC 2021:

  Host:                       x86_64-openwrt-linux-gnu -- unknown unknown
  Apcupsd version:            3.14.14 (31 May 2016)
  Source code location:       .
  Install binaries:           /usr/sbin
  Install config files:       /etc/apcupsd
  Install man files:          /usr/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:                   ccache_cxx GCC
  Preprocessor flags:         -I/openwrt/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/include -I/openwrt/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include/fortify -I/openwrt/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include  -I$(topdir)/src/libusbhid
  Compiler flags:             -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14=apcupsd-3.14.14 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -fno-exceptions -fno-rtti -Wall -Wno-unused-result 
  Linker:                     ccache_cc
  Linker flags:               -L/openwrt/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib -L/openwrt/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -znow -zrelro 
  Host and version:           unknown unknown
  Shutdown Program:           /sbin/halt
  Port/Device:                /dev/ttyS0
  Network Info Port (CGI):    3551
  UPSTYPE                     apcsmart
  UPSCABLE                    smart

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

  enable-nis:                 yes
  with-nisip:                 0.0.0.0
  enable-cgi:                 yes
  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.

make[4]: Entering directory '/openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14'
        src
        src/lib
  CXX   src/lib/apcconfig.c
  CXX   src/lib/apcerror.c
  CXX   src/lib/apcevents.c
  CXX   src/lib/apcexec.c
  CXX   src/lib/apcfile.c
  CXX   src/lib/apclibnis.c
  CXX   src/lib/apclock.c
  CXX   src/lib/apclog.c
  CXX   src/lib/apcsignal.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
  CXX   src/lib/cloexec.c
  AR    src/lib/libapc.a
        src/drivers
        src/drivers/apcsmart
  CXX   src/drivers/apcsmart/smartsetup2.c
  CXX   src/drivers/apcsmart/smartoper.c
  CXX   src/drivers/apcsmart/smart.c
  CXX   src/drivers/apcsmart/smarteeprom.c
  CXX   src/drivers/apcsmart/smartsetup.c
  AR    src/drivers/apcsmart/libapcsmartdrv.a
        src/drivers/dumb
  CXX   src/drivers/dumb/dumbsetup.c
  CXX   src/drivers/dumb/dumboper.c
  AR    src/drivers/dumb/libdumbdrv.a
        src/drivers/net
  CXX   src/drivers/net/net.c
  AR    src/drivers/net/libnetdrv.a
        src/drivers/pcnet
  CXX   src/drivers/pcnet/pcnet.c
  AR    src/drivers/pcnet/libpcnetdrv.a
        src/drivers/usb
        src/drivers/usb/linux
  CXX   src/drivers/usb/linux/linux-usb.c
  CXX   src/drivers/usb/usb.c
  AR    src/drivers/usb/libusbdrv.a
        src/drivers/snmplite
  CXX   src/drivers/snmplite/rfc1628-mib.cpp
  CXX   src/drivers/snmplite/mibs.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/snmplite.cpp
  CXX   src/drivers/snmplite/snmp.cpp
  AR    src/drivers/snmplite/libsnmplitedrv.a
        src/drivers/modbus
  CXX   src/drivers/modbus/mapping.cpp
  CXX   src/drivers/modbus/modbus.cpp
  CXX   src/drivers/modbus/ModbusComm.cpp
  CXX   src/drivers/modbus/ModbusRs232Comm.cpp
  CXX   src/drivers/modbus/ModbusUsbComm.cpp
  AR    src/drivers/modbus/libmodbusdrv.a
  CXX   src/drivers/drivers.c
  AR    src/drivers/libdrivers.a
        src/cgi
  CXX   src/cgi/upsfetch.c
  CXX   src/cgi/cgilib.c
  CXX   src/cgi/multimon.c
  LD    src/cgi/multimon.cgi
  CXX   src/cgi/upsstats.c
  LD    src/cgi/upsstats.cgi
  CXX   src/cgi/upsfstats.c
  LD    src/cgi/upsfstats.cgi
  CXX   src/cgi/upsimage.c
  LD    src/cgi/upsimage.cgi
  MKDIR /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd
  COPY  multimon.cgi => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd
  COPY  upsstats.cgi => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd
  COPY  upsfstats.cgi => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd
  COPY  upsimage.cgi => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd
  MKDIR /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd
  COPY  apcupsd.css => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd/apcupsd.css
  COPY  hosts.conf => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd/hosts.conf
  COPY  multimon.conf => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd/multimon.conf
        src/libusbhid
  CXX   src/libusbhid/parse.c
  CXX   src/libusbhid/data.c
  CXX   src/libusbhid/descr.c
  CXX   src/libusbhid/HidUps.cpp
  AR    src/libusbhid/libusbhid.a
  CXX   src/options.c
  CXX   src/device.c
  CXX   src/reports.c
  CXX   src/action.c
  CXX   src/apcupsd.c
  CXX   src/apcnis.c
  LD    src/apcupsd
  CXX   src/apcaccess.c
  LD    src/apcaccess
  CXX   src/apctest.c
  LD    src/apctest
  CXX   src/smtp.c
  LD    src/smtp
  MKDIR /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/usr/sbin
  COPY  apcupsd => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/usr/sbin/apcupsd
  COPY  apctest => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/usr/sbin/apctest
  COPY  apcaccess => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/usr/sbin/apcaccess
  COPY  smtp => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/usr/sbin/smtp
        platforms
        platforms/etc
  COPY  apcupsd.conf => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd/apcupsd.conf
  COPY  changeme => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd/changeme
  COPY  commfailure => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd/commfailure
  COPY  commok => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd/commok
  COPY  offbattery => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd/offbattery
  COPY  onbattery => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd/onbattery
        platforms/unknown
  ------------------------------------------------------------
  Unknown distribution installation
  ------------------------------------------------------------
You have to manually install apcupsd boot script and
halt script for clean emergency shutdown.
Please contribute your distribution install to apcupsd team.
I'm sorry: you are on your own.
  COPY  apccontrol => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/etc/apcupsd/apccontrol
  MKDIR /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/usr/share/hal/fdi/policy/20thirdparty
  COPY  80-apcupsd-ups-policy.fdi => /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/ipkg-install/usr/share/hal/fdi/policy/20thirdparty
        doc
  MAN   apcupsd.8 -> apcupsd.man.txt
/bin/bash: col: command not found
make[6]: *** [Makefile:10: apcupsd.man.txt] Error 127
make[5]: *** [../autoconf/targets.mak:55: all] Error 2
make[4]: *** [autoconf/targets.mak:111: doc_DIR] Error 2
make[4]: Leaving directory '/openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14'
make[3]: *** [Makefile:111: /openwrt/build_dir/target-x86_64_musl/apcupsd-3.14.14/.built] Error 2
Last updated on 10 Sep 2021
Published on 10 Sep 2021