[Bug 263791] net-mgmt/collectd5 fails to build against sysutils/nut 2.8.0

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 05 May 2022 10:00:12 UTC

            Bug ID: 263791
           Summary: net-mgmt/collectd5 fails to build against sysutils/nut
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: petteri.valkonen@iki.fi
                CC: cy@FreeBSD.org, ports@bsdserwis.com
                CC: cy@FreeBSD.org, ports@bsdserwis.com
 Attachment #233739 text/plain
         mime type:

Created attachment 233739
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=233739&action=edit
Poudriere build log for collectd5-5.12.0_5

Sysutils/nut was recently updated to version 2.8.0. After the update,
collectd5-5.12.0_5 fails to build when the NUT plugin is enabled (NUTUPS=on)
with the following error:

libtool: compile:  cc -DHAVE_CONFIG_H -I. -I./src -I./src -I./src/daemon
-DPREFIX=\"/usr/local\" -DCONFIGFILE=\"/usr/local/etc/collectd.conf\"
-DLOCALSTATEDIR=\"/var\" -DPKGLOCALSTATEDIR=\"/var/db/collectd\"
-DPKGDATADIR=\"/usr/local/share/collectd\" -I/usr/local/include -Wall
-I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing
-MT src/nut_la-nut.lo -MD -MP -MF src/.deps/nut_la-nut.Tpo -c src/nut.c  -fPIC
-DPIC -o src/.libs/nut_la-nut.o
src/nut.c:40:2: error: "Unable to determine the UPS connection type."
#error "Unable to determine the UPS connection type."
src/nut.c:46:3: error: unknown type name 'collectd_upsconn_t'
  collectd_upsconn_t *conn;
src/nut.c:89:66: warning: incompatible pointer types passing 'int *' to
parameter of type 'uint16_t *' (aka 'unsigned short *')
  status = upscli_splitname(name, &ups->upsname, &ups->hostname, &ups->port);
/usr/local/include/upsclient.h:109:14: note: passing argument to parameter
'port' here
                        uint16_t *port);
1 warning and 2 errors generated.
gmake[2]: *** [Makefile:8330: src/nut_la-nut.lo] Error 1
gmake[2]: Leaving directory
gmake[1]: *** [Makefile:5455: all] Error 2
gmake[1]: Leaving directory
*** Error code 1

Please see the attached Poudriere build log for more details.

When NUT is downgraded to version 2.7.4_20 (from Quarterly) the port (and
plugin) builds fine.

You are receiving this mail because:
You are the assignee for the bug.