error compile php74 with custom openssl

freepr

New member
Joined
Jul 9, 2020
Messages
1
hi, i have try to update myserver ...
os => CentOS release 6.10 (Final)
new openssl => OpenSSL 1.1.1f & openssl dir =/usr/local/openssl

for now i install & compile and run Apache/2.4.43 with new openssl but php not compile and give me error ..


after run ./build php n
Configuring extensions
checking for openssl >= 1.0.1... yes
checking for libcurl linked against old openssl... no
...

compile php74 error
-----------
sapi/cli/php
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: warning: libcrypto.so.10, needed by /usr/lib64/libssl.so, may conflict with libcrypto.so.1.1
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: warning: libcrypto.so.10, needed by /usr/lib64/libssl.so, may conflict with libcrypto.so.1.1
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: warning: libcrypto.so.10, needed by /usr/lib64/libssl.so, may conflict with libcrypto.so.1.1
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: warning: libcrypto.so.10, needed by /usr/lib64/libssl.so, may conflict with libcrypto.so.1.1
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: warning: libssl.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.10
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: warning: libssl.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.10
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: warning: libssl.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.10
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: warning: libssl.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.10
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: ext/openssl/.libs/xp_ssl.o: undefined reference to symbol 'SSL_CTX_set_alpn_select_cb@@OPENSSL_1_1_0'
//usr/local/openssl/lib/libssl.so.1.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:294: sapi/cli/php] Error 1
 
I want to use CentOS 6 in 1 year before switch to Ubuntu. I get this error and workaround for 2 weeks but do not resolve this issue.

Please help me.
 
Back
Top