|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-03-04 13:50 UTC] mike@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: mike
[2019-03-04 13:50 UTC] mike@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 11:00:01 2025 UTC |
Description: ------------ Hey guys, I just downloaded the latest stable version and tried to compile it on my Ubuntu 17.10 with PHP 7.1 and got this: In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:56:5: error: redeclaration of enumerator ‘IDNA_SUCCESS’ IDNA_SUCCESS = 0, ^~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:285:5: note: previous definition of ‘IDNA_SUCCESS’ was here IDNA_SUCCESS = IDN2_OK, ^~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:57:5: error: redeclaration of enumerator ‘IDNA_STRINGPREP_ERROR’ IDNA_STRINGPREP_ERROR = 1, ^~~~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:286:5: note: previous definition of ‘IDNA_STRINGPREP_ERROR’ was here IDNA_STRINGPREP_ERROR = IDN2_ENCODING_ERROR, ^~~~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:58:5: error: redeclaration of enumerator ‘IDNA_PUNYCODE_ERROR’ IDNA_PUNYCODE_ERROR = 2, ^~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:287:5: note: previous definition of ‘IDNA_PUNYCODE_ERROR’ was here IDNA_PUNYCODE_ERROR = IDN2_PUNYCODE_BAD_INPUT, ^~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:59:5: error: redeclaration of enumerator ‘IDNA_CONTAINS_NON_LDH’ IDNA_CONTAINS_NON_LDH = 3, ^~~~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:288:5: note: previous definition of ‘IDNA_CONTAINS_NON_LDH’ was here IDNA_CONTAINS_NON_LDH = IDN2_ENCODING_ERROR, ^~~~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:61:5: error: redeclaration of enumerator ‘IDNA_CONTAINS_LDH’ IDNA_CONTAINS_LDH = IDNA_CONTAINS_NON_LDH, ^~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:289:5: note: previous definition of ‘IDNA_CONTAINS_LDH’ was here IDNA_CONTAINS_LDH = IDNA_CONTAINS_NON_LDH, ^~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:62:5: error: redeclaration of enumerator ‘IDNA_CONTAINS_MINUS’ IDNA_CONTAINS_MINUS = 4, ^~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:290:5: note: previous definition of ‘IDNA_CONTAINS_MINUS’ was here IDNA_CONTAINS_MINUS = IDN2_ENCODING_ERROR, ^~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:63:5: error: redeclaration of enumerator ‘IDNA_INVALID_LENGTH’ IDNA_INVALID_LENGTH = 5, ^~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:291:5: note: previous definition of ‘IDNA_INVALID_LENGTH’ was here IDNA_INVALID_LENGTH = IDN2_DISALLOWED, ^~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:64:5: error: redeclaration of enumerator ‘IDNA_NO_ACE_PREFIX’ IDNA_NO_ACE_PREFIX = 6, ^~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:292:5: note: previous definition of ‘IDNA_NO_ACE_PREFIX’ was here IDNA_NO_ACE_PREFIX = IDN2_ENCODING_ERROR, ^~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:65:5: error: redeclaration of enumerator ‘IDNA_ROUNDTRIP_VERIFY_ERROR’ IDNA_ROUNDTRIP_VERIFY_ERROR = 7, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:293:5: note: previous definition of ‘IDNA_ROUNDTRIP_VERIFY_ERROR’ was here IDNA_ROUNDTRIP_VERIFY_ERROR = IDN2_ENCODING_ERROR, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:66:5: error: redeclaration of enumerator ‘IDNA_CONTAINS_ACE_PREFIX’ IDNA_CONTAINS_ACE_PREFIX = 8, ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:294:5: note: previous definition of ‘IDNA_CONTAINS_ACE_PREFIX’ was here IDNA_CONTAINS_ACE_PREFIX = IDN2_ENCODING_ERROR, ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:67:5: error: redeclaration of enumerator ‘IDNA_ICONV_ERROR’ IDNA_ICONV_ERROR = 9, ^~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:295:5: note: previous definition of ‘IDNA_ICONV_ERROR’ was here IDNA_ICONV_ERROR = IDN2_ENCODING_ERROR, ^~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:69:5: error: redeclaration of enumerator ‘IDNA_MALLOC_ERROR’ IDNA_MALLOC_ERROR = 201, ^~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:296:5: note: previous definition of ‘IDNA_MALLOC_ERROR’ was here IDNA_MALLOC_ERROR = IDN2_MALLOC, ^~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:70:5: error: redeclaration of enumerator ‘IDNA_DLOPEN_ERROR’ IDNA_DLOPEN_ERROR = 202 ^~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:297:5: note: previous definition of ‘IDNA_DLOPEN_ERROR’ was here IDNA_DLOPEN_ERROR = IDN2_MALLOC ^~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:71:5: error: conflicting types for ‘Idna_rc’ } Idna_rc; ^~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:298:5: note: previous declaration of ‘Idna_rc’ was here } Idna_rc; ^~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:76:5: error: redeclaration of enumerator ‘IDNA_ALLOW_UNASSIGNED’ IDNA_ALLOW_UNASSIGNED = 0x0001, ^~~~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:303:5: note: previous definition of ‘IDNA_ALLOW_UNASSIGNED’ was here IDNA_ALLOW_UNASSIGNED = IDN2_ALLOW_UNASSIGNED, ^~~~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:77:5: error: redeclaration of enumerator ‘IDNA_USE_STD3_ASCII_RULES’ IDNA_USE_STD3_ASCII_RULES = 0x0002 ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:304:5: note: previous definition of ‘IDNA_USE_STD3_ASCII_RULES’ was here IDNA_USE_STD3_ASCII_RULES = IDN2_USE_STD3_ASCII_RULES ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:38:0: /usr/include/idna.h:78:5: error: conflicting types for ‘Idna_flags’ } Idna_flags; ^~~~~~~~~~ In file included from /home/user/Downloads/pecl_http-3.1.0/src/php_http.c:35:0: /usr/include/idn2.h:305:5: note: previous declaration of ‘Idna_flags’ was here } Idna_flags; ^~~~~~~~~~ /usr/include/idna.h:84:29: error: conflicting types for ‘idn2_strerror’ extern IDNAPI const char *idna_strerror (Idna_rc rc); ^ /usr/include/idn2.h:269:5: note: previous declaration of ‘idn2_strerror’ was here idn2_strerror (int rc) G_GNUC_IDN2_ATTRIBUTE_CONST; ^~~~~~~~~~~~~ /usr/include/idna.h:87:21: error: expected ‘;’, ‘,’ or ‘)’ before ‘|’ token extern IDNAPI int idna_to_ascii_4i (const uint32_t * in, size_t inlen, ^ /usr/include/idna.h:95:21: error: expected ‘;’, ‘,’ or ‘)’ before ‘|’ token extern IDNAPI int idna_to_ascii_4z (const uint32_t * input, ^ /usr/include/idna.h:98:21: error: expected ‘;’, ‘,’ or ‘)’ before ‘|’ token extern IDNAPI int idna_to_ascii_8z (const char *input, char **output, ^ /usr/include/idna.h:101:21: error: expected ‘;’, ‘,’ or ‘)’ before ‘|’ token extern IDNAPI int idna_to_ascii_lz (const char *input, char **output, ^ Makefile:214: recipe for target 'src/php_http.lo' failed make: *** [src/php_http.lo] Error 1 Expected result: ---------------- Compile Actual result: -------------- Errors