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: 2021-02-21 04:22 UTC
Votes:3
Avg. Score:3.0 ± 0.8
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: cmb (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 7.2.3 OS: Red Hat 7.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
29 + 2 = ?
Subscribe to this entry?

 
 [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.
 [2021-02-12 15:10 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-02-12 15:10 UTC] cmb@php.net
Is this still an issue for you with any of the actively supported
PHP versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-02-21 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC