Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107793 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 11574 invoked from network); 15 Nov 2019 07:05:02 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 15 Nov 2019 07:05:02 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 948F02D2113 for ; Thu, 14 Nov 2019 20:56:51 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Thu, 14 Nov 2019 20:56:51 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id q18so98606pls.5 for ; Thu, 14 Nov 2019 20:56:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=reply-to:to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=oUGd13jE4FyaYfFOytkqsNnq3q1F+g/hn0IaKSl/70s=; b=XQZsrxufpTpYzq/dyGH10AatgqTybaPu2VpEK+PVXkblSjzNgIwmzLvlZ1Y973gOYX BrBcchV1nOFFGvj4FjyMxd7aAs2QsJ1S2KYkH22ZfPOd6drkC6HNLoUo4Ei+ypv170Y3 0IWs/7r82PUuicCHeKpII+ku+40unoFn5lb/2atXOTXWKei9VnDQRGeVavw4I3HkD7yk As2Nyl8aolCMrMUWUy6axnuV5+4cky+qTDUuZ53l4ydbei2vPsyA74EL8xrTd7wXXpN4 5RjmSIgjOBT9zEAmjbtbV6jUV85i0wlGwMdX0bMODFdqx1c3ZLZqVIz3HtGb8SCvHfQ/ Qn8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:to:cc:from:subject:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=oUGd13jE4FyaYfFOytkqsNnq3q1F+g/hn0IaKSl/70s=; b=JlE9wIzDL35HmLG3xPFzW7IQEyZHhh2n1hLy1SwjZ61hF//tMXK2whHax2WKwbJyV4 N21+IPUik2Jl9ndUk9bDbYAUpL+oblYqiZF7NwPwBaAx6meekWF9Oy9VyZR38uDj9QTf DfywDqPzPLG1P8J3f1rq0NJ2m/J6dHTBaCvN3dp9ZcBL6P8vsKqmJMAo769mBV1Of+gf GC9HhweG3D9kL33vFg3/tHAQMD0LlvpvlFT3u14p/h4grhDlgP8ymofKDDYgsF6JLZek oI+LI7CKTyGmXj16PzxlUQrgUv4G2551O4GPeuqNMcbwmKwZCepCVu4gMMJBM7kv8NU9 ZeWA== X-Gm-Message-State: APjAAAVgiZnNBrd3GY2H1YzISHPBztpJ3hRDc9jNPyCYMHXduTJoOrHH 7mbv6FO1fPWR8B4CBBYn5+EuQhAl X-Google-Smtp-Source: APXvYqy++FT2KCbUpeTnH8i0jgyZlDlRphJyofenFA+B22m88MxwUrXghPh464AWP3NAz8XgYuDNOw== X-Received: by 2002:a17:902:be03:: with SMTP id r3mr6403642pls.88.1573793810126; Thu, 14 Nov 2019 20:56:50 -0800 (PST) Received: from mua.localhost (99-7-172-215.lightspeed.snmtca.sbcglobal.net. [99.7.172.215]) by smtp.gmail.com with ESMTPSA id g3sm8031880pfo.82.2019.11.14.20.56.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Nov 2019 20:56:49 -0800 (PST) Reply-To: pgnet.dev@gmail.com To: internals@lists.php.net Cc: sterling@php.net Message-ID: <14576377-3d3e-ac7a-6f8f-94f08c30eb06@gmail.com> Date: Thu, 14 Nov 2019 20:56:48 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Envelope-From: Subject: =?UTF-8?Q?php_7=2e=7b3=2c4=7d/git_ext/curl_builds_FAIL_with_recent_?= =?UTF-8?B?Y3VybC9saWJjdXJsIDcuNjcrOiAiZXJyb3I6IOKAmENVUkxFX09CU09MRVRFMjA=?= =?UTF-8?B?4oCZIHVuZGVjbGFyZWQgLi4uIi4=?= From: pgnet.dev@gmail.com (PGNet Dev) I needed to bump local curl build version to fix a (php-unrelated) SEGV. Currently, I have curl -V curl 7.67.1-DEV (x86_64-pc-linux-gnu) libcurl/7.67.1-DEV OpenSSL/1.1.1d zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh2/1.9.0_DEV nghttp2/1.40.0-DEV Release-Date: [unreleased] Protocols: dict file ftp ftps http https imap imaps pop3 pop3s scp sftp smtp smtps tftp Features: AsynchDNS brotli HTTP2 HTTPS-proxy IDN IPv6 Largefile libz Metalink NTLM NTLM_WB PSL SSL TLS-SRP UnixSockets Rebuilding my usual PHP7.3/git install, (add'l note: fwiw, the following issue also occurs with 7.4/git ...) cd php7 git branch -a | grep \* * PHP-7.3 git log | head commit 9083e178f656878cab46aee52b555346ef92a768 Author: Dmitry Stogov Date: Tue Nov 12 12:59:50 2019 +0300 Fixed wrong constant usage commit ea2a125789d2e6cf7416bd706be1ac44df1367e4 Merge: 4a55794b98 2c9926f156 Author: Stanislav Malyshev Date: Mon Nov 11 23:08:38 2019 -0800 works nicely as usual, /usr/local/php7/bin/php -v PHP 7.3.13-dev (cli) (built: Nov 14 2019 19:53:24) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.13-dev, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.13-dev, Copyright (c) 1999-2018, by Zend Technologies But curl extension now fails, ext/curl/interface.c:778:25: error: ‘CURLE_OBSOLETE20’ undeclared (first use in this function); did you mean ‘CURLE_OBSOLETE50’? 778 | REGISTER_CURL_CONSTANT(CURLE_FTP_WRITE_ERROR); Before making noise about in @bugs, wanted to check 1st; known issue? additional/new config req'd? Here's more detail cd ext/curl /usr/local/php7/bin/phpize Configuring for: PHP Api Version: 20180731 Zend Module Api No: 20180731 Zend Extension Api No: 320180731 ./configure \ --with-php-config=/usr/local/php7/bin/php-config \ --with-curl=/usr/local \ --with-libdir=lib64 \ --enable-shared --disable-static \ --with-gnu-ld ... checking for cURL support... yes, shared checking for libcurl.pc... using /usr/local/lib64/pkgconfig/libcurl.pc checking for cURL 7.15.5 or greater... 7.67.1-DEV checking for SSL support in libcurl... yes checking how to run the C preprocessor... /usr/bin/cpp-9 checking for openssl support in libcurl... checking for ANSI C header files... yes ... checking for gnutls support in libcurl... no checking for curl_easy_perform in -lcurl... yes checking for curl_easy_strerror in -lcurl... yes checking for curl_multi_strerror in -lcurl... yes ... , at `make`, make V=1 /bin/sh /usr/local/src/php7-src/ext/curl/libtool --mode=compile /usr/bin/gcc-9 -I. -I/usr/local/src/php7-src/ext/curl -DPHP_ATOM_INC -I/usr/local/src/php7-src/ext/curl/include -I/usr/local/src/php7-src/ext/curl/main -I/usr/local/src/php7-src/ext/curl -I/usr/local/php7/include/php -I/usr/local/php7/include/php/main -I/usr/local/php7/include/php/TSRM -I/usr/local/php7/include/php/Zend -I/usr/local/php7/include/php/ext -I/usr/local/php7/include/php/ext/date/lib -I/usr/local/include -O3 -Wall -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fmessage-length=0 -grecord-gcc-switches -march=native -mtune=native -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -O3 -Wall -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fmessage-length=0 -grecord-gcc-switches -march=native -mtune=native -c /usr/local/src/php7-src/ext/curl/interface.c -o interface.lo mkdir .libs /usr/bin/gcc-9 -I. -I/usr/local/src/php7-src/ext/curl -DPHP_ATOM_INC -I/usr/local/src/php7-src/ext/curl/include -I/usr/local/src/php7-src/ext/curl/main -I/usr/local/src/php7-src/ext/curl -I/usr/local/php7/include/php -I/usr/local/php7/include/php/main -I/usr/local/php7/include/php/TSRM -I/usr/local/php7/include/php/Zend -I/usr/local/php7/include/php/ext -I/usr/local/php7/include/php/ext/date/lib -I/usr/local/include -O3 -Wall -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fmessage-length=0 -grecord-gcc-switches -march=native -mtune=native -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -O3 -Wall -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fmessage-length=0 -grecord-gcc-switches -march=native -mtune=native -c /usr/local/src/php7-src/ext/curl/interface.c -fPIC -DPIC -o .libs/interface.o In file included from /usr/local/php7/include/php/main/php.h:468, from /usr/local/src/php7-src/ext/curl/interface.c:25: /usr/local/src/php7-src/ext/curl/interface.c: In function ‘zm_startup_curl’: /usr/local/src/php7-src/ext/curl/interface.c:778:25: error: ‘CURLE_OBSOLETE20’ undeclared (first use in this function); did you mean ‘CURLE_OBSOLETE50’? 778 | REGISTER_CURL_CONSTANT(CURLE_FTP_WRITE_ERROR); | ^~~~~~~~~~~~~~~~~~~~~ /usr/local/php7/include/php/Zend/zend_constants.h:53:105: note: in definition of macro ‘REGISTER_LONG_CONSTANT’ 53 | #define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number) | ^~~~ /usr/local/src/php7-src/ext/curl/interface.c:778:2: note: in expansion of macro ‘REGISTER_CURL_CONSTANT’ 778 | REGISTER_CURL_CONSTANT(CURLE_FTP_WRITE_ERROR); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/local/src/php7-src/ext/curl/interface.c:778:25: note: each undeclared identifier is reported only once for each function it appears in 778 | REGISTER_CURL_CONSTANT(CURLE_FTP_WRITE_ERROR); | ^~~~~~~~~~~~~~~~~~~~~ /usr/local/php7/include/php/Zend/zend_constants.h:53:105: note: in definition of macro ‘REGISTER_LONG_CONSTANT’ 53 | #define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number) | ^~~~ /usr/local/src/php7-src/ext/curl/interface.c:778:2: note: in expansion of macro ‘REGISTER_CURL_CONSTANT’ 778 | REGISTER_CURL_CONSTANT(CURLE_FTP_WRITE_ERROR); | ^~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:194: interface.lo] Error 1 noting /usr/local/src/php7-src/ext/curl/interface.c ... REGISTER_CURL_CONSTANT(CURLE_FTP_WEIRD_USER_REPLY); 778 REGISTER_CURL_CONSTANT(CURLE_FTP_WRITE_ERROR); REGISTER_CURL_CONSTANT(CURLE_FUNCTION_NOT_FOUND); ... checking, grep CURLE_OBSOLETE /usr/local/include/curl/curl.h CURLE_OBSOLETE24, /* 24 - NOT USED */ CURLE_OBSOLETE29, /* 29 - NOT USED */ CURLE_OBSOLETE32, /* 32 - NOT USED */ CURLE_OBSOLETE40, /* 40 - NOT USED */ CURLE_OBSOLETE44, /* 44 - NOT USED */ CURLE_OBSOLETE46, /* 46 - NOT USED */ CURLE_OBSOLETE50, /* 50 - NOT USED */ CURLE_OBSOLETE51, /* 51 - NOT USED */ CURLE_OBSOLETE57, /* 57 - NOT IN USE */ #define CURLE_OBSOLETE16 CURLE_HTTP2 #define CURLE_OBSOLETE10 CURLE_FTP_ACCEPT_FAILED #define CURLE_OBSOLETE12 CURLE_FTP_ACCEPT_TIMEOUT #define CURLE_OBSOLETE CURLE_OBSOLETE50 /* no one should be using this! */ #define CURLE_BAD_PASSWORD_ENTERED CURLE_OBSOLETE46 #define CURLE_BAD_CALLING_ORDER CURLE_OBSOLETE44 #define CURLE_FTP_USER_PASSWORD_INCORRECT CURLE_OBSOLETE10 #define CURLE_FTP_CANT_RECONNECT CURLE_OBSOLETE16 #define CURLE_FTP_COULDNT_GET_SIZE CURLE_OBSOLETE32 #define CURLE_FTP_COULDNT_SET_ASCII CURLE_OBSOLETE29 #define CURLE_FTP_WEIRD_USER_REPLY CURLE_OBSOLETE12 ! #define CURLE_FTP_WRITE_ERROR CURLE_OBSOLETE20 #define CURLE_LIBRARY_NOT_FOUND CURLE_OBSOLETE40 #define CURLE_MALFORMAT_USER CURLE_OBSOLETE24 #define CURLE_SHARE_IN_USE CURLE_OBSOLETE57 A problem on my end, or a bug with new(er) curl/libcurl 'vs' php ext/curl? If more info's needed b4 redirecting, or to deal with here, pls let me know. thx!