Bug 1375176 - perl-WWW-Curl-4.17-8.fc26 FTBFS: 'CURL_STRICTER' undeclared
Summary: perl-WWW-Curl-4.17-8.fc26 FTBFS: 'CURL_STRICTER' undeclared
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-WWW-Curl
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Emmanuel Seyman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-12 12:00 UTC by Petr Pisar
Modified: 2016-09-19 06:00 UTC (History)
2 users (show)

Fixed In Version: perl-WWW-Curl-4.17-9.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-19 06:00:39 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CPAN 117793 0 None None None 2016-09-12 12:06:13 UTC

Description Petr Pisar 2016-09-12 12:00:54 UTC
perl-WWW-Curl-4.17-8.fc26 fails to build in F26 because it misparses curl.h:

Found curl.h in /usr/include/curl/curl.h
Building curlopt-constants.c for your libcurl version
Building Easy.pm constants for your libcurl version
Building Share.pm constants for your libcurl version
[...]
gcc -c  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables   -DVERSION=\"4.17\" -DXS_VERSION=\"4.17\" -fPIC "-I/usr/lib/perl5/CORE"   Curl.c
Curl.xs: In function 'fwrite_wrapper2':
Curl.xs:363:13: warning: unused variable 'sv' [-Wunused-variable]
         SV *sv;
             ^~
In file included from Curl.xs:574:0:
curlopt-constants.c: In function 'constant':
curlopt-constants.c:19:58: warning: 'return' with no value, in function returning non-void
             if (strEQ(name, "DID_MEMORY_FUNC_TYPEDEFS")) return CURL_DID_MEMORY_FUNC_TYPEDEFS;
                                                          ^~~~~~
curlopt-constants.c:2:1: note: declared here
 constant(const char *name)
 ^~~~~~~~
curlopt-constants.c:128:49: error: 'CURL_STRICTER' undeclared (first use in this function)
             if (strEQ(name, "STRICTER")) return CURL_STRICTER;
                                                 ^~~~~~~~~~~~~

This is caused by upgrading libcurl-devel from 7.50.1-2.fc26 to 7.50.2-1.fc26 that added this into curl.h:

+#ifdef CURL_NO_OLDIES
+#define CURL_STRICTER
+#endif
+

Comment 1 Emmanuel Seyman 2016-09-19 06:00:39 UTC
I've applied your patch to the package. Thank you, Petr.


Note You need to log in before you can comment on or make changes to this bug.