Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS 6.5 Building with Erlang R16B0x fails to start #26

Closed
dalgibbard opened this issue Sep 1, 2014 · 8 comments · May be fixed by #29
Closed

CentOS 6.5 Building with Erlang R16B0x fails to start #26

dalgibbard opened this issue Sep 1, 2014 · 8 comments · May be fixed by #29

Comments

@dalgibbard
Copy link

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 added a commit to zpetr/build-couchdb that referenced this issue Sep 15, 2014
@zpetr
Copy link
Contributor

zpetr commented Sep 16, 2014

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

@dalgibbard
Copy link
Author

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

@dalgibbard
Copy link
Author

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
Copy link
Contributor

zpetr commented Sep 16, 2014

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
Copy link
Author

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
Copy link
Author

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

@iknox
Copy link

iknox commented May 5, 2015

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
Copy link
Author

Closing as this all referrers to old stuff :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants