{"action":"opened","number":759,"pull_request":{"url":"https://api.github.com/repos/puma/puma/pulls/759","id":42249425,"html_url":"https://github.com/puma/puma/pull/759","diff_url":"https://github.com/puma/puma/pull/759.diff","patch_url":"https://github.com/puma/puma/pull/759.patch","issue_url":"https://api.github.com/repos/puma/puma/issues/759","number":759,"state":"open","locked":false,"title":"Check for OPENSSL_NO_ECDH before using ECDH","user":{"login":"BenV","id":128300,"avatar_url":"https://avatars.githubusercontent.com/u/128300?v=3","gravatar_id":"","url":"https://api.github.com/users/BenV","html_url":"https://github.com/BenV","followers_url":"https://api.github.com/users/BenV/followers","following_url":"https://api.github.com/users/BenV/following{/other_user}","gists_url":"https://api.github.com/users/BenV/gists{/gist_id}","starred_url":"https://api.github.com/users/BenV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenV/subscriptions","organizations_url":"https://api.github.com/users/BenV/orgs","repos_url":"https://api.github.com/users/BenV/repos","events_url":"https://api.github.com/users/BenV/events{/privacy}","received_events_url":"https://api.github.com/users/BenV/received_events","type":"User","site_admin":false},"body":"Trying to build puma > 2.9.2 on CentOS 6 gives the following errors due to lack of OpenSSL EC support in RHEL (patent issues):\r\n\r\n```\r\nInstalling puma 2.12.3 (was 2.9.2) with native extensions\r\n\r\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\r\n\r\n    /usr/bin/ruby extconf.rb\r\nchecking for BIO_read() in -lcrypto... yes\r\nchecking for SSL_CTX_new() in -lssl... yes\r\ncreating Makefile\r\n\r\nmake \"DESTDIR=\" clean\r\n\r\nmake \"DESTDIR=\"\r\ncompiling mini_ssl.c\r\nIn file included from mini_ssl.c:3:\r\n/usr/include/ruby/ruby-2.1.0/ruby/backward/rubyio.h:2:2: warning: #warning use \"ruby/io.h\" instead of \"rubyio.h\"\r\nmini_ssl.c: In function ‘engine_init_server’:\r\nmini_ssl.c:150: error: ‘EC_KEY’ undeclared (first use in this function)\r\nmini_ssl.c:150: error: (Each undeclared identifier is reported only once\r\nmini_ssl.c:150: error: for each function it appears in.)\r\nmini_ssl.c:150: error: ‘ecdh’ undeclared (first use in this function)\r\nmini_ssl.c:150: warning: implicit declaration of function ‘EC_KEY_new_by_curve_name’\r\nmini_ssl.c:153: warning: implicit declaration of function ‘EC_KEY_free’\r\nmini_ssl.c: In function ‘engine_read’:\r\nmini_ssl.c:241: warning: unused variable ‘n’\r\nmini_ssl.c: In function ‘engine_peercert’:\r\nmini_ssl.c:340: warning: pointer targets in passing argument 1 of ‘rb_str_new’ differ in signedness\r\n/usr/include/ruby/ruby-2.1.0/ruby/intern.h:704: note: expected ‘const char *’ but argument is of type ‘unsigned char *’\r\nmake: *** [mini_ssl.o] Error 1\r\n\r\nmake failed, exit code 2\r\n```\r\n\r\nLightttpd had a similar issue: http://redmine.lighttpd.net/boards/2/topics/4335 and http://redmine.lighttpd.net/issues/2335\r\n\r\nAdding a compile time check for OPENSSL_NO_ECDH solves the problem for us.","created_at":"2015-08-12T14:58:42Z","updated_at":"2015-08-12T14:58:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puma/puma/pulls/759/commits","review_comments_url":"https://api.github.com/repos/puma/puma/pulls/759/comments","review_comment_url":"https://api.github.com/repos/puma/puma/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puma/puma/issues/759/comments","statuses_url":"https://api.github.com/repos/puma/puma/statuses/c7cc4e184e3ac910573aa8589ff16d69022820cc","head":{"label":"BenV:fix-centos6-build","ref":"fix-centos6-build","sha":"c7cc4e184e3ac910573aa8589ff16d69022820cc","user":{"login":"BenV","id":128300,"avatar_url":"https://avatars.githubusercontent.com/u/128300?v=3","gravatar_id":"","url":"https://api.github.com/users/BenV","html_url":"https://github.com/BenV","followers_url":"https://api.github.com/users/BenV/followers","following_url":"https://api.github.com/users/BenV/following{/other_user}","gists_url":"https://api.github.com/users/BenV/gists{/gist_id}","starred_url":"https://api.github.com/users/BenV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenV/subscriptions","organizations_url":"https://api.github.com/users/BenV/orgs","repos_url":"https://api.github.com/users/BenV/repos","events_url":"https://api.github.com/users/BenV/events{/privacy}","received_events_url":"https://api.github.com/users/BenV/received_events","type":"User","site_admin":false},"repo":{"id":40603511,"name":"puma","full_name":"BenV/puma","owner":{"login":"BenV","id":128300,"avatar_url":"https://avatars.githubusercontent.com/u/128300?v=3","gravatar_id":"","url":"https://api.github.com/users/BenV","html_url":"https://github.com/BenV","followers_url":"https://api.github.com/users/BenV/followers","following_url":"https://api.github.com/users/BenV/following{/other_user}","gists_url":"https://api.github.com/users/BenV/gists{/gist_id}","starred_url":"https://api.github.com/users/BenV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenV/subscriptions","organizations_url":"https://api.github.com/users/BenV/orgs","repos_url":"https://api.github.com/users/BenV/repos","events_url":"https://api.github.com/users/BenV/events{/privacy}","received_events_url":"https://api.github.com/users/BenV/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BenV/puma","description":"A ruby web server built for concurrency","fork":true,"url":"https://api.github.com/repos/BenV/puma","forks_url":"https://api.github.com/repos/BenV/puma/forks","keys_url":"https://api.github.com/repos/BenV/puma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BenV/puma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BenV/puma/teams","hooks_url":"https://api.github.com/repos/BenV/puma/hooks","issue_events_url":"https://api.github.com/repos/BenV/puma/issues/events{/number}","events_url":"https://api.github.com/repos/BenV/puma/events","assignees_url":"https://api.github.com/repos/BenV/puma/assignees{/user}","branches_url":"https://api.github.com/repos/BenV/puma/branches{/branch}","tags_url":"https://api.github.com/repos/BenV/puma/tags","blobs_url":"https://api.github.com/repos/BenV/puma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BenV/puma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BenV/puma/git/refs{/sha}","trees_url":"https://api.github.com/repos/BenV/puma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BenV/puma/statuses/{sha}","languages_url":"https://api.github.com/repos/BenV/puma/languages","stargazers_url":"https://api.github.com/repos/BenV/puma/stargazers","contributors_url":"https://api.github.com/repos/BenV/puma/contributors","subscribers_url":"https://api.github.com/repos/BenV/puma/subscribers","subscription_url":"https://api.github.com/repos/BenV/puma/subscription","commits_url":"https://api.github.com/repos/BenV/puma/commits{/sha}","git_commits_url":"https://api.github.com/repos/BenV/puma/git/commits{/sha}","comments_url":"https://api.github.com/repos/BenV/puma/comments{/number}","issue_comment_url":"https://api.github.com/repos/BenV/puma/issues/comments{/number}","contents_url":"https://api.github.com/repos/BenV/puma/contents/{+path}","compare_url":"https://api.github.com/repos/BenV/puma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BenV/puma/merges","archive_url":"https://api.github.com/repos/BenV/puma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BenV/puma/downloads","issues_url":"https://api.github.com/repos/BenV/puma/issues{/number}","pulls_url":"https://api.github.com/repos/BenV/puma/pulls{/number}","milestones_url":"https://api.github.com/repos/BenV/puma/milestones{/number}","notifications_url":"https://api.github.com/repos/BenV/puma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BenV/puma/labels{/name}","releases_url":"https://api.github.com/repos/BenV/puma/releases{/id}","created_at":"2015-08-12T13:54:44Z","updated_at":"2015-08-12T13:54:45Z","pushed_at":"2015-08-12T14:52:22Z","git_url":"git://github.com/BenV/puma.git","ssh_url":"git@github.com:BenV/puma.git","clone_url":"https://github.com/BenV/puma.git","svn_url":"https://github.com/BenV/puma","homepage":"http://puma.io","size":9514,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"puma:master","ref":"master","sha":"972e8102f520a86b7da6c556770ae01959689a87","user":{"login":"puma","id":1264292,"avatar_url":"https://avatars.githubusercontent.com/u/1264292?v=3","gravatar_id":"","url":"https://api.github.com/users/puma","html_url":"https://github.com/puma","followers_url":"https://api.github.com/users/puma/followers","following_url":"https://api.github.com/users/puma/following{/other_user}","gists_url":"https://api.github.com/users/puma/gists{/gist_id}","starred_url":"https://api.github.com/users/puma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puma/subscriptions","organizations_url":"https://api.github.com/users/puma/orgs","repos_url":"https://api.github.com/users/puma/repos","events_url":"https://api.github.com/users/puma/events{/privacy}","received_events_url":"https://api.github.com/users/puma/received_events","type":"Organization","site_admin":false},"repo":{"id":2441517,"name":"puma","full_name":"puma/puma","owner":{"login":"puma","id":1264292,"avatar_url":"https://avatars.githubusercontent.com/u/1264292?v=3","gravatar_id":"","url":"https://api.github.com/users/puma","html_url":"https://github.com/puma","followers_url":"https://api.github.com/users/puma/followers","following_url":"https://api.github.com/users/puma/following{/other_user}","gists_url":"https://api.github.com/users/puma/gists{/gist_id}","starred_url":"https://api.github.com/users/puma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puma/subscriptions","organizations_url":"https://api.github.com/users/puma/orgs","repos_url":"https://api.github.com/users/puma/repos","events_url":"https://api.github.com/users/puma/events{/privacy}","received_events_url":"https://api.github.com/users/puma/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puma/puma","description":"A ruby web server built for concurrency","fork":false,"url":"https://api.github.com/repos/puma/puma","forks_url":"https://api.github.com/repos/puma/puma/forks","keys_url":"https://api.github.com/repos/puma/puma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puma/puma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puma/puma/teams","hooks_url":"https://api.github.com/repos/puma/puma/hooks","issue_events_url":"https://api.github.com/repos/puma/puma/issues/events{/number}","events_url":"https://api.github.com/repos/puma/puma/events","assignees_url":"https://api.github.com/repos/puma/puma/assignees{/user}","branches_url":"https://api.github.com/repos/puma/puma/branches{/branch}","tags_url":"https://api.github.com/repos/puma/puma/tags","blobs_url":"https://api.github.com/repos/puma/puma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puma/puma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puma/puma/git/refs{/sha}","trees_url":"https://api.github.com/repos/puma/puma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puma/puma/statuses/{sha}","languages_url":"https://api.github.com/repos/puma/puma/languages","stargazers_url":"https://api.github.com/repos/puma/puma/stargazers","contributors_url":"https://api.github.com/repos/puma/puma/contributors","subscribers_url":"https://api.github.com/repos/puma/puma/subscribers","subscription_url":"https://api.github.com/repos/puma/puma/subscription","commits_url":"https://api.github.com/repos/puma/puma/commits{/sha}","git_commits_url":"https://api.github.com/repos/puma/puma/git/commits{/sha}","comments_url":"https://api.github.com/repos/puma/puma/comments{/number}","issue_comment_url":"https://api.github.com/repos/puma/puma/issues/comments{/number}","contents_url":"https://api.github.com/repos/puma/puma/contents/{+path}","compare_url":"https://api.github.com/repos/puma/puma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puma/puma/merges","archive_url":"https://api.github.com/repos/puma/puma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puma/puma/downloads","issues_url":"https://api.github.com/repos/puma/puma/issues{/number}","pulls_url":"https://api.github.com/repos/puma/puma/pulls{/number}","milestones_url":"https://api.github.com/repos/puma/puma/milestones{/number}","notifications_url":"https://api.github.com/repos/puma/puma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puma/puma/labels{/name}","releases_url":"https://api.github.com/repos/puma/puma/releases{/id}","created_at":"2011-09-23T02:26:08Z","updated_at":"2015-08-11T14:22:43Z","pushed_at":"2015-08-11T18:37:07Z","git_url":"git://github.com/puma/puma.git","ssh_url":"git@github.com:puma/puma.git","clone_url":"https://github.com/puma/puma.git","svn_url":"https://github.com/puma/puma","homepage":"http://puma.io","size":9514,"stargazers_count":3552,"watchers_count":3552,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":441,"mirror_url":null,"open_issues_count":58,"forks":441,"open_issues":58,"watchers":3552,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puma/puma/pulls/759"},"html":{"href":"https://github.com/puma/puma/pull/759"},"issue":{"href":"https://api.github.com/repos/puma/puma/issues/759"},"comments":{"href":"https://api.github.com/repos/puma/puma/issues/759/comments"},"review_comments":{"href":"https://api.github.com/repos/puma/puma/pulls/759/comments"},"review_comment":{"href":"https://api.github.com/repos/puma/puma/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puma/puma/pulls/759/commits"},"statuses":{"href":"https://api.github.com/repos/puma/puma/statuses/c7cc4e184e3ac910573aa8589ff16d69022820cc"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":0,"changed_files":1}}