Bug #76126 [NEW]: Make Fails after adding openssl to configuration
| From: | jay dot a dot carlson at gmail dot com | Date: | Wed, 21 Mar 2018 12:38:31 +0000 |
| Subject: | Bug #76126 [NEW]: Make Fails after adding openssl to configuration | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-214427@lists.php.net to get a copy of this message | ||
From: jay dot a dot carlson at gmail dot com
Operating system: Red Hat 7.3
PHP version: 7.2.3
Package: Compile Failure
Bug Type: Bug
Bug description:Make Fails after adding openssl to configuration
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 bug report at https://bugs.php.net/bug.php?id=76126&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76126&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76126&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76126&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76126&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76126&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76126&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76126&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76126&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76126&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76126&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76126&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76126&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76126&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76126&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76126&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76126&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76126&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76126&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76126&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76126&r=mysqlcfg