conda-forge / curl-feedstock

A conda-smithy repository for curl.
BSD 3-Clause "New" or "Revised" License
3 stars 44 forks source link

/libcurl.so.4: undefined symbol: SSL_CTX_set_alpn_protos #24

Closed roryk closed 6 years ago

roryk commented 6 years ago

On a couple CentOS, Ubuntu and on a few RHEL6/7 Vagrant boxes this works fine. But on an older RH box, it looks like the curl feedstock isn't linked correctly, which breaks some packages that depend on it.

For example:

conda create -n rcurl-test
source activate rcurl-test
conda install -c conda-forge r-rcurl
(rcurl-test) -bash-4.1$ Rscript -e 'library(RCurl')
-bash: syntax error near unexpected token `)'
(rcurl-test) -bash-4.1$ Rscript -e 'library(RCurl)'
Loading required package: methods
Loading required package: bitops
Error: package or namespace load failed for âRCurlâ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/gpfs/users/kbdt501/local/share/bcbio/anaconda/envs/rcurl-test/lib/R/library/RCurl/libs/RCurl.so':
  /gpfs/users/kbdt501/local/share/bcbio/anaconda/envs/rcurl-test/lib/R/library/RCurl/libs/../../../../libcurl.so.4: undefined symbol: SSL_CTX_set_alpn_protos
Execution halted
Linux version 2.6.32-431.el6.x86_64 (mockbuild@x86-023.build.eng.bos.redhat.com) (gcc
 version 4.4.7 20120313 (Red Hat 4.4.7-4)  (GCC) ) #1 SMP Sun Nov 10 22:19:54 EST 2013

Installing libcurl from defaults fixes the issue, so if we could build this curl similar to that one it would fix the problem.

roryk commented 6 years ago

Downgrading to 7.49.1 as suggested in #23 fixes this issue as well.

roryk commented 6 years ago

I had some detritus in my LD_LIBRARY_PATH, which fixes this problem after I remove it.

jakirkham commented 6 years ago

Yeah setting LD_LIBRARY_PATH outside of a build is generally a recipe for trouble. Good to close?

roryk commented 6 years ago

Yep, sorry for the false alarm!

nsoranzo commented 6 years ago

I got bitten by this issue too, will be fixed by https://github.com/conda-forge/curl-feedstock/pull/29 .

roryk commented 6 years ago

Thanks for making an actual fix for this issue!