PHP :: Bug #76126 :: Make Fails after adding openssl to configuration
php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76126 Make Fails after adding openssl to configuration
Submitted: 2018-03-21 12:38 UTC Modified: 2018-03-21 13:51 UTC
Votes:2
Avg. Score:3.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: jay dot a dot carlson at gmail dot com Assigned:
Status: Open Package: Compile Failure
PHP Version: 7.2.3 OS: Red Hat 7.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jay dot a dot carlson at gmail dot com
New email:
PHP Version: OS:

 

 [2018-03-21 12:38 UTC] 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

Patches

php_with_openssl_completes_make_compile (last revision 2018-03-21 12:39 UTC) by jay dot a dot carlson at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-21 13:51 UTC] jay dot a dot carlson at gmail dot com
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.
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Fri Aug 17 18:01:26 2018 UTC