MidnightBSD Magus

sysutils/upsd

APC Smart UPS Monitoring Daemon

Flavor Version Run OSVersion Arch License Restricted Status
2.0.1.6_2 504 3.0 amd64 unknown 0 fail

Events

Machine Type Time Message
m3064b info 2023-01-04 12:12:09.551682 Test Started
m3064b fail 2023-01-04 12:12:14.708324 make build returned non-zero: 1
m3064b fail 2023-01-04 12:12:14.764852 Test complete.

Log

===>  Building for upsd-2.0.1.6_2
make[1]: "/usr/share/mk/bsd.opts.mk" line 103: warning: "NO_MAN is defined, but deprecated. Please use MK_MAN=no instead."
--- objwarn ---
--- config.c ---
--- objwarn ---
Warning: Object directory not changed from original /magus/work/usr/mports/sysutils/upsd/work/upsd-2.0
--- config.c ---
yacc -d  -o config.c config.y
yacc: 11 shift/reduce conflicts.
--- .depend ---
echo upsd: /usr/lib/libc.a  >> .depend
--- apc.o ---
--- apc_static.o ---
--- config.o ---
--- event.o ---
--- apc.o ---
cc  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I../include  -Wall   -MD  -MF.depend.apc.o -MTapc.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong    -Qunused-arguments    -c apc.c -o apc.o
--- apc_static.o ---
cc  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I../include  -Wall   -MD  -MF.depend.apc_static.o -MTapc_static.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong    -Qunused-arguments    -c apc_static.c -o apc_static.o
--- event.o ---
cc  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I../include  -Wall   -MD  -MF.depend.event.o -MTevent.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong    -Qunused-arguments    -c event.c -o event.o
--- config.o ---
cc  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I../include  -Wall   -MD  -MF.depend.config.o -MTconfig.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong    -Qunused-arguments    -c config.c -o config.o
--- event.o ---
event.c:45:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                    expand(((struct message *)action->action)->message));
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c:45:7: note: treat the string as an argument to avoid this
                    expand(((struct message *)action->action)->message));
                    ^
                    "%s", 
--- apc_static.o ---
apc_static.c:79:19: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_HTPOINT, {number: 253}},
                         ^~~~~~~
                         .number = 
apc_static.c:80:19: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_HTPOINT, {number: 264}},
                         ^~~~~~~
                         .number = 
apc_static.c:81:19: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_HTPOINT, {number: 271}},
                         ^~~~~~~
                         .number = 
apc_static.c:82:19: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_HTPOINT, {number: 280}},
                         ^~~~~~~
                         .number = 
apc_static.c:84:19: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LTPOINT, {number: 188}},
                         ^~~~~~~
                         .number = 
apc_static.c:85:19: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LTPOINT, {number: 196}},
                         ^~~~~~~
                         .number = 
apc_static.c:86:19: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LTPOINT, {number: 204}},
                         ^~~~~~~
                         .number = 
apc_static.c:87:19: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LTPOINT, {number: 208}},
                         ^~~~~~~
                         .number = 
apc_static.c:89:21: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LOWBATDUR, {number: 2}},
                           ^~~~~~~
                           .number = 
apc_static.c:90:21: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LOWBATDUR, {number: 5}},
                           ^~~~~~~
                           .number = 
apc_static.c:91:21: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LOWBATDUR, {number: 7}},
                           ^~~~~~~
                           .number = 
apc_static.c:92:21: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LOWBATDUR, {number: 10}},
                           ^~~~~~~
                           .number = 
apc_static.c:95:22: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_WAKEUPBCAP, {number: 0}},
                            ^~~~~~~
                            .number = 
apc_static.c:96:22: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_WAKEUPBCAP, {number: 10}},
                            ^~~~~~~
                            .number = 
apc_static.c:97:22: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_WAKEUPBCAP, {number: 15}},
                            ^~~~~~~
                            .number = 
apc_static.c:98:22: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_WAKEUPBCAP, {number: 25}},
                            ^~~~~~~
                            .number = 
apc_static.c:99:22: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_WAKEUPBCAP, {number: 50}},
                            ^~~~~~~
                            .number = 
apc_static.c:100:22: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_WAKEUPBCAP, {number: 90}},
                            ^~~~~~~
                            .number = 
apc_static.c:101:22: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_WAKEUPBCAP, {number: 100}},
                            ^~~~~~~
                            .number = 
apc_static.c:103:23: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_WAKEUPDELAY, {number: 0}},
                             ^~~~~~~
                             .number = 
apc_static.c:104:23: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_WAKEUPDELAY, {number: 60}},
                             ^~~~~~~
                             .number = 
apc_static.c:105:23: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_WAKEUPDELAY, {number: 180}},
                             ^~~~~~~
                             .number = 
apc_static.c:106:23: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_WAKEUPDELAY, {number: 300}},
                             ^~~~~~~
                             .number = 
apc_static.c:108:20: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_NVOLTAGE, {number: 225}},
                          ^~~~~~~
                          .number = 
apc_static.c:109:20: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_NVOLTAGE, {number: 230}},
                          ^~~~~~~
                          .number = 
apc_static.c:110:20: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_NVOLTAGE, {number: 240}},
                          ^~~~~~~
                          .number = 
apc_static.c:111:20: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_NVOLTAGE, {number: 220}},
                          ^~~~~~~
                          .number = 
apc_static.c:113:21: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_SHUTDELAY, {number: 20}},
                           ^~~~~~~
                           .number = 
apc_static.c:114:21: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_SHUTDELAY, {number: 180}},
                           ^~~~~~~
                           .number = 
apc_static.c:115:21: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_SHUTDELAY, {number: 300}},
                           ^~~~~~~
                           .number = 
--- apc.o ---
apc.c:155:53: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
--- apc_static.o ---
apc_static.c:116:21: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_SHUTDELAY, {number: 600}},
                           ^~~~~~~
                           .number = 
--- apc.o ---
                                syslog(LOG_ERR, "apc_tune: negative response: %*s",
                                                                              ~~^
--- apc_static.o ---
apc_static.c:118:20: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LINESENS, {binary: "L"}},
                          ^~~~~~~
                          .binary = 
apc_static.c:119:20: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LINESENS, {binary: "M"}},
                          ^~~~~~~
                          .binary = 
apc_static.c:120:20: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LINESENS, {binary: "H"}},
                          ^~~~~~~
                          .binary = 
apc_static.c:122:21: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LINEALARM, {binary: "0"}},
                           ^~~~~~~
                           .binary = 
apc_static.c:123:21: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LINEALARM, {binary: "L"}},
                           ^~~~~~~
                           .binary = 
apc_static.c:124:21: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LINEALARM, {binary: "T"}},
                           ^~~~~~~
                           .binary = 
apc_static.c:125:21: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LINEALARM, {binary: "N"}},
                           ^~~~~~~
                           .binary = 
apc_static.c:127:17: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_LABEL, {binary: NULL}},
                       ^~~~~~~
                       .binary = 
apc_static.c:129:17: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {SMART_BREPL, {binary: NULL}},
                       ^~~~~~~
                       .binary = 
apc_static.c:131:7: warning: use of GNU old-style field designator extension [-Wgnu-designator]
        {0, {binary: NULL}}
             ^~~~~~~
             .binary = 
41 warnings generated.
--- event.o ---
1 warning generated.

--- apc.o ---
1 warning generated.
--- misc.o ---
--- port.o ---
--- upsd.o ---
--- misc.o ---
cc  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I../include  -Wall   -MD  -MF.depend.misc.o -MTmisc.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong    -Qunused-arguments    -c misc.c -o misc.o
--- port.o ---
cc  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I../include  -Wall   -MD  -MF.depend.port.o -MTport.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong    -Qunused-arguments    -c port.c -o port.o
--- upsd.o ---
cc  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I../include  -Wall   -MD  -MF.depend.upsd.o -MTupsd.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong    -Qunused-arguments    -c upsd.c -o upsd.o
--- misc.o ---
misc.c:63:59: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
                syslog(LOG_ERR, "xalloc: cannot allocate %u bytes: %m", size);
                                                         ~~             ^~~~
                                                         %zu
--- upsd.o ---
upsd.c:134:17: warning: incompatible function pointer types assigning to 'void (*)(int)' from 'void (int, int, struct sigcontext *)' [-Wincompatible-function-pointer-types]
        act.sa_handler = signal_handler;
                       ^ ~~~~~~~~~~~~~~
--- misc.o ---
misc.c:235:33: warning: field width should have type 'int', but argument has type 'unsigned long' [-Wformat]
                return snprintf(buf, size, "%*s", r->size - r->prec,
                                            ~~^   ~~~~~~~~~~~~~~~~~
misc.c:238:33: warning: field precision should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
                return snprintf(buf, size, "%.*lf", r->prec, val->val.number);
                                            ~~^~~   ~~~~~~~
--- upsd.o ---
1 warning generated.
--- misc.o ---
3 warnings generated.
--- upsd ---
cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I../include -Wall -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Qunused-arguments  -fstack-protector-strong   -o upsd apc.o apc_static.o config.o event.o misc.o port.o upsd.o   
ld: error: duplicate symbol: apc_SmartWriteBuffer
>>> defined at apc.c
>>>            apc.o:(apc_SmartWriteBuffer)
>>> defined at apc_static.c
>>>            apc_static.o:(.bss+0x0)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [upsd] Error code 1

make[1]: stopped in /magus/work/usr/mports/sysutils/upsd/work/upsd-2.0
1 error

make[1]: stopped in /magus/work/usr/mports/sysutils/upsd/work/upsd-2.0
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/mports/sysutils/upsd

Links

Depends On

Nothing

Depend Of

Nothing

Categories