{"action":"closed","issue":{"url":"https://api.github.com/repos/processone/tls/issues/17","repository_url":"https://api.github.com/repos/processone/tls","labels_url":"https://api.github.com/repos/processone/tls/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/processone/tls/issues/17/comments","events_url":"https://api.github.com/repos/processone/tls/issues/17/events","html_url":"https://github.com/processone/tls/issues/17","id":238909916,"number":17,"title":"make fails on debian 9","user":{"login":"fisher","id":64515,"avatar_url":"https://avatars3.githubusercontent.com/u/64515?v=3","gravatar_id":"","url":"https://api.github.com/users/fisher","html_url":"https://github.com/fisher","followers_url":"https://api.github.com/users/fisher/followers","following_url":"https://api.github.com/users/fisher/following{/other_user}","gists_url":"https://api.github.com/users/fisher/gists{/gist_id}","starred_url":"https://api.github.com/users/fisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fisher/subscriptions","organizations_url":"https://api.github.com/users/fisher/orgs","repos_url":"https://api.github.com/users/fisher/repos","events_url":"https://api.github.com/users/fisher/events{/privacy}","received_events_url":"https://api.github.com/users/fisher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-27T16:29:14Z","updated_at":"2017-06-29T09:32:10Z","closed_at":"2017-06-29T09:32:10Z","body":"can't figure out how I can fix it:\r\n\r\n```\r\n2 (tls:master) elf% make\r\nrebar compile\r\n==> tls (compile)\r\nCompiling c_src/p1_tls_drv.c\r\nc_src/p1_tls_drv.c: In function ‘setup_dh’:\r\nc_src/p1_tls_drv.c:406:9: error: dereferencing pointer to incomplete type ‘DH {aka struct dh_st}’\r\n       dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL);\r\n         ^~\r\nc_src/p1_tls_drv.c: In function ‘ssl_info_callback’:\r\nc_src/p1_tls_drv.c:426:20: error: ‘SSL3_ST_SR_CLNT_HELLO_A’ undeclared (first use in this function)\r\n       if (state == SSL3_ST_SR_CLNT_HELLO_A ||\r\n                    ^~~~~~~~~~~~~~~~~~~~~~~\r\nc_src/p1_tls_drv.c:426:20: note: each undeclared identifier is reported only once for each function it appears in\r\nc_src/p1_tls_drv.c:427:13: error: ‘SSL23_ST_SR_CLNT_HELLO_A’ undeclared (first use in this function)\r\n    state == SSL23_ST_SR_CLNT_HELLO_A) {\r\n             ^~~~~~~~~~~~~~~~~~~~~~~~\r\nc_src/p1_tls_drv.c: In function ‘driver_init’:\r\nc_src/p1_tls_drv.c:866:29: warning: passing argument 1 of ‘CRYPTO_set_mem_functions’ from incompatible pointer type [-Wincompatible-pointer-types]\r\n    CRYPTO_set_mem_functions(driver_alloc, driver_realloc, driver_free);\r\n                             ^~~~~~~~~~~~\r\nIn file included from /usr/include/openssl/bio.h:20:0,\r\n                 from /usr/include/openssl/err.h:21,\r\n                 from c_src/p1_tls_drv.c:24:\r\n/usr/include/openssl/crypto.h:262:5: note: expected ‘void * (*)(size_t,  const char *, int) {aka void * (*)(long unsigned int,  const char *, int)}’ but argument is of type ‘void * (*)(ErlDrvSizeT) {aka void * (*)(long unsigned int)}’\r\n int CRYPTO_set_mem_functions(\r\n     ^~~~~~~~~~~~~~~~~~~~~~~~\r\nc_src/p1_tls_drv.c:866:43: warning: passing argument 2 of ‘CRYPTO_set_mem_functions’ from incompatible pointer type [-Wincompatible-pointer-types]\r\n    CRYPTO_set_mem_functions(driver_alloc, driver_realloc, driver_free);\r\n                                           ^~~~~~~~~~~~~~\r\nIn file included from /usr/include/openssl/bio.h:20:0,\r\n                 from /usr/include/openssl/err.h:21,\r\n                 from c_src/p1_tls_drv.c:24:\r\n/usr/include/openssl/crypto.h:262:5: note: expected ‘void * (*)(void *, size_t,  const char *, int) {aka void * (*)(void *, long unsigned int,  const char *, int)}’ but argument is of type ‘void * (*)(void *, ErlDrvSizeT) {aka void * (*)(void *, long unsigned int)}’\r\n int CRYPTO_set_mem_functions(\r\n     ^~~~~~~~~~~~~~~~~~~~~~~~\r\nc_src/p1_tls_drv.c:866:59: warning: passing argument 3 of ‘CRYPTO_set_mem_functions’ from incompatible pointer type [-Wincompatible-pointer-types]\r\n    CRYPTO_set_mem_functions(driver_alloc, driver_realloc, driver_free);\r\n                                                           ^~~~~~~~~~~\r\nIn file included from /usr/include/openssl/bio.h:20:0,\r\n                 from /usr/include/openssl/err.h:21,\r\n                 from c_src/p1_tls_drv.c:24:\r\n/usr/include/openssl/crypto.h:262:5: note: expected ‘void (*)(void *, const char *, int)’ but argument is of type ‘void (*)(void *)’\r\n int CRYPTO_set_mem_functions(\r\n     ^~~~~~~~~~~~~~~~~~~~~~~~\r\nERROR: compile failed while processing /home/fisher/prj/tls: rebar_abort\r\nMakefile:4: recipe for target 'src' failed\r\nmake: *** [src] Error 1\r\n```"}}
{"actor":{"display_login":"fisher"}}