{"action":"created","issue":{"url":"https://api.github.com/repos/OpenSC/OpenSC/issues/861","repository_url":"https://api.github.com/repos/OpenSC/OpenSC","labels_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/861/labels{/name}","comments_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/861/comments","events_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/861/events","html_url":"https://github.com/OpenSC/OpenSC/pull/861","id":173350630,"number":861,"title":"Use OpenSSL versions OpenSSL-0.9.7 to 1.1.0 for OpenSC","user":{"login":"dengert","id":865329,"avatar_url":"https://avatars.githubusercontent.com/u/865329?v=3","gravatar_id":"","url":"https://api.github.com/users/dengert","html_url":"https://github.com/dengert","followers_url":"https://api.github.com/users/dengert/followers","following_url":"https://api.github.com/users/dengert/following{/other_user}","gists_url":"https://api.github.com/users/dengert/gists{/gist_id}","starred_url":"https://api.github.com/users/dengert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dengert/subscriptions","organizations_url":"https://api.github.com/users/dengert/orgs","repos_url":"https://api.github.com/users/dengert/repos","events_url":"https://api.github.com/users/dengert/events{/privacy}","received_events_url":"https://api.github.com/users/dengert/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":33,"created_at":"2016-08-26T01:48:02Z","updated_at":"2016-10-10T17:36:32Z","closed_at":"2016-10-10T16:20:01Z","pull_request":{"url":"https://api.github.com/repos/OpenSC/OpenSC/pulls/861","html_url":"https://github.com/OpenSC/OpenSC/pull/861","diff_url":"https://github.com/OpenSC/OpenSC/pull/861.diff","patch_url":"https://github.com/OpenSC/OpenSC/pull/861.patch"},"body":"OpenSSL-1.1.0 was released today, 8/25/2016\r\n\r\n  https://www.openssl.org/news/openssl-1.1.0-notes.html\r\n\r\nChanges to allow the OpenSC code base to work with OpenSSL versions from\r\n0.9.7 to 1.1.0 with few changes.\r\n\r\nThis is an update  and rebased version of my prep-openssl-1.1.0-pre6 branch.\r\n\r\nNo attempt was made to back port any OpenSSL features. These changes\r\njust allow an updated OpenSC code base to use what is in the various OpenSSL\r\nreleases.\r\n\r\nA new header libopensc/sc-ossl-compat.h contains extra defines\r\nto reduce the need for so many #if OPENSSL_VERSION_NUMBER statements\r\nin the source code.\r\n\r\nThe OpenSC source can now use the OpenSSL 1.1 API. The libopensc/sc-ossl-compat.h\r\nhas defines for the new API for use with older versions of OpenSSL.\r\n\r\nsc-ossl-compat.h is included by libopensc/internal.h so all OpenSC\r\nlibrary routines can take advantage of it. For the tools, which do not use\r\nlibopensc/internal.h, libopensc/sc-ossl-compat.h is included by the tools.\r\n\r\nThe OpenSC source has been modified to use OpenSSL functions to access\r\nhidden structures, such X509, BIGNUM, EVP_CIPHER_CTX, and use XXX_new\r\nfunctions to allocate structures which most use pointer such as\r\nBIGNUM and EVP_CIPHER_CTX.\r\n\r\nFor backward compatability sc-ossl-compat.h now defines inline routines\r\nto emulate the RSA and DSA  access routines in OpenSSL-1.1.0. Thus\r\nthe same OpenSC source code can be used with openSSL versions from\r\n0.9.7 to 1.1.0.\r\n\r\nInline routines were chosen, because using macros does not work on all platforms.\r\nHaving OpenSC versions of these routines in libopensc would be a posibility,\r\nbut they are only used for older version of OpenSSL, and could be removed in\r\nthe future.\r\n\r\nThese mods need much testing. Testing code that I can not test.\r\nInput is welcome.\r\n\r\n Changes to be committed:\r\n\tmodified:   src/libopensc/card-entersafe.c\r\n\tmodified:   src/libopensc/card-epass2003.c\r\n\tmodified:   src/libopensc/card-gids.c\r\n\tmodified:   src/libopensc/card-gpk.c\r\n\tmodified:   src/libopensc/card-oberthur.c\r\n\tmodified:   src/libopensc/card-piv.c\r\n\tmodified:   src/libopensc/card-westcos.c\r\n\tmodified:   src/libopensc/cwa-dnie.c\r\n\tmodified:   src/libopensc/cwa14890.c\r\n\tmodified:   src/libopensc/internal.h\r\n\tmodified:   src/libopensc/p15card-helper.c\r\n\tmodified:   src/libopensc/pkcs15-itacns.c\r\n\tmodified:   src/libopensc/pkcs15-prkey.c\r\n\tmodified:   src/libopensc/pkcs15-pubkey.c\r\n\tnew file:   src/libopensc/sc-ossl-compat.h\r\n\tmodified:   src/pkcs11/openssl.c\r\n\tmodified:   src/pkcs15init/pkcs15-lib.c\r\n\tmodified:   src/pkcs15init/pkcs15-oberthur-awp.c\r\n\tmodified:   src/pkcs15init/pkcs15-oberthur.c\r\n\tmodified:   src/pkcs15init/pkcs15-oberthur.h\r\n\tmodified:   src/pkcs15init/pkcs15-westcos.c\r\n\tmodified:   src/tools/cryptoflex-tool.c\r\n\tmodified:   src/tools/gids-tool.c\r\n\tmodified:   src/tools/netkey-tool.c\r\n\tmodified:   src/tools/piv-tool.c\r\n\tmodified:   src/tools/pkcs11-tool.c\r\n\tmodified:   src/tools/pkcs15-init.c\r\n\tmodified:   src/tools/sc-hsm-tool.c\r\n\tmodified:   src/tools/westcos-tool.c"},"comment":{"url":"https://api.github.com/repos/OpenSC/OpenSC/issues/comments/252688072","html_url":"https://github.com/OpenSC/OpenSC/pull/861#issuecomment-252688072","issue_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/861","id":252688072,"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},"created_at":"2016-10-10T17:36:32Z","updated_at":"2016-10-10T17:36:32Z","body":"@viktorTarasov and @dengert current master breaks compilation with OpenSSL-1.0.2j installed in /opt/local. It correctly identified the library files, but appears to have missed the include files location.\r\n\r\n```\r\n$ MacOSX/build\r\n+ test -x ./configure\r\n+ ./configure\r\nchecking for a BSD-compatible install... /opt/local/bin/ginstall -c\r\nchecking whether build environment is sane... yes\r\nchecking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p\r\nchecking for gawk... gawk\r\nchecking whether make sets $(MAKE)... yes\r\nchecking whether make supports nested variables... yes\r\nchecking whether make supports nested variables... (cached) yes\r\nchecking build system type... x86_64-apple-darwin15.6.0\r\nchecking host system type... x86_64-apple-darwin15.6.0\r\nchecking for gcc... clang\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables... \r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether clang accepts -g... yes\r\nchecking for clang option to accept ISO C89... none needed\r\nchecking whether clang understands -c and -o together... yes\r\nchecking for style of include used by make... GNU\r\nchecking dependency style of clang... gcc3\r\nchecking whether we are using the GNU C++ compiler... yes\r\nchecking whether clang++ accepts -g... yes\r\nchecking dependency style of clang++... gcc3\r\nchecking for pkg-config... /opt/local/bin/pkg-config\r\nchecking pkg-config is at least version 0.9.0... yes\r\nchecking how to run the C preprocessor... clang -E\r\nchecking for grep that handles long lines and -e... /usr/bin/grep\r\nchecking for egrep... /usr/bin/grep -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys/types.h... yes\r\nchecking for sys/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking whether byte ordering is bigendian... no\r\nchecking how to run the C preprocessor... clang -E\r\nchecking whether ln -s works... yes\r\nchecking for a sed that does not truncate output... /usr/bin/sed\r\nchecking whether make sets $(MAKE)... (cached) yes\r\nchecking how to print strings... printf\r\nchecking for a sed that does not truncate output... (cached) /usr/bin/sed\r\nchecking for fgrep... /usr/bin/grep -F\r\nchecking for ld used by clang... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld\r\nchecking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no\r\nchecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B\r\nchecking the name lister (/usr/bin/nm -B) interface... BSD nm\r\nchecking the maximum length of command line arguments... 196608\r\nchecking how to convert x86_64-apple-darwin15.6.0 file names to x86_64-apple-darwin15.6.0 format... func_convert_file_noop\r\nchecking how to convert x86_64-apple-darwin15.6.0 file names to toolchain format... func_convert_file_noop\r\nchecking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r\r\nchecking for objdump... no\r\nchecking how to recognize dependent libraries... pass_all\r\nchecking for dlltool... no\r\nchecking how to associate runtime and link libraries... printf %s\\n\r\nchecking for ar... ar\r\nchecking for archiver @FILE support... no\r\nchecking for strip... strip\r\nchecking for ranlib... ranlib\r\nchecking command to parse /usr/bin/nm -B output from clang object... ok\r\nchecking for sysroot... no\r\nchecking for a working dd... /bin/dd\r\nchecking how to truncate binary pipes... /bin/dd bs=4096 count=1\r\nchecking for mt... no\r\nchecking if : is a manifest tool... no\r\nchecking for dsymutil... dsymutil\r\nchecking for nmedit... nmedit\r\nchecking for lipo... lipo\r\nchecking for otool... otool\r\nchecking for otool64... no\r\nchecking for -single_module linker flag... yes\r\nchecking for -exported_symbols_list linker flag... yes\r\nchecking for -force_load linker flag... yes\r\nchecking for dlfcn.h... yes\r\nchecking for objdir... .libs\r\nchecking if clang supports -fno-rtti -fno-exceptions... yes\r\nchecking for clang option to produce PIC... -fno-common -DPIC\r\nchecking if clang PIC flag -fno-common -DPIC works... yes\r\nchecking if clang static flag -static works... no\r\nchecking if clang supports -c -o file.o... yes\r\nchecking if clang supports -c -o file.o... (cached) yes\r\nchecking whether the clang linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes\r\nchecking dynamic linker characteristics... darwin15.6.0 dyld\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking whether stripping libraries is possible... yes\r\nchecking if libtool supports shared libraries... yes\r\nchecking whether to build shared libraries... yes\r\nchecking whether to build static libraries... yes\r\nchecking how to run the C++ preprocessor... clang++ -E\r\nchecking for ld used by clang++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld\r\nchecking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no\r\nchecking whether the clang++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes\r\nchecking for clang++ option to produce PIC... -fno-common -DPIC\r\nchecking if clang++ PIC flag -fno-common -DPIC works... yes\r\nchecking if clang++ static flag -static works... no\r\nchecking if clang++ supports -c -o file.o... yes\r\nchecking if clang++ supports -c -o file.o... (cached) yes\r\nchecking whether the clang++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes\r\nchecking dynamic linker characteristics... darwin15.6.0 dyld\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking for windres... no\r\nchecking for xsltproc... xsltproc\r\nchecking for git... git\r\nchecking xsl-stylesheets... /opt/local/share/xsl/docbook-xsl\r\nchecking git checkout... yes\r\nchecking for inline... inline\r\nchecking for ANSI C header files... (cached) yes\r\nchecking for sys/wait.h that is POSIX.1 compatible... yes\r\nchecking whether to enable assertions... yes\r\nchecking errno.h usability... yes\r\nchecking errno.h presence... yes\r\nchecking for errno.h... yes\r\nchecking fcntl.h usability... yes\r\nchecking fcntl.h presence... yes\r\nchecking for fcntl.h... yes\r\nchecking for stdlib.h... (cached) yes\r\nchecking for inttypes.h... (cached) yes\r\nchecking for string.h... (cached) yes\r\nchecking for strings.h... (cached) yes\r\nchecking sys/time.h usability... yes\r\nchecking sys/time.h presence... yes\r\nchecking for sys/time.h... yes\r\nchecking for unistd.h... (cached) yes\r\nchecking getopt.h usability... yes\r\nchecking getopt.h presence... yes\r\nchecking for getopt.h... yes\r\nchecking sys/mman.h usability... yes\r\nchecking sys/mman.h presence... yes\r\nchecking for sys/mman.h... yes\r\nchecking for an ANSI C-conforming const... yes\r\nchecking for uid_t in sys/types.h... yes\r\nchecking for size_t... yes\r\nchecking whether time.h and sys/time.h may both be included... yes\r\nchecking for error_at_line... no\r\nchecking whether lstat correctly handles trailing slash... no\r\nchecking whether stat accepts an empty string... no\r\nchecking for vprintf... yes\r\nchecking for _doprnt... no\r\nchecking for getpass... yes\r\nchecking for gettimeofday... yes\r\nchecking for memset... yes\r\nchecking for mkdir... yes\r\nchecking for strdup... yes\r\nchecking for strerror... yes\r\nchecking for getopt_long... yes\r\nchecking for getopt_long_only... yes\r\nchecking for strlcpy... yes\r\nchecking for strlcat... yes\r\nchecking for strnlen... yes\r\nchecking size of void *... 8\r\nchecking for socket in -lsocket... no\r\nchecking for library containing dlopen... none required\r\nchecking whether pthreads work with -pthread... yes\r\nchecking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE\r\nchecking if more special flags are required for pthreads... -D_THREAD_SAFE\r\nchecking for PTHREAD_PRIO_INHERIT... yes\r\nchecking for inflate in -lz... yes\r\nchecking zlib.h usability... yes\r\nchecking zlib.h presence... yes\r\nchecking for zlib.h... yes\r\nchecking for readline in -lreadline... yes\r\nchecking readline/readline.h usability... yes\r\nchecking readline/readline.h presence... yes\r\nchecking for readline/readline.h... yes\r\nchecking for OPENSSL... yes\r\nchecking openssl/crypto.h usability... yes\r\nchecking openssl/crypto.h presence... no\r\nconfigure: WARNING: openssl/crypto.h: accepted by the compiler, rejected by the preprocessor!\r\nconfigure: WARNING: openssl/crypto.h: proceeding with the compiler's result\r\nchecking for openssl/crypto.h... yes\r\nchecking winscard.h usability... yes\r\nchecking winscard.h presence... no\r\nconfigure: WARNING: winscard.h: accepted by the compiler, rejected by the preprocessor!\r\nconfigure: WARNING: winscard.h: proceeding with the compiler's result\r\nchecking for winscard.h... yes\r\nchecking pcsclite.h usability... yes\r\nchecking pcsclite.h presence... no\r\nconfigure: WARNING: pcsclite.h: accepted by the compiler, rejected by the preprocessor!\r\nconfigure: WARNING: pcsclite.h: proceeding with the compiler's result\r\nchecking for pcsclite.h... yes\r\nchecking XSLTPROC requirement... ok\r\nchecking that generated files are newer than configure... done\r\nconfigure: creating ./config.status\r\nconfig.status: creating Makefile\r\nconfig.status: creating doc/Makefile\r\nconfig.status: creating doc/tools/Makefile\r\nconfig.status: creating etc/Makefile\r\nconfig.status: creating src/Makefile\r\nconfig.status: creating src/common/Makefile\r\nconfig.status: creating src/libopensc/Makefile\r\nconfig.status: creating src/libsm/Makefile\r\nconfig.status: creating src/pkcs11/Makefile\r\nconfig.status: creating src/pkcs11/versioninfo-pkcs11.rc\r\nconfig.status: creating src/pkcs11/versioninfo-pkcs11-spy.rc\r\nconfig.status: creating src/pkcs11/opensc-pkcs11.pc\r\nconfig.status: creating src/pkcs15init/Makefile\r\nconfig.status: creating src/scconf/Makefile\r\nconfig.status: creating src/tests/Makefile\r\nconfig.status: creating src/tests/regression/Makefile\r\nconfig.status: creating src/tools/Makefile\r\nconfig.status: creating src/tools/versioninfo-tools.rc\r\nconfig.status: creating src/smm/Makefile\r\nconfig.status: creating src/minidriver/Makefile\r\nconfig.status: creating src/minidriver/versioninfo-minidriver.rc\r\nconfig.status: creating src/minidriver/opensc-minidriver.inf\r\nconfig.status: creating win32/Makefile\r\nconfig.status: creating win32/versioninfo.rc\r\nconfig.status: creating win32/versioninfo-customactions.rc\r\nconfig.status: creating win32/winconfig.h\r\nconfig.status: creating win32/OpenSC.iss\r\nconfig.status: creating win32/OpenSC.wxs\r\nconfig.status: creating MacOSX/Makefile\r\nconfig.status: creating MacOSX/build-package\r\nconfig.status: creating MacOSX/Distribution.xml\r\nconfig.status: creating MacOSX/resources/ReadMe.html\r\nconfig.status: creating MacOSX/resources/Welcome.html\r\nconfig.status: creating config.h\r\nconfig.status: executing depfiles commands\r\nconfig.status: executing libtool commands\r\n\r\nOpenSC has been configured with the following options:\r\n\r\n\r\nVersion:                 0.16.0\r\nVersion fix:             0\r\nVersion revision:        4\r\nGit revision:            OpenSC-OpenSC_working_snapshot-4-g8702141, rev: 8702141, commit-time: 2016-10-10 13:13:14 -0400\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:           /usr/local/bin\r\nConfiguration files:     /usr/local/etc\r\nXSL stylesheets:         /opt/local/share/xsl/docbook-xsl\r\n\r\nman support:             yes\r\ndoc support:             no\r\nthread locking support:  yes\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.so\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.6.0\r\nCompiler:                clang\r\nPreprocessor flags:       -DPKCS11_THREAD_LOCKING\r\nCompiler flags:          -fno-strict-aliasing -maes -mpclmul -msse2 -mssse3 -msse4 -msse4.2 -mrdrnd -mrdseed -Os -Ofast -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:          -maes -mpclmul -msse2 -mssse3 -msse4 -msse4.2 -mrdrnd -mrdseed -Os -Ofast -I/opt/local/include\r\nOPENSSL_LIBS:            -L/opt/local/lib -lssl -lcrypto\r\nOPENCT_CFLAGS:           \r\nOPENCT_LIBS:             \r\nPCSC_CFLAGS:             -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/PCSC.framework/Versions/Current/Headers\r\n\r\n+ bash ./MacOSX/build-package\r\n+ test -x ./configure\r\n+ BUILDPATH=/Users/ur20980/src/OpenSC\r\n++ xcode-select -p\r\n+ SDKS_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs\r\n++ ls -1 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs\r\n++ sort -n -k2 -t. -r\r\n++ head -1\r\n+ SDK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk\r\n+ export 'CFLAGS=-maes -mpclmul -msse2 -mssse3 -msse4 -msse4.2 -mrdrnd -mrdseed -Os -Ofast -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -arch x86_64 -mmacosx-version-min=10.10'\r\n+ CFLAGS='-maes -mpclmul -msse2 -mssse3 -msse4 -msse4.2 -mrdrnd -mrdseed -Os -Ofast -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -arch x86_64 -mmacosx-version-min=10.10'\r\n+ export SED=/usr/bin/sed\r\n+ SED=/usr/bin/sed\r\n+ PREFIX=/Library/OpenSC\r\n+ export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/lib/pkgconfig\r\n+ PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/lib/pkgconfig\r\n+ pkg-config libcrypto --atleast-version=1.0.1\r\n+ ./configure --prefix=/Library/OpenSC --sysconfdir=/Library/OpenSC/etc --disable-dependency-tracking --enable-shared --disable-static --enable-strict --disable-assert --enable-sm\r\nchecking for a BSD-compatible install... /opt/local/bin/ginstall -c\r\nchecking whether build environment is sane... yes\r\nchecking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p\r\nchecking for gawk... gawk\r\nchecking whether make sets $(MAKE)... yes\r\nchecking whether make supports nested variables... yes\r\nchecking whether make supports nested variables... (cached) yes\r\nchecking build system type... x86_64-apple-darwin15.6.0\r\nchecking host system type... x86_64-apple-darwin15.6.0\r\nchecking for gcc... clang\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables... \r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether clang accepts -g... yes\r\nchecking for clang option to accept ISO C89... none needed\r\nchecking whether clang understands -c and -o together... yes\r\nchecking for style of include used by make... GNU\r\nchecking dependency style of clang... none\r\nchecking whether we are using the GNU C++ compiler... yes\r\nchecking whether clang++ accepts -g... yes\r\nchecking dependency style of clang++... none\r\nchecking for pkg-config... /opt/local/bin/pkg-config\r\nchecking pkg-config is at least version 0.9.0... yes\r\nchecking how to run the C preprocessor... clang -E\r\nchecking for grep that handles long lines and -e... /usr/bin/grep\r\nchecking for egrep... /usr/bin/grep -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys/types.h... yes\r\nchecking for sys/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking whether byte ordering is bigendian... no\r\nchecking how to run the C preprocessor... clang -E\r\nchecking whether ln -s works... yes\r\nchecking for a sed that does not truncate output... /usr/bin/sed\r\nchecking whether make sets $(MAKE)... (cached) yes\r\nchecking how to print strings... printf\r\nchecking for a sed that does not truncate output... (cached) /usr/bin/sed\r\nchecking for fgrep... /usr/bin/grep -F\r\nchecking for ld used by clang... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld\r\nchecking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no\r\nchecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B\r\nchecking the name lister (/usr/bin/nm -B) interface... BSD nm\r\nchecking the maximum length of command line arguments... 196608\r\nchecking how to convert x86_64-apple-darwin15.6.0 file names to x86_64-apple-darwin15.6.0 format... func_convert_file_noop\r\nchecking how to convert x86_64-apple-darwin15.6.0 file names to toolchain format... func_convert_file_noop\r\nchecking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r\r\nchecking for objdump... no\r\nchecking how to recognize dependent libraries... pass_all\r\nchecking for dlltool... no\r\nchecking how to associate runtime and link libraries... printf %s\\n\r\nchecking for ar... ar\r\nchecking for archiver @FILE support... no\r\nchecking for strip... strip\r\nchecking for ranlib... ranlib\r\nchecking command to parse /usr/bin/nm -B output from clang object... ok\r\nchecking for sysroot... no\r\nchecking for a working dd... /bin/dd\r\nchecking how to truncate binary pipes... /bin/dd bs=4096 count=1\r\nchecking for mt... no\r\nchecking if : is a manifest tool... no\r\nchecking for dsymutil... dsymutil\r\nchecking for nmedit... nmedit\r\nchecking for lipo... lipo\r\nchecking for otool... otool\r\nchecking for otool64... no\r\nchecking for -single_module linker flag... yes\r\nchecking for -exported_symbols_list linker flag... yes\r\nchecking for -force_load linker flag... yes\r\nchecking for dlfcn.h... yes\r\nchecking for objdir... .libs\r\nchecking if clang supports -fno-rtti -fno-exceptions... yes\r\nchecking for clang option to produce PIC... -fno-common -DPIC\r\nchecking if clang PIC flag -fno-common -DPIC works... yes\r\nchecking if clang static flag -static works... no\r\nchecking if clang supports -c -o file.o... yes\r\nchecking if clang supports -c -o file.o... (cached) yes\r\nchecking whether the clang linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes\r\nchecking dynamic linker characteristics... darwin15.6.0 dyld\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking whether stripping libraries is possible... yes\r\nchecking if libtool supports shared libraries... yes\r\nchecking whether to build shared libraries... yes\r\nchecking whether to build static libraries... no\r\nchecking how to run the C++ preprocessor... clang++ -E\r\nchecking for ld used by clang++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld\r\nchecking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no\r\nchecking whether the clang++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes\r\nchecking for clang++ option to produce PIC... -fno-common -DPIC\r\nchecking if clang++ PIC flag -fno-common -DPIC works... yes\r\nchecking if clang++ static flag -static works... no\r\nchecking if clang++ supports -c -o file.o... yes\r\nchecking if clang++ supports -c -o file.o... (cached) yes\r\nchecking whether the clang++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes\r\nchecking dynamic linker characteristics... darwin15.6.0 dyld\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking for windres... no\r\nchecking for xsltproc... xsltproc\r\nchecking for git... git\r\nchecking xsl-stylesheets... /opt/local/share/xsl/docbook-xsl\r\nchecking git checkout... yes\r\nchecking for inline... inline\r\nchecking for ANSI C header files... (cached) yes\r\nchecking for sys/wait.h that is POSIX.1 compatible... yes\r\nchecking whether to enable assertions... no\r\nchecking errno.h usability... yes\r\nchecking errno.h presence... yes\r\nchecking for errno.h... yes\r\nchecking fcntl.h usability... yes\r\nchecking fcntl.h presence... yes\r\nchecking for fcntl.h... yes\r\nchecking for stdlib.h... (cached) yes\r\nchecking for inttypes.h... (cached) yes\r\nchecking for string.h... (cached) yes\r\nchecking for strings.h... (cached) yes\r\nchecking sys/time.h usability... yes\r\nchecking sys/time.h presence... yes\r\nchecking for sys/time.h... yes\r\nchecking for unistd.h... (cached) yes\r\nchecking getopt.h usability... yes\r\nchecking getopt.h presence... yes\r\nchecking for getopt.h... yes\r\nchecking sys/mman.h usability... yes\r\nchecking sys/mman.h presence... yes\r\nchecking for sys/mman.h... yes\r\nchecking for an ANSI C-conforming const... yes\r\nchecking for uid_t in sys/types.h... yes\r\nchecking for size_t... yes\r\nchecking whether time.h and sys/time.h may both be included... yes\r\nchecking for error_at_line... no\r\nchecking whether lstat correctly handles trailing slash... no\r\nchecking whether stat accepts an empty string... no\r\nchecking for vprintf... yes\r\nchecking for _doprnt... no\r\nchecking for getpass... yes\r\nchecking for gettimeofday... yes\r\nchecking for memset... yes\r\nchecking for mkdir... yes\r\nchecking for strdup... yes\r\nchecking for strerror... yes\r\nchecking for getopt_long... yes\r\nchecking for getopt_long_only... yes\r\nchecking for strlcpy... yes\r\nchecking for strlcat... yes\r\nchecking for strnlen... yes\r\nchecking size of void *... 8\r\nchecking for socket in -lsocket... no\r\nchecking for library containing dlopen... none required\r\nchecking whether pthreads work with -pthread... yes\r\nchecking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE\r\nchecking if more special flags are required for pthreads... -D_THREAD_SAFE\r\nchecking for PTHREAD_PRIO_INHERIT... yes\r\nchecking for inflate in -lz... yes\r\nchecking zlib.h usability... yes\r\nchecking zlib.h presence... yes\r\nchecking for zlib.h... yes\r\nchecking for readline in -lreadline... yes\r\nchecking readline/readline.h usability... yes\r\nchecking readline/readline.h presence... yes\r\nchecking for readline/readline.h... yes\r\nchecking for OPENSSL... yes\r\nchecking openssl/crypto.h usability... yes\r\nchecking openssl/crypto.h presence... no\r\nconfigure: WARNING: openssl/crypto.h: accepted by the compiler, rejected by the preprocessor!\r\nconfigure: WARNING: openssl/crypto.h: proceeding with the compiler's result\r\nchecking for openssl/crypto.h... yes\r\nchecking winscard.h usability... yes\r\nchecking winscard.h presence... no\r\nconfigure: WARNING: winscard.h: accepted by the compiler, rejected by the preprocessor!\r\nconfigure: WARNING: winscard.h: proceeding with the compiler's result\r\nchecking for winscard.h... yes\r\nchecking pcsclite.h usability... yes\r\nchecking pcsclite.h presence... no\r\nconfigure: WARNING: pcsclite.h: accepted by the compiler, rejected by the preprocessor!\r\nconfigure: WARNING: pcsclite.h: proceeding with the compiler's result\r\nchecking for pcsclite.h... yes\r\nchecking XSLTPROC requirement... ok\r\nchecking that generated files are newer than configure... done\r\nconfigure: creating ./config.status\r\nconfig.status: creating Makefile\r\nconfig.status: creating doc/Makefile\r\nconfig.status: creating doc/tools/Makefile\r\nconfig.status: creating etc/Makefile\r\nconfig.status: creating src/Makefile\r\nconfig.status: creating src/common/Makefile\r\nconfig.status: creating src/libopensc/Makefile\r\nconfig.status: creating src/libsm/Makefile\r\nconfig.status: creating src/pkcs11/Makefile\r\nconfig.status: creating src/pkcs11/versioninfo-pkcs11.rc\r\nconfig.status: creating src/pkcs11/versioninfo-pkcs11-spy.rc\r\nconfig.status: creating src/pkcs11/opensc-pkcs11.pc\r\nconfig.status: creating src/pkcs15init/Makefile\r\nconfig.status: creating src/scconf/Makefile\r\nconfig.status: creating src/tests/Makefile\r\nconfig.status: creating src/tests/regression/Makefile\r\nconfig.status: creating src/tools/Makefile\r\nconfig.status: creating src/tools/versioninfo-tools.rc\r\nconfig.status: creating src/smm/Makefile\r\nconfig.status: creating src/minidriver/Makefile\r\nconfig.status: creating src/minidriver/versioninfo-minidriver.rc\r\nconfig.status: creating src/minidriver/opensc-minidriver.inf\r\nconfig.status: creating win32/Makefile\r\nconfig.status: creating win32/versioninfo.rc\r\nconfig.status: creating win32/versioninfo-customactions.rc\r\nconfig.status: creating win32/winconfig.h\r\nconfig.status: creating win32/OpenSC.iss\r\nconfig.status: creating win32/OpenSC.wxs\r\nconfig.status: creating MacOSX/Makefile\r\nconfig.status: creating MacOSX/build-package\r\nconfig.status: creating MacOSX/Distribution.xml\r\nconfig.status: creating MacOSX/resources/ReadMe.html\r\nconfig.status: creating MacOSX/resources/Welcome.html\r\nconfig.status: creating config.h\r\nconfig.status: executing depfiles commands\r\nconfig.status: executing libtool commands\r\n\r\nOpenSC has been configured with the following options:\r\n\r\n\r\nVersion:                 0.16.0\r\nVersion fix:             0\r\nVersion revision:        4\r\nGit revision:            OpenSC-OpenSC_working_snapshot-4-g8702141, rev: 8702141, commit-time: 2016-10-10 13:13:14 -0400\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:         /opt/local/share/xsl/docbook-xsl\r\n\r\nman support:             yes\r\ndoc support:             no\r\nthread locking support:  yes\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.so\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.6.0\r\nCompiler:                clang\r\nPreprocessor flags:       -DPKCS11_THREAD_LOCKING\r\nCompiler flags:          -fno-strict-aliasing -maes -mpclmul -msse2 -mssse3 -msse4 -msse4.2 -mrdrnd -mrdseed -Os -Ofast -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.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:          -maes -mpclmul -msse2 -mssse3 -msse4 -msse4.2 -mrdrnd -mrdseed -Os -Ofast -I/opt/local/include\r\nOPENSSL_LIBS:            -L/opt/local/lib -lssl -lcrypto\r\nOPENCT_CFLAGS:           \r\nOPENCT_LIBS:             \r\nPCSC_CFLAGS:             -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/PCSC.framework/Versions/Current/Headers\r\n\r\n. . . . . .\r\n  CC       sc-test.o\r\nIn file included from base64.c:6:\r\nIn file included from ../../src/libopensc/asn1.h:29:\r\nIn file included from ../../src/libopensc/pkcs15.h:29:\r\nIn file included from ../../src/libopensc/aux-data.h:31:\r\nIn file included from ../../src/libopensc/internal.h:44:\r\n../../src/libopensc/sc-ossl-compat.h:30:10: fatal error: 'openssl/opensslv.h' file not found\r\n#include <openssl/opensslv.h>\r\n         ^\r\n1 error generated.\r\nIn file included from sc-test.c:15:\r\nIn file included from ./sc-test.h:4:\r\nIn file included from ../../src/libopensc/pkcs15.h:29:\r\nIn file included from ../../src/libopensc/aux-data.h:31:\r\nIn file included from ../../src/libopensc/internal.h:44:\r\n../../src/libopensc/sc-ossl-compat.h:30:10: fatal error: 'openssl/opensslv.h' file not found\r\n#include <openssl/opensslv.h>\r\n         ^\r\nmake[4]: *** [base64.o] Error 1\r\n. . . . .\r\n```"}}
{"actor":{"display_login":"mouse07410"}}