Bug#971107: libwww-curl-perl: FTBFS: curlopt-constants.c:184:46: error: ‘CURL_WIN32’ undeclared (first use in this function); did you mean ‘CURLINFO’?

Lucas Nussbaum lucas at debian.org
Sun Sep 27 19:31:49 BST 2020


Source: libwww-curl-perl
Version: 4.17-6
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200926 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> x86_64-linux-gnu-gcc -c  -I/usr/include/x86_64-linux-gnu -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"4.17\" -DXS_VERSION=\"4.17\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.30/CORE"   Curl.c
> In file included from Curl.xs:578:
> curlopt-constants.c: In function ‘constant’:
> curlopt-constants.c:184:46: error: ‘CURL_WIN32’ undeclared (first use in this function); did you mean ‘CURLINFO’?
>   184 |             if (strEQ(name, "WIN32")) return CURL_WIN32;
>       |                                              ^~~~~~~~~~
>       |                                              CURLINFO
> curlopt-constants.c:184:46: note: each undeclared identifier is reported only once for each function it appears in
> curlopt-constants.c:190:56: warning: overflow in conversion from ‘long unsigned int’ to ‘int’ changes value from ‘18446744073709551615’ to ‘-1’ [-Woverflow]
>   190 |             if (strEQ(name, "ZERO_TERMINATED")) return CURL_ZERO_TERMINATED;
>       |                                                        ^~~~~~~~~~~~~~~~~~~~
> curlopt-constants.c:2327:44: warning: overflow in conversion from ‘long unsigned int’ to ‘int’ changes value from ‘18446744073709551599’ to ‘-17’ [-Woverflow]
>  2327 |             if (strEQ(name, "ANY")) return CURLAUTH_ANY;
>       |                                            ^~~~~~~~~~~~
> curlopt-constants.c:2328:48: warning: overflow in conversion from ‘long unsigned int’ to ‘int’ changes value from ‘18446744073709551598’ to ‘-18’ [-Woverflow]
>  2328 |             if (strEQ(name, "ANYSAFE")) return CURLAUTH_ANYSAFE;
>       |                                                ^~~~~~~~~~~~~~~~
> curlopt-constants.c:2422:48: error: ‘CURLOPT’ undeclared (first use in this function)
>  2422 |             if (strEQ(name, "CURLOPT")) return CURLOPT;
>       |                                                ^~~~~~~
> make[1]: *** [Makefile:347: Curl.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/09/26/libwww-curl-perl_4.17-6_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the pkg-perl-maintainers mailing list