EasyApache not compiling Curl with SSH

mofolo

Member
Jan 26, 2012
18
0
51
cPanel Access Level
Website Owner
EasyApache not compiling Curl with SSL

Hey All,

I recently ran Easy Apache and it broke my server's SSL cURL ability.

Upon looking at the Easy Apache build logs, I found this error while cURL's makefile is being compiled.

Code:
/usr/bin/ld: /usr/local/lib/librtmp.a(rtmp.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/librtmp.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libcurl.la] Error 1
I read around, and found that compiling with -fPIC should fix the problem; I just don't know where to put this flag?

Additionally, I noted that this is a shared data issue, so, I SSH and ran:

Code:
cd /home/cpeasyapache/src/curl-7/
./configure --disable-shared --enable-ssl
This works fine, however PHP still does not identify that cURL has HTTPS support, despite getting this response:

Code:
curl -V
curl 7.38.0 (x86_64-unknown-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.1e zlib/1.2.3 libidn/1.18 librtmp/2.2e
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp 
Features: IDN IPv6 Largefile NTLM NTLM_WB SSL lib
I tried re-building PHP alone, however this did not fix the issue.

What can I do?

Thanks.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
Hello :)

To update, this was a result of a custom compiled libRTMP in the /usr/local/lib directory.

Thank you.