Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 May 2022 10:00:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 263791] net-mgmt/collectd5 fails to build against sysutils/nut 2.8.0
Message-ID:  <bug-263791-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263791

            Bug ID: 263791
           Summary: net-mgmt/collectd5 fails to build against sysutils/nut
                    2.8.0
           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=3D233739&action=
=3Dedit
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=3D=
on)
with the following error:

libtool: compile:  cc -DHAVE_CONFIG_H -I. -I./src -I./src -I./src/daemon
-DPREFIX=3D\"/usr/local\" -DCONFIGFILE=3D\"/usr/local/etc/collectd.conf\"
-DLOCALSTATEDIR=3D\"/var\" -DPKGLOCALSTATEDIR=3D\"/var/db/collectd\"
-DPLUGINDIR=3D\"/usr/local/lib/collectd\"
-DPKGDATADIR=3D\"/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  -f=
PIC
-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 *')
[-Wincompatible-pointer-types]
  status =3D upscli_splitname(name, &ups->upsname, &ups->hostname, &ups->po=
rt);
                                                                 ^~~~~~~~~~
/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
'/wrkdirs/usr/ports/net-mgmt/collectd5/work/collectd-5.12.0'
gmake[1]: *** [Makefile:5455: all] Error 2
gmake[1]: Leaving directory
'/wrkdirs/usr/ports/net-mgmt/collectd5/work/collectd-5.12.0'
*** 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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263791-7788>