Bug#1107411: powerman: FTBFS: httppower.c:327:5: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
Package: src:powerman
Version: 2.4.4-3
Severity: serious
Tags: ftbfs trixie sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
[ note: CC to Samuel Henrique, as this seems related to the recent upload of curl ]
--------------------------------------------------------------------------------
[...]
gcc -DHAVE_CONFIG_H -I. -I../../config -I../../src/libcommon -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o httppower.o httppower.c
/bin/bash ../../libtool --tag=CC --mode=link gcc -Wall -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -o httppower httppower.o ../../src/libcommon/libcommon.la -lcurl
libtool: link: gcc -Wall -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -flto=auto -ffat-lto-objects -Wl,-z -Wl,relro -Wl,-z -Wl,now -o httppower httppower.o ../../src/libcommon/.libs/libcommon.a -lcurl
httppower.c: In function 'main':
httppower.c:327:5: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
327 | curl_easy_setopt(h, CURLOPT_TIMEOUT, 5);
| ^
httppower.c:329:5: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
329 | curl_easy_setopt(h, CURLOPT_FAILONERROR, 1);
| ^
In function 'get',
inlined from 'docmd' at httppower.c:256:13,
inlined from 'shell' at httppower.c:278:18,
inlined from 'main' at httppower.c:348:5:
httppower.c:165:9: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
165 | curl_easy_setopt(h, CURLOPT_HTTPGET, 1);
| ^
In function 'post',
inlined from 'docmd' at httppower.c:258:13,
inlined from 'shell' at httppower.c:278:18,
inlined from 'main' at httppower.c:348:5:
httppower.c:91:9: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
91 | curl_easy_setopt(h, CURLOPT_POST, 1);
| ^
httppower.c:99:9: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
99 | curl_easy_setopt(h, CURLOPT_POSTFIELDSIZE, 0);
| ^
In function 'put',
inlined from 'docmd' at httppower.c:260:13,
inlined from 'shell' at httppower.c:278:18,
inlined from 'main' at httppower.c:348:5:
httppower.c:140:9: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
140 | curl_easy_setopt(h, CURLOPT_UPLOAD, 1);
| ^
httppower.c:150:9: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
150 | curl_easy_setopt(h, CURLOPT_UPLOAD, 0);
| ^
lto1: all warnings being treated as errors
make[4]: *** [/tmp/cchxPBdg.mk:2: /tmp/ccIFFGbl.ltrans0.ltrans.o] Error 1
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:442: httppower] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/httppower'
make[2]: *** [Makefile:411: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:475: all-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:18: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202506/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:powerman, so that this is still
visible in the BTS web page for this package.
Thanks.
Reply to: