From: office at vargapeter dot net
Operating system: SLES 12.4
PHP version: 7.2.14
Package: Compile Warning
Bug Type: Bug
Bug description:gcc warning & PHP doesn't start using own openssl & curl
Description:
------------
Compiling PHP 7.2.14 with gcc 8.2.0 produces lot of warnings when using
openssl 1.1.0h and curl 7.63.0 which differ from the SLES 12.4
distribution versions and have been compiled into a separate
directories.
I provide the path to the personalized curl and openssl versions to the
./configure script using
--with-openssl=/FaF/openssl
--with-curl=/FaF/curl
Also then, once PHP compiles and installs it cannot be started.
No error messages are logged in the Apache log file but Apache
apparently crashes.
I set also the relative path to the personalized openssl and curl
libraries for the linker using:
LDFLAGS="-Wl,--rpath=/FaF/openssl/lib -Wl,--rpath=/FaF/curl/lib"
./configure my-configuration
Using the distribution versions of openssl & curl work.
May be a problem when loading the personalized libraries?
Expected result:
----------------
No warnings and crash when starting the compiled PHP version.
Actual result:
--------------
/builds/php-7.2.14/ext/openssl/xp_ssl.c:965:3: warning:
âTLSv1_client_methodâ is deprecated [-Wdeprecated-declarations]
return is_client ? TLSv1_client_method() : TLSv1_server_method();
^~~~~~
In file included from /FaF/openssl/include/openssl/ct.h:13,
from /FaF/openssl/include/openssl/ssl.h:61,
from /builds/php-7.2.14/ext/openssl/xp_ssl.c:34:
/FaF/openssl/include/openssl/ssl.h:1629:45: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void))
/* TLSv1.0 */
^~~~~~~~~~~~~~~~~~~
/FaF/openssl/include/openssl/opensslconf.h:99:35: note: in definition of
macro âDECLARE_DEPRECATEDâ
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/FaF/openssl/include/openssl/ssl.h:1629:1: note: in expansion of macro
âDEPRECATEDIN_1_1_0â
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void))
/* TLSv1.0 */
^~~~~~~~~~~~~~~~~~
/builds/php-7.2.14/ext/openssl/xp_ssl.c:965:3: warning:
âTLSv1_server_methodâ is deprecated [-Wdeprecated-declarations]
return is_client ? TLSv1_client_method() : TLSv1_server_method();
^~~~~~
In file included from /FaF/openssl/include/openssl/ct.h:13,
from /FaF/openssl/include/openssl/ssl.h:61,
from /builds/php-7.2.14/ext/openssl/xp_ssl.c:34:
/FaF/openssl/include/openssl/ssl.h:1628:45: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void))
/* TLSv1.0 */
^~~~~~~~~~~~~~~~~~~
/FaF/openssl/include/openssl/opensslconf.h:99:35: note: in definition of
macro âDECLARE_DEPRECATEDâ
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/FaF/openssl/include/openssl/ssl.h:1628:1: note: in expansion of macro
âDEPRECATEDIN_1_1_0â
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void))
/* TLSv1.0 */
^~~~~~~~~~~~~~~~~~
/builds/php-7.2.14/ext/openssl/xp_ssl.c:968:3: warning:
âTLSv1_1_client_methodâ is deprecated [-Wdeprecated-declarations]
return is_client ? TLSv1_1_client_method() :
TLSv1_1_server_method();
^~~~~~
In file included from /FaF/openssl/include/openssl/ct.h:13,
from /FaF/openssl/include/openssl/ssl.h:61,
from /builds/php-7.2.14/ext/openssl/xp_ssl.c:34:
/FaF/openssl/include/openssl/ssl.h:1635:45: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD
*TLSv1_1_client_method(void)) /* TLSv1.1 */
^~~~~~~~~~~~~~~~~~~~~
/FaF/openssl/include/openssl/opensslconf.h:99:35: note: in definition of
macro âDECLARE_DEPRECATEDâ
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/FaF/openssl/include/openssl/ssl.h:1635:1: note: in expansion of macro
âDEPRECATEDIN_1_1_0â
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD
*TLSv1_1_client_method(void)) /* TLSv1.1 */
^~~~~~~~~~~~~~~~~~
/builds/php-7.2.14/ext/openssl/xp_ssl.c:968:3: warning:
âTLSv1_1_server_methodâ is deprecated [-Wdeprecated-declarations]
return is_client ? TLSv1_1_client_method() :
TLSv1_1_server_method();
^~~~~~
In file included from /FaF/openssl/include/openssl/ct.h:13,
from /FaF/openssl/include/openssl/ssl.h:61,
from /builds/php-7.2.14/ext/openssl/xp_ssl.c:34:
/FaF/openssl/include/openssl/ssl.h:1634:45: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD
*TLSv1_1_server_method(void)) /* TLSv1.1 */
^~~~~~~~~~~~~~~~~~~~~
/FaF/openssl/include/openssl/opensslconf.h:99:35: note: in definition of
macro âDECLARE_DEPRECATEDâ
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/FaF/openssl/include/openssl/ssl.h:1634:1: note: in expansion of macro
âDEPRECATEDIN_1_1_0â
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD
*TLSv1_1_server_method(void)) /* TLSv1.1 */
^~~~~~~~~~~~~~~~~~
/builds/php-7.2.14/ext/openssl/xp_ssl.c:976:3: warning:
âTLSv1_2_client_methodâ is deprecated [-Wdeprecated-declarations]
return is_client ? TLSv1_2_client_method() :
TLSv1_2_server_method();
^~~~~~
In file included from /FaF/openssl/include/openssl/ct.h:13,
from /FaF/openssl/include/openssl/ssl.h:61,
from /builds/php-7.2.14/ext/openssl/xp_ssl.c:34:
/FaF/openssl/include/openssl/ssl.h:1641:45: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD
*TLSv1_2_client_method(void)) /* TLSv1.2 */
^~~~~~~~~~~~~~~~~~~~~
/FaF/openssl/include/openssl/opensslconf.h:99:35: note: in definition of
macro âDECLARE_DEPRECATEDâ
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/FaF/openssl/include/openssl/ssl.h:1641:1: note: in expansion of macro
âDEPRECATEDIN_1_1_0â
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD
*TLSv1_2_client_method(void)) /* TLSv1.2 */
^~~~~~~~~~~~~~~~~~
/builds/php-7.2.14/ext/openssl/xp_ssl.c:976:3: warning:
âTLSv1_2_server_methodâ is deprecated [-Wdeprecated-declarations]
return is_client ? TLSv1_2_client_method() :
TLSv1_2_server_method();
^~~~~~
In file included from /FaF/openssl/include/openssl/ct.h:13,
from /FaF/openssl/include/openssl/ssl.h:61,
from /builds/php-7.2.14/ext/openssl/xp_ssl.c:34:
/FaF/openssl/include/openssl/ssl.h:1640:45: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD
*TLSv1_2_server_method(void)) /* TLSv1.2 */
^~~~~~~~~~~~~~~~~~~~~
/FaF/openssl/include/openssl/opensslconf.h:99:35: note: in definition of
macro âDECLARE_DEPRECATEDâ
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/FaF/openssl/include/openssl/ssl.h:1640:1: note: in expansion of macro
âDEPRECATEDIN_1_1_0â
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD
*TLSv1_2_server_method(void)) /* TLSv1.2 */
^~~~~~~~~~~~~~~~~~
--
Edit bug report at https://bugs.php.net/bug.php?id=77463&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77463&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77463&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77463&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77463&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77463&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77463&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77463&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77463&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77463&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77463&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77463&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77463&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77463&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77463&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77463&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77463&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77463&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77463&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77463&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77463&r=mysqlcfg