Summary: | COLLECTD_PLUGINS="nut" emerge app-metrics/collectd-5.12.0-r10 fails configure | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | anthony |
Component: | Current packages | Assignee: | Conrad Kostecki <conikost> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | anthony |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: | https://github.com/networkupstools/nut/issues/1638 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
config.log |
Description
anthony
2024-05-12 02:44:45 UTC
please include the build.log & config.log Created attachment 892908 [details]
build.log
Created attachment 892909 [details]
config.log
configure:109179: x86_64-pc-linux-gnu-gcc -c -march=raptorlake -O2 -pipe -Wall -Werror conftest.c >&5 In file included from conftest.c:179: /usr/include/upsclient.h:102:87: error: unknown type name 'time_t' 102 | ssize_t upscli_sendline_timeout(UPSCONN_t *ups, const char *buf, size_t buflen, const time_t timeout); | ^~~~~~ /usr/include/upsclient.h:105:81: error: unknown type name 'time_t' 105 | ssize_t upscli_readline_timeout(UPSCONN_t *ups, char *buf, size_t buflen, const time_t timeout); | ^~~~~~ conftest.c: In function 'main': conftest.c:199:53: error: passing argument 4 of 'upscli_list_next' from incompatible pointer type [-Werror=incompatible-pointer-types] 199 | int res = upscli_list_next(&ups, query_num, &query, &answer_num, &answer); | ^~~~~~~~~~~ | | | int * /usr/include/upsclient.h:100:25: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'int *' 100 | size_t *numa, char ***answer); | ~~~~~~~~^~~~ cc1: all warnings being treated as errors configure:109179: $? = 1 configure: failed program wasconfigure:109179: x86_64-pc-linux-gnu-gcc -c -march=raptorlake -O2 -pipe -Wall -Werror conftest.c >&5 In file included from conftest.c:179: /usr/include/upsclient.h:102:87: error: unknown type name 'time_t' 102 | ssize_t upscli_sendline_timeout(UPSCONN_t *ups, const char *buf, size_t buflen, const time_t timeout); | ^~~~~~ /usr/include/upsclient.h:105:81: error: unknown type name 'time_t' 105 | ssize_t upscli_readline_timeout(UPSCONN_t *ups, char *buf, size_t buflen, const time_t timeout); | ^~~~~~ conftest.c: In function 'main': conftest.c:199:53: error: passing argument 4 of 'upscli_list_next' from incompatible pointer type [-Werror=incompatible-pointer-types] 199 | int res = upscli_list_next(&ups, query_num, &query, &answer_num, &answer); | ^~~~~~~~~~~ | | | int * /usr/include/upsclient.h:100:25: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'int *' 100 | size_t *numa, char ***answer); | ~~~~~~~~^~~~ cc1: all warnings being treated as errors configure:109179: $? = 1 configure: failed program was ... so the header is broken. While I can't assert that it _works_ yet, collectd does appear to build successfully with =sys-power/nut-2.7.4-r8. And 2.8.2 is out, but isn't in portage, for whatever that's worth. |