{"action":"created","issue":{"url":"https://api.github.com/repos/processone/fast_tls/issues/11","repository_url":"https://api.github.com/repos/processone/fast_tls","labels_url":"https://api.github.com/repos/processone/fast_tls/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/processone/fast_tls/issues/11/comments","events_url":"https://api.github.com/repos/processone/fast_tls/issues/11/events","html_url":"https://github.com/processone/fast_tls/issues/11","id":191870339,"number":11,"title":"implicit declaration of function ‘OPENSSL_cleanup breaks a libressl based Gentoo ejabberd server","user":{"login":"toralf","id":1780404,"avatar_url":"https://avatars.githubusercontent.com/u/1780404?v=3","gravatar_id":"","url":"https://api.github.com/users/toralf","html_url":"https://github.com/toralf","followers_url":"https://api.github.com/users/toralf/followers","following_url":"https://api.github.com/users/toralf/following{/other_user}","gists_url":"https://api.github.com/users/toralf/gists{/gist_id}","starred_url":"https://api.github.com/users/toralf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toralf/subscriptions","organizations_url":"https://api.github.com/users/toralf/orgs","repos_url":"https://api.github.com/users/toralf/repos","events_url":"https://api.github.com/users/toralf/events{/privacy}","received_events_url":"https://api.github.com/users/toralf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-27T16:29:53Z","updated_at":"2016-11-28T09:21:09Z","closed_at":null,"body":"At a stable hardened Gentoo with libressl I do get for 1.0.7\r\n\r\n\r\n QA Notice: Package triggers severe warnings which indicate that it\r\n            may exhibit random runtime failures.\r\n c_src/fast_tls_drv.c:350:5: warning: implicit declaration of function ‘OPENSSL_cleanup’ [-Wimplicit-function-declaration]\r\n c_src/fast_tls_drv.c:470:8: warning: implicit declaration of function ‘DH_set0_pqg’ [-Wimplicit-function-declaration]\r\n\r\nand indeed this correlates to https://bugs.gentoo.org/show_bug.cgi?id=600932\r\n\r\n\r\nfew more info:\r\n=ERROR REPORT==== 27-Nov-2016::17:26:32 ===\r\nfailed to load TLS driver: undefined symbol: OPENSSL_cleanup\r\n*failed*\r\nin function fast_tls:'-load_nif_test/0-fun-0-'/0 (src/fast_tls.erl, line 432)\r\n**error:{assertEqual,[{module,fast_tls},\r\n              {line,432},\r\n              {expression,\"load_driver ( )\"},\r\n              {expected,ok},\r\n              {value,{error,{open_error,-10}}}]}\r\n  output:<<\"\">>\r\n\r\nmodule 'p1_sha'\r\n  p1_sha: load_nif_test...ok\r\n  p1_sha: sha1_test...ok\r\n  p1_sha: sha224_test...ok\r\n  p1_sha: sha256_test...ok\r\n  p1_sha: sha384_test...ok\r\n  p1_sha: sha512_test...ok\r\n  p1_sha: to_hexlist_test...ok\r\n  [done in 0.021 s]\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/processone/fast_tls/issues/comments/263220976","html_url":"https://github.com/processone/fast_tls/issues/11#issuecomment-263220976","issue_url":"https://api.github.com/repos/processone/fast_tls/issues/11","id":263220976,"user":{"login":"prefiks","id":61998,"avatar_url":"https://avatars.githubusercontent.com/u/61998?v=3","gravatar_id":"","url":"https://api.github.com/users/prefiks","html_url":"https://github.com/prefiks","followers_url":"https://api.github.com/users/prefiks/followers","following_url":"https://api.github.com/users/prefiks/following{/other_user}","gists_url":"https://api.github.com/users/prefiks/gists{/gist_id}","starred_url":"https://api.github.com/users/prefiks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prefiks/subscriptions","organizations_url":"https://api.github.com/users/prefiks/orgs","repos_url":"https://api.github.com/users/prefiks/repos","events_url":"https://api.github.com/users/prefiks/events{/privacy}","received_events_url":"https://api.github.com/users/prefiks/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T09:21:09Z","updated_at":"2016-11-28T09:21:09Z","body":"So it looks like module compiles code paths that are specific for openssl 1.1+ but then is used with lib that still uses interface for older version of openssl.\r\n\r\nIt's possible that you have headers from openssl1.1 somewhere and those are used instead for that version of lib? Conditional compilation is based on OPENSSL_VERSION_NUMBER that is in file opensslv.h, could you check if you have duplicates of that in your system?"}}
{"actor":{"display_login":"prefiks"}}