jhs / build-couchdb

Batteries-included CouchDB build system
68 stars 17 forks source link

CentOS 6.5 Building with Erlang R16B0x fails to start #26

Closed dalgibbard closed 6 years ago

dalgibbard commented 10 years ago

Hi all, It would seem that if you build CouchDB (tested version 1.4 and 1.6) against Erlang R16B0x (Tested B03 and B03-1) on CentOS 6.4 / 6.5 x86_64, the completed build fails to start, with the error featured in: http://erlang.org/pipermail/erlang-questions/2014-February/076760.html

To fix, add to tasks/erlang.rake:44 “-DOPENSSL_NO_EC=1″

zpetr commented 10 years ago

It was fixed in my otp-fix branch too but I suggest you to use OTP-17 fix from #24

dalgibbard commented 10 years ago

I'll test this alongside #24 once the directory thing is sorted :)

dalgibbard commented 10 years ago

Out of interest; do we know what the specific cause of this is? ie. Is it something that can be detected and applied (or requested) automatically?

zpetr commented 10 years ago

Just to give more details on this problem. Since last update of OpenSSL due to security bug fix, RedHat / CentOS packages produce errors in some conditions if Elastic Curves is used in SSL. Elastic Curves can be disabled in build with:

rake erl_cflags="-DOPENSSL_NO_EC=1"

But this solution is not recommended at production. So I think it isn't a good idea to push it automatically.

dalgibbard commented 10 years ago

It doesn't build at all without it though in the aforementioned cases... Even if we only prompt the user about it, else they won't find out this is an issue until they've finished the entire build, and attempted to run CouchDB? idk...

dalgibbard commented 10 years ago

This fixes it anyway btw; @jhs please merge! (#29)

iknox commented 9 years ago

This is a bit of an old issue but I found that adding

erl_cflags="-DOPENSSL_NO_EC=1"

didn't seem to have any effect. I just added it directly to the rake task

sed -i 's/#{cflags}/#{cflags} -DOPENSSL_NO_EC=1/g' tasks/erlang.rake
dalgibbard commented 6 years ago

Closing as this all referrers to old stuff :)