Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 446190 Details for
Bug 593280
dev-perl/WWW-Curl-4.170.0 : curlopt-constants.c:128:49: error: ‘CURL_STRICTER’ undeclared (first use in this function)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
WWW-Curl-4.150.0-curl-7.50.2.patch
WWW-Curl-4.150.0-curl-7.50.2.patch (text/plain), 1.20 KB, created by
Sergei Trofimovich (RETIRED)
on 2016-09-17 14:38:58 UTC
(
hide
)
Description:
WWW-Curl-4.150.0-curl-7.50.2.patch
Filename:
MIME Type:
Creator:
Sergei Trofimovich (RETIRED)
Created:
2016-09-17 14:38:58 UTC
Size:
1.20 KB
patch
obsolete
>curl-7.50.2 introduced a #define without integer value: > > #ifdef CURL_NO_OLDIES > #define CURL_STRICTER > #endif > >Heuristics in 'Makefile.PL' assumes all defines in form of > #define CURL_<something> <an-expression> >and generates a symbol lookup table in 'curlopt-constants.c' >as: > > static int > constant(const char *name) > { > errno = 0; > > if (strncmp(name, "CURL_", 5) == 0) { > name += 5; > switch (*name) { > ... > case 'S': > if (strEQ(name, "STRICTER")) return CURL_STRICTER; >Which is not valid C: > curlopt-constants.c:128:49: error: âCURL_STRICTERâ undeclared (first use in this function) > if (strEQ(name, "STRICTER")) return CURL_STRICTER; > ^~~~~~~~~~~~~ >diff --git a/Makefile.PL b/Makefile.PL >index f9170bb..fc1a55a 100644 >--- a/Makefile.PL >+++ b/Makefile.PL >@@ -122,2 +122,9 @@ if (!defined($curl_h)) { > while(<H>) { >+ # Skip defines without values like: >+ # #define CURL_STRICTER >+ if (/^#define (CURL[A-Za-z0-9_]*)$/) { >+ chomp; >+ warn "Skipping '$_': does not define a symbol"; >+ next; >+ } > if (/^#define (CURL[A-Za-z0-9_]*)/) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 593280
:
445300
|
445302
|
445304
| 446190