Created
May 9, 2024 00:38
-
-
Save prwood/5cf605feeae99aa59d9fa01c5c4e6133 to your computer and use it in GitHub Desktop.
collectd nut build error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC src/nut_la-nut.lo | |
src/nut.c: In function ‘nut_add_ups’: | |
src/nut.c:89:66: error: passing argument 4 of ‘upscli_splitname’ from incompatible pointer type [-Wincompatible-pointer-types] | |
89 | status = upscli_splitname(name, &ups->upsname, &ups->hostname, &ups->port); | |
| ^~~~~~~~~~ | |
| | | |
| int * | |
In file included from src/nut.c:33: | |
/usr/include/upsclient.h:121:35: note: expected ‘uint16_t *’ {aka ‘short unsigned int *’} but argument is of type ‘int *’ | |
121 | uint16_t *port); | |
| ~~~~~~~~~~^~~~ | |
src/nut.c: In function ‘nut_read’: | |
src/nut.c:281:66: error: passing argument 4 of ‘upscli_list_next’ from incompatible pointer type [-Wincompatible-pointer-types] | |
281 | while ((status = upscli_list_next(ups->conn, query_num, query, &answer_num, | |
| ^~~~~~~~~~~ | |
| | | |
| unsigned int * | |
/usr/include/upsclient.h:112:25: note: expected ‘size_t *’ {aka ‘long unsigned int *’} but argument is of type ‘unsigned int *’ | |
112 | size_t *numa, char ***answer); | |
| ~~~~~~~~^~~~ | |
make[1]: *** [Makefile:8327: src/nut_la-nut.lo] Error 1 | |
make[1]: Leaving directory '/home/peter/.cache/yay/collectd/src/collectd-5.12.0' | |
make: *** [Makefile:5452: all] Error 2 | |
==> ERROR: A failure occurred in build(). | |
Aborting... | |
-> error making: collectd-exit status 4 | |
-> Failed to install the following packages. Manual intervention is required: | |
collectd - exit status 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment