=> Building sysutils/openupsd Started : Friday, 20 APR 2018 at 07:36:08 UTC Platform: 5.3-DEVELOPMENT DragonFly v5.3.0.81.g32506c-DEVELOPMENT #29: Tue Apr 10 08:49:52 PDT 2018 marino@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- UNAME_r=5.0-SYNTH UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=DragonFly 5.0-SYNTH UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 TERM=dumb PKG_CACHEDIR=/var/cache/pkg8 PKG_DBDIR=/var/db/pkg8 PORTSDIR=/xports LANG=C HOME=/root USER=root -------------------------------------------------- -- Options -------------------------------------------------- -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- XDG_DATA_HOME=/construction/sysutils/openupsd XDG_CONFIG_HOME=/construction/sysutils/openupsd HOME=/construction/sysutils/openupsd TMPDIR="/tmp" PATH=/construction/sysutils/openupsd/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc50 CONFIG_SITE=/xports/Templates/config.site lt_cv_sys_max_cmd_len=262144 -------------------------------------------------- -- CONFIGURE_ARGS -------------------------------------------------- --program-transform-name= --bindir=/usr/local/sbin --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} -------------------------------------------------- -- MAKE_ENV -------------------------------------------------- XDG_DATA_HOME=/construction/sysutils/openupsd XDG_CONFIG_HOME=/construction/sysutils/openupsd HOME=/construction/sysutils/openupsd TMPDIR="/tmp" PATH=/construction/sysutils/openupsd/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc50 PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing" CPP="cpp" CPPFLAGS="" LDFLAGS="" LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" -------------------------------------------------- -- MAKE_ARGS -------------------------------------------------- DESTDIR=/construction/sysutils/openupsd/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- PORTDOCS="" PORTEXAMPLES="" OSREL=5.0 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/openupsd" EXAMPLESDIR="share/examples/openupsd" DATADIR="share/openupsd" WWWDIR="www/openupsd" ETCDIR="etc/openupsd" -------------------------------------------------- -- SUB_LIST -------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/openupsd DOCSDIR=/usr/local/share/doc/openupsd EXAMPLESDIR=/usr/local/share/examples/openupsd WWWDIR=/usr/local/www/openupsd ETCDIR=/usr/local/etc/openupsd -------------------------------------------------- -- /etc/make.conf -------------------------------------------------- SYNTHPROFILE=Release-5.0 USE_PACKAGE_DEPENDS_ONLY=yes PACKAGE_BUILDING=yes BATCH=yes PKG_CREATE_VERBOSE=yes PORTSDIR=/xports DISTDIR=/distfiles WRKDIRPREFIX=/construction PORT_DBDIR=/options PACKAGES=/packages MAKE_JOBS_NUMBER_LIMIT=5 LICENSES_ACCEPTED= NONE HAVE_COMPAT_IA32_KERN= CONFIGURE_MAX_CMD_LEN=262144 _SMP_CPUS=8 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500000 OSVERSION=9999999 OSREL=5.0 _OSRELEASE=5.0-SYNTH -------------------------------------------------------------------------------- -- Phase: check-sanity -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: pkg-depends -------------------------------------------------------------------------------- ===> openupsd-0.3.1_1 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.10.5.txz Installing pkg-1.10.5... Extracting pkg-1.10.5: .......... done ===> openupsd-0.3.1_1 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of openupsd-0.3.1_1 -------------------------------------------------------------------------------- -- Phase: fetch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> Fetching all distfiles required by openupsd-0.3.1_1 for building -------------------------------------------------------------------------------- -- Phase: checksum -------------------------------------------------------------------------------- ===> Fetching all distfiles required by openupsd-0.3.1_1 for building => SHA256 Checksum OK for openupsd-0.3.1.tar.gz. -------------------------------------------------------------------------------- -- Phase: extract-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> Fetching all distfiles required by openupsd-0.3.1_1 for building ===> Extracting for openupsd-0.3.1_1 => SHA256 Checksum OK for openupsd-0.3.1.tar.gz. -------------------------------------------------------------------------------- -- Phase: patch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for openupsd-0.3.1_1 -------------------------------------------------------------------------------- -- Phase: build-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: lib-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for openupsd-0.3.1_1 configure: loading site script /xports/Templates/config.site checking build system type... x86_64-portbld-dragonfly5.0 checking host system type... x86_64-portbld-dragonfly5.0 checking target system type... x86_64-portbld-dragonfly5.0 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... (cached) /usr/bin/awk checking whether make sets $(MAKE)... yes checking for gcc... cc 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 cc accepts -g... yes checking for cc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of cc... gcc3 checking for a BSD-compatible install... /usr/bin/install -c checking how to run the C preprocessor... cpp checking for egrep... grep -E checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking for unistd.h... (cached) yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for sys/select.h... (cached) yes checking for malloc.h... (cached) no checking for syslog... yes checking for sysconf... (cached) yes configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- ===> Building for openupsd-0.3.1_1 --- openupsd.o --- --- cfg.o --- --- support.o --- --- openupsd.o --- source='openupsd.c' object='openupsd.o' libtool=no depfile='.deps/openupsd.Po' tmpdepfile='.deps/openupsd.TPo' depmode=gcc3 /bin/sh ./depcomp cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"openupsd\" -DVERSION=\"0.3.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSLOG=1 -DHAVE_SYSCONF=1 -I. -I. -pipe -O2 -fno-strict-aliasing -Wall -DSYSCONFDIR=\"/usr/local/etc\" -c `test -f 'openupsd.c' || echo './'`openupsd.c --- cfg.o --- source='cfg.c' object='cfg.o' libtool=no depfile='.deps/cfg.Po' tmpdepfile='.deps/cfg.TPo' depmode=gcc3 /bin/sh ./depcomp cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"openupsd\" -DVERSION=\"0.3.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSLOG=1 -DHAVE_SYSCONF=1 -I. -I. -pipe -O2 -fno-strict-aliasing -Wall -DSYSCONFDIR=\"/usr/local/etc\" -c `test -f 'cfg.c' || echo './'`cfg.c --- support.o --- source='support.c' object='support.o' libtool=no depfile='.deps/support.Po' tmpdepfile='.deps/support.TPo' depmode=gcc3 /bin/sh ./depcomp cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"openupsd\" -DVERSION=\"0.3.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSLOG=1 -DHAVE_SYSCONF=1 -I. -I. -pipe -O2 -fno-strict-aliasing -Wall -DSYSCONFDIR=\"/usr/local/etc\" -c `test -f 'support.c' || echo './'`support.c --- cfg.o --- cfg.c: In function 'makeaddtrigger': cfg.c:746:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)((x * 10) + y); ^ cfg.c:755:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)x; ^ cfg.c:779:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nrhs = (void *)((int)nrhs | UPSD_ST_OVERHEAT); ^ cfg.c:779:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)((int)nrhs | UPSD_ST_OVERHEAT); ^ cfg.c:781:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nrhs = (void *)((int)nrhs | UPSD_ST_ONBATTERY); ^ cfg.c:781:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)((int)nrhs | UPSD_ST_ONBATTERY); ^ cfg.c:783:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nrhs = (void *)((int)nrhs | UPSD_ST_OUTPUTBAD); ^ cfg.c:783:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)((int)nrhs | UPSD_ST_OUTPUTBAD); ^ cfg.c:785:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nrhs = (void *)((int)nrhs | UPSD_ST_OVERLOAD); ^ cfg.c:785:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)((int)nrhs | UPSD_ST_OVERLOAD); ^ cfg.c:787:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nrhs = (void *)((int)nrhs | UPSD_ST_BYPASSBAD); ^ cfg.c:787:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)((int)nrhs | UPSD_ST_BYPASSBAD); ^ cfg.c:789:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nrhs = (void *)((int)nrhs | UPSD_ST_OUTPUTOFF); ^ cfg.c:789:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)((int)nrhs | UPSD_ST_OUTPUTOFF); ^ cfg.c:791:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nrhs = (void *)((int)nrhs | UPSD_ST_CHARGERBAD); ^ cfg.c:791:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)((int)nrhs | UPSD_ST_CHARGERBAD); ^ cfg.c:793:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nrhs = (void *)((int)nrhs | UPSD_ST_UPSOFF); ^ cfg.c:793:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)((int)nrhs | UPSD_ST_UPSOFF); ^ cfg.c:795:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nrhs = (void *)((int)nrhs | UPSD_ST_FANFAIL); ^ cfg.c:795:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)((int)nrhs | UPSD_ST_FANFAIL); ^ cfg.c:797:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nrhs = (void *)((int)nrhs | UPSD_ST_FUSEBREAK); ^ cfg.c:797:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)((int)nrhs | UPSD_ST_FUSEBREAK); ^ cfg.c:799:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nrhs = (void *)((int)nrhs | UPSD_ST_FAULT); ^ cfg.c:799:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)((int)nrhs | UPSD_ST_FAULT); ^ cfg.c:801:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nrhs = (void *)((int)nrhs | UPSD_ST_AWAITPOWER); ^ cfg.c:801:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)((int)nrhs | UPSD_ST_AWAITPOWER); ^ cfg.c:803:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nrhs = (void *)((int)nrhs | UPSD_ST_BUZZERON); ^ cfg.c:803:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] nrhs = (void *)((int)nrhs | UPSD_ST_BUZZERON); ^ --- openupsd.o --- openupsd.c: In function 'getalarmstr': openupsd.c:524:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if ((unsigned int)alarm < UPSD_ALARM_MAXINT) { ^ openupsd.c: In function 'init_loops': openupsd.c:978:33: warning: pointer targets in passing argument 2 of 'serial_write' differ in signedness [-Wpointer-sign] if (serial_write (device->fd, "~\003\002\001\000\204", 6, 3, 100000) != 6) { ^ openupsd.c:324:12: note: expected 'unsigned char *' but argument is of type 'char *' static int serial_write (int fd, unsigned char *buffer, int len, int retry, int interval) ^ openupsd.c: In function 'stock_initialisation': openupsd.c:1027:31: warning: pointer targets in passing argument 2 of 'do_command' differ in signedness [-Wpointer-sign] if ((n = do_command (device, "~00P003MNU", 10, pbuf, 127)) < 0) { ^ openupsd.c:922:12: note: expected 'unsigned char *' but argument is of type 'char *' static int do_command (openupsd_sdev_t *device, unsigned char *to_ups, int to_len, unsigned char *from_ups, int from_len) ^ openupsd.c:1034:31: warning: pointer targets in passing argument 2 of 'do_command' differ in signedness [-Wpointer-sign] if ((n = do_command (device, "~00P003MOD", 10, pbuf, 127)) < 0) { ^ openupsd.c:922:12: note: expected 'unsigned char *' but argument is of type 'char *' static int do_command (openupsd_sdev_t *device, unsigned char *to_ups, int to_len, unsigned char *from_ups, int from_len) ^ openupsd.c:1041:31: warning: pointer targets in passing argument 2 of 'do_command' differ in signedness [-Wpointer-sign] if ((n = do_command (device, "~00P003VER", 10, pbuf, 127)) < 0) { ^ openupsd.c:922:12: note: expected 'unsigned char *' but argument is of type 'char *' static int do_command (openupsd_sdev_t *device, unsigned char *to_ups, int to_len, unsigned char *from_ups, int from_len) ^ openupsd.c: In function 'grab_data': openupsd.c:1061:31: warning: pointer targets in passing argument 2 of 'do_command' differ in signedness [-Wpointer-sign] if ((n = do_command (device, "~00P003MOD", 10, pbuf, 1023)) < 0) { ^ openupsd.c:922:12: note: expected 'unsigned char *' but argument is of type 'char *' static int do_command (openupsd_sdev_t *device, unsigned char *to_ups, int to_len, unsigned char *from_ups, int from_len) ^ openupsd.c:1069:26: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign] strcpy (ds->model_name, pbuf + 7); ^ In file included from openupsd.c:29:0: /usr/include/string.h:90:7: note: expected 'const char * restrict' but argument is of type 'unsigned char *' char *strcpy(char * __restrict, const char * __restrict); ^ openupsd.c:1070:31: warning: pointer targets in passing argument 2 of 'do_command' differ in signedness [-Wpointer-sign] if ((n = do_command (device, "~00P003STB", 10, pbuf, 1023)) < 0) { ^ openupsd.c:922:12: note: expected 'unsigned char *' but argument is of type 'char *' static int do_command (openupsd_sdev_t *device, unsigned char *to_ups, int to_len, unsigned char *from_ups, int from_len) ^ openupsd.c:1098:25: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] ds->x_bvolts = atoi (ch); ^ In file included from openupsd.c:30:0: /usr/include/stdlib.h:89:6: note: expected 'const char *' but argument is of type 'unsigned char *' int atoi(const char *); ^ openupsd.c:1101:22: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] ds->btemp = atoi (ch); ^ In file included from openupsd.c:30:0: /usr/include/stdlib.h:89:6: note: expected 'const char *' but argument is of type 'unsigned char *' int atoi(const char *); ^ openupsd.c:1104:24: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] ds->bcharge = atoi (ch); ^ In file included from openupsd.c:30:0: /usr/include/stdlib.h:89:6: note: expected 'const char *' but argument is of type 'unsigned char *' int atoi(const char *); ^ openupsd.c:1111:31: warning: pointer targets in passing argument 2 of 'do_command' differ in signedness [-Wpointer-sign] if ((n = do_command (device, "~00P003STI", 10, pbuf, 1023)) < 0) { ^ openupsd.c:922:12: note: expected 'unsigned char *' but argument is of type 'char *' static int do_command (openupsd_sdev_t *device, unsigned char *to_ups, int to_len, unsigned char *from_ups, int from_len) ^ openupsd.c:1127:24: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] ds->x_ifreq = atoi (ch); ^ In file included from openupsd.c:30:0: /usr/include/stdlib.h:89:6: note: expected 'const char *' but argument is of type 'unsigned char *' int atoi(const char *); ^ openupsd.c:1130:25: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] ds->x_ivolts = atoi (ch); ^ In file included from openupsd.c:30:0: /usr/include/stdlib.h:89:6: note: expected 'const char *' but argument is of type 'unsigned char *' int atoi(const char *); ^ openupsd.c:1137:31: warning: pointer targets in passing argument 2 of 'do_command' differ in signedness [-Wpointer-sign] if ((n = do_command (device, "~00P003STO", 10, pbuf, 1023)) < 0) { ^ openupsd.c:922:12: note: expected 'unsigned char *' but argument is of type 'char *' static int do_command (openupsd_sdev_t *device, unsigned char *to_ups, int to_len, unsigned char *from_ups, int from_len) ^ openupsd.c:1160:24: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] ds->x_ofreq = atoi (ch); ^ In file included from openupsd.c:30:0: /usr/include/stdlib.h:89:6: note: expected 'const char *' but argument is of type 'unsigned char *' int atoi(const char *); ^ openupsd.c:1163:25: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] ds->x_ovolts = atoi (ch); ^ In file included from openupsd.c:30:0: /usr/include/stdlib.h:89:6: note: expected 'const char *' but argument is of type 'unsigned char *' int atoi(const char *); ^ openupsd.c:1166:25: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] ds->out_load = atoi (ch); ^ In file included from openupsd.c:30:0: /usr/include/stdlib.h:89:6: note: expected 'const char *' but argument is of type 'unsigned char *' int atoi(const char *); ^ openupsd.c:1173:31: warning: pointer targets in passing argument 2 of 'do_command' differ in signedness [-Wpointer-sign] if ((n = do_command (device, "~00P003STA", 10, pbuf, 1023)) < 0) { ^ openupsd.c:922:12: note: expected 'unsigned char *' but argument is of type 'char *' static int do_command (openupsd_sdev_t *device, unsigned char *to_ups, int to_len, unsigned char *from_ups, int from_len) ^ openupsd.c: In function 'checkfortrigger': openupsd.c:1370:69: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if (((data->bat_flags & UPSD_BAT_WEAK_MASK) == UPSD_BAT_WEAK) && ((int)trig->rhs)) { ^ openupsd.c:1377:79: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if (((data->bat_flags & UPSD_BAT_DISCHARGE_MASK) == UPSD_BAT_DISCHARGE) && ((int)trig->rhs)) { ^ openupsd.c:1384:77: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if (((data->out_flags & UPSD_OUT_INVERTER_MASK) == UPSD_OUT_INVERTER) && ((int)trig->rhs)) { ^ openupsd.c:1414:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] return (ifield == ((int)trig->rhs)); ^ openupsd.c:1416:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] return (ifield != ((int)trig->rhs)); ^ openupsd.c:1418:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] return (ifield < ((int)trig->rhs)); ^ openupsd.c:1420:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] return (ifield > ((int)trig->rhs)); ^ openupsd.c:1422:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] return (ifield <= ((int)trig->rhs)); ^ openupsd.c:1424:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] return (ifield >= ((int)trig->rhs)); ^ openupsd.c:1429:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if ((data->st_flags & ((int)trig->rhs)) == ((int)trig->rhs)) { ^ openupsd.c:1429:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if ((data->st_flags & ((int)trig->rhs)) == ((int)trig->rhs)) { ^ openupsd.c: In function 'checkforalarm': openupsd.c:1446:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if ((unsigned int)alarm < UPSD_ALARM_MAXINT) { ^ openupsd.c: In function 'openupsd_mainprog': openupsd.c:2054:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] switch ((int)tmp->alarm) { ^ openupsd.c: In function 'main': openupsd.c:2768:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if ((int)(tt->rhs)) { ^ openupsd.c:2775:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if ((int)(tt->rhs)) { ^ openupsd.c:2786:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] fprintf (stderr, "%.1f", (double)((int)(tt->rhs)) / 10.0); ^ openupsd.c:2791:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] fprintf (stderr, "%d", (int)(tt->rhs)); ^ openupsd.c:2797:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] for (fld = (int)(tt->rhs); fld; fld &= ~match) { ^ --- openupsd --- cc -pipe -O2 -fno-strict-aliasing -Wall -DSYSCONFDIR=\"/usr/local/etc\" -o openupsd openupsd.o cfg.o support.o -------------------------------------------------------------------------------- -- Phase: run-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: stage -------------------------------------------------------------------------------- ===> Staging for openupsd-0.3.1_1 ===> Generating temporary packing list /bin/sh ./mkinstalldirs /construction/sysutils/openupsd/stage/usr/local/sbin install -s -m 555 openupsd /construction/sysutils/openupsd/stage/usr/local/sbin/openupsd install -m 0644 /construction/sysutils/openupsd/openupsd-0.3.1/openupsd.conf /construction/sysutils/openupsd/stage/usr/local/etc/openupsd.conf.sample ====> Compressing man pages (compress-man) ===> Staging rc.d startup script(s) -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building package for openupsd-0.3.1_1 file sizes/checksums [3]: . done packing files [3]: . done packing directories [0]: . done -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Friday, 20 APR 2018 at 07:36:18 UTC Duration: 00:00:10