{"action":"created","issue":{"url":"https://api.github.com/repos/OpenSC/OpenSC/issues/592","labels_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/592/labels{/name}","comments_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/592/comments","events_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/592/events","html_url":"https://github.com/OpenSC/OpenSC/issues/592","id":113454037,"number":592,"title":"Current (Github) OpenSC cannot properly use OpenSSL","user":{"login":"mouse07410","id":5923577,"avatar_url":"https://avatars.githubusercontent.com/u/5923577?v=3","gravatar_id":"","url":"https://api.github.com/users/mouse07410","html_url":"https://github.com/mouse07410","followers_url":"https://api.github.com/users/mouse07410/followers","following_url":"https://api.github.com/users/mouse07410/following{/other_user}","gists_url":"https://api.github.com/users/mouse07410/gists{/gist_id}","starred_url":"https://api.github.com/users/mouse07410/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mouse07410/subscriptions","organizations_url":"https://api.github.com/users/mouse07410/orgs","repos_url":"https://api.github.com/users/mouse07410/repos","events_url":"https://api.github.com/users/mouse07410/events{/privacy}","received_events_url":"https://api.github.com/users/mouse07410/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-26T21:22:04Z","updated_at":"2015-10-27T15:58:12Z","closed_at":null,"body":"Mac OS X 10.10.5 Yosemite. Xcode 7.0.1. Latest pull of OpenSC from Github. Attempt `MacOSX/build`:\r\n\r\n```\r\n.........\r\nchecking for OPENSSL... yes\r\nchecking openssl/crypto.h usability... no\r\nchecking openssl/crypto.h presence... yes\r\nconfigure: WARNING: openssl/crypto.h: present but cannot be compiled\r\nconfigure: WARNING: openssl/crypto.h:     check for missing prerequisite headers?\r\nconfigure: WARNING: openssl/crypto.h: see the Autoconf documentation\r\nconfigure: WARNING: openssl/crypto.h:     section \"Present But Cannot Be Compiled\"\r\nconfigure: WARNING: openssl/crypto.h: proceeding with the compiler's result\r\nconfigure: WARNING:     ## ------------------------------------------------- ##\r\nconfigure: WARNING:     ## Report this to opensc-devel@lists.sourceforge.net ##\r\nconfigure: WARNING:     ## ------------------------------------------------- ##\r\nchecking for openssl/crypto.h... no\r\n```\r\n\r\nIn case it matters, OpenSSL-1.0.2d is installed by Macports to `/opt/local`, to header files are in `/opt/local/include/openssl`, and the libraries are in `/opt/local/lib`.\r\n\r\n```\r\n$ type openssl\r\nopenssl is hashed (/opt/local/bin/openssl)\r\n$ openssl version\r\nOpenSSL 1.0.2d 9 Jul 2015\r\n$\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OpenSC/OpenSC/issues/comments/151549984","html_url":"https://github.com/OpenSC/OpenSC/issues/592#issuecomment-151549984","issue_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/592","id":151549984,"user":{"login":"kasparsd","id":169055,"avatar_url":"https://avatars.githubusercontent.com/u/169055?v=3","gravatar_id":"","url":"https://api.github.com/users/kasparsd","html_url":"https://github.com/kasparsd","followers_url":"https://api.github.com/users/kasparsd/followers","following_url":"https://api.github.com/users/kasparsd/following{/other_user}","gists_url":"https://api.github.com/users/kasparsd/gists{/gist_id}","starred_url":"https://api.github.com/users/kasparsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasparsd/subscriptions","organizations_url":"https://api.github.com/users/kasparsd/orgs","repos_url":"https://api.github.com/users/kasparsd/repos","events_url":"https://api.github.com/users/kasparsd/events{/privacy}","received_events_url":"https://api.github.com/users/kasparsd/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T15:58:12Z","updated_at":"2015-10-27T15:58:12Z","body":"Thanks @dengert!\r\n\r\nI must have skipped it when moving to a self-build openssl version in a different folder. That didn't work either. Here is the config output:\r\n\r\n```\r\nOpenSC has been configured with the following options:\r\n\r\nVersion:                 0.15.0\r\nVersion fix:             0\r\nVersion revision:        0\r\n\r\nCopyright:               OpenSC Project\r\nCompany:                 OpenSC Project\r\nCompany URL:             https://github.com/OpenSC\r\nComments:                Provided under the terms of the GNU Lesser General Public License (LGPLv2.1+).\r\nProduct name:            OpenSC smartcard framework\r\nProduct updates:         https://github.com/OpenSC/OpenSC/releases\r\nProduct URL:             https://github.com/OpenSC/OpenSC\r\n\r\nUser binaries:           /Library/OpenSC/bin\r\nConfiguration files:     /Library/OpenSC/etc\r\nXSL stylesheets:         no\r\n\r\nman support:             no\r\ndoc support:             no\r\nzlib support:            yes\r\nreadline support:        yes\r\nOpenSSL support:         yes\r\nPC/SC support:           yes\r\nOpenCT support:          no\r\nCT-API support:          no\r\nminidriver support:      no\r\nSM support:              yes\r\nSM default module:       libsmm-local.3.dylib\r\nDNIe UI support:         no\r\nDebug file:              /tmp/opensc-debug.log\r\n\r\nPC/SC default provider:  /System/Library/Frameworks/PCSC.framework/PCSC\r\nPKCS11 default provider: opensc-pkcs11.so\r\n\r\nHost:                    x86_64-apple-darwin15.0.0\r\nCompiler:                gcc\r\nPreprocessor flags:      \r\nCompiler flags:          -fno-strict-aliasing -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -arch x86_64 -mmacosx-version-min=10.10 -Wall -Wextra -Wno-unused-parameter -Werror=declaration-after-statement\r\nLinker flags:            \r\nLibraries:               \r\n\r\nREADLINE_CFLAGS:         \r\nREADLINE_LIBS:           -lreadline \r\nZLIB_CFLAGS:             \r\nZLIB_LIBS:               -lz\r\nOPENSSL_CFLAGS:          -I/usr/local/opt/openssl/include\r\nOPENSSL_LIBS:            -L/usr/local/opt/openssl/lib -lcrypto\r\nOPENCT_CFLAGS:           \r\nOPENCT_LIBS:             \r\nPCSC_CFLAGS:             -D_THREAD_SAFE -pthread -I/usr/local/Cellar/pcsc-lite/1.8.14/include/PCSC\r\n```\r\n\r\nwhich results in the following error:\r\n\r\n```\r\nopenssl.c:12:10: fatal error: 'openssl/evp.h' file not found\r\n#include <openssl/evp.h>\r\n         ^\r\n1 error generated.\r\nmake[3]: *** [onepin_opensc_pkcs11_la-openssl.lo] Error 1\r\nmake[3]: *** Waiting for unfinished jobs....\r\nframework-pkcs15.c:29:10: fatal error: 'openssl/opensslv.h' file not found\r\n#include <openssl/opensslv.h>\r\n         ^\r\n1 error generated.\r\nmake[3]: *** [onepin_opensc_pkcs11_la-framework-pkcs15.lo] Error 1\r\nmake[2]: *** [all-recursive] Error 1\r\nmake[1]: *** [all-recursive] Error 1\r\nmake: *** [all] Error 2\r\n```\r\n\r\nIt appears that there is something wrong with my environment variables/path because both `evp.h` and `opensslv.h` are there."}}