Bug #76126 [Opn]: Make Fails after adding openssl to configuration
| From: | jay dot a dot carlson at gmail dot com | Date: | Wed, 21 Mar 2018 13:51:49 +0000 |
| Subject: | Bug #76126 [Opn]: Make Fails after adding openssl to configuration | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-214434@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76126&edit=1
ID: 76126
User updated by: jay dot a dot carlson at gmail dot com
Reported by: jay dot a dot carlson at gmail dot com
Summary: Make Fails after adding openssl to configuration
Status: Open
Type: Bug
Package: Compile Failure
Operating System: Red Hat 7.3
PHP Version: 7.2.3
Block user comment: N
Private report: N
New Comment:
Note:
Using a c++ program to install LAMP plus many languages at
https://github.com/JayACarlsonAtHome/j5c_install_from_source_001
Installing
php 7.2.3, openssl 1.1.0g, and xdebug 2.6.0 has been pushed to dev-work branch.
Previous Comments:
------------------------------------------------------------------------
[2018-03-21 12:38:29] jay dot a dot carlson at gmail dot com
Description:
------------
Using a c++ program to install LAMP plus many languages at
https://github.com/JayACarlsonAtHome/j5c_install_from_source_001
1. Installing php 7.2.2 without openssl worked just fine.
2. Installing php 7.2.3 without openssl worked just fine.
3. Installing php 7.2.3 with openssl 1.1.0g works.
4. Installing php 7.2.3 with openssl 1.0.2n breaks on make.
Note: Installing openssl hasn't been pushed to my git project yet
because it is not working, but I will push it to the dev-work branch
shortly so that you can use it if you want to see the results that way.
It takes a long time to build all the programs from source, but you can
mark skip = true in the config file to ignore other programs.
Test script:
---------------
cd ..../php-7.2.3/
./configure --prefix=/wd3/j5c/p002/usr/php/ \
--exec-prefix=/wd3/j5c/p002/usr/php/ \
--srcdir=/wd3/j5c/p002/src/php/php-7.2.3/ \
--with-openssl=/wd3/j5c/p002/usr/openssl \
--with-apxs2=/wd3/j5c/p002/usr/apache/bin/apxs \
--enable-mysqlnd \
--with-pdo-mysql=/wd3/j5c/p002/usr/mariadb/ \
--with-pcre-regex=/wd3/j5c/p002/usr/pcre/ \
--with-config-file-path=/wd3/j5c/p002/usr/php/lib/ \
--with-config-file-scan-dir=/wd3/j5c/p002/etc/php/ \
--with-curl=/usr/bin \
--with-mysql-sock=/wd3/j5c/p002/usr/mariadb/run/mariadb.socket \
--enable-embedded-mysqli \
--disable-cgi --disable-short-tags --enable-bcmath \
--with-pcre-jit --enable-sigchild --enable-libgcc \
--enable-calendar --enable-dba=shared --enable-ftp \
--enable-intl --enable-mbstring --enable-zip \
--enable-zend-test
make clean
make --> fails
Expected result:
----------------
Installing php 7.2.3 with openssl works with the latest version of openssl.
Actual result:
--------------
make results ....(chopped off) ...
lstdc++ -lcrypto -lssl -lcrypto -lpcre -lcrypto -lssl -lcrypto -lrt -lm -ldl -lnsl -lpthread -lgcc
-lxml2 -lz -lm -ldl -lcurl -lxml2 -lz -lm -ldl -ldl -lm -licui18n -licuuc -licudata -ldl -lm -licuio
-lmariadb -ldl -lm -lgnutls -lxml2 -lz -lm -ldl -lcrypt -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl
-lxml2 -lz -lm -ldl -lcrypt -o libphp7.la
/bin/ld: /wd3/j5c/p002/usr/openssl/lib/libcrypto.a(cryptlib.o): relocation R_X86_64_32 against
`.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/wd3/j5c/p002/usr/openssl/lib/libcrypto.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [libphp7.la] Error 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76126&edit=1