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
Fail to build on debian sid #1136
Comments
I might be mistaken but I doubt this is #783 because the error is not a missing file. |
This might be because Debian sid is currently moving to libssl1.1 and |
I was able to build puma on debian sid once I installed the new Installing it might be a challenge, as it conflicts with |
This also happens on Fedora rawhide. Build puma with openssl-devel 1.0.2j: Success Same error on nginx. |
Fixes the following error: ``` ../../../../ext/puma_http11/mini_ssl.c: In function ‘get_dh1024’: ../../../../ext/puma_http11/mini_ssl.c:90:5: error: dereferencing pointer to incomplete type ‘DH {aka struct dh_st}’ dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL); ^~ ``` These changes are based on the following patch to nginx: <nginx/nginx@789abf2> ("SSL: default DH parameters compatible with OpenSSL 1.1.0"). Relevant parts of the nginx source code in their full context can be found here: <https://github.com/nginx/nginx/blob/release-1.10.2/src/event/ngx_event_openssl.c#L954-L980>. For reference: > *) Made DH and DH_METHOD opaque. The structures for managing DH objects > have been moved out of the public header files. New functions for managing > these have been added. > [Matt Caswell] <https://www.openssl.org/news/cl110.txt> Fixes puma#1136.
For anyone else that finds this thread like I did (via google) due to getting a similar error trying to install puma 2.16.0 for ruby 2.3.0 on Arch Linux. Doing the following worked to install puma using openssl-1.0 (after you install openssl-1.0 via pacman) References:
|
Method above from @scifisamurai works to compile puma v3.2.0 for ruby 2.3.0 on ArchLinux. |
Works fine for an old project after |
I tried to install puma using the following command line on my debian box (unstable up to date):
It failed to build with the following message:
Ruby version: ruby 2.3.2p217 (2016-11-15) [x86_64-linux-gnu]
Rails version: 4.2.7.1
The text was updated successfully, but these errors were encountered: