Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS High Sierra: fails to compile #7

Closed
mouse07410 opened this issue Oct 5, 2018 · 11 comments
Closed

MacOS High Sierra: fails to compile #7

mouse07410 opened this issue Oct 5, 2018 · 11 comments

Comments

@mouse07410
Copy link

Xcode-9.4.1

$ ./build-package 
++ pkg-config libcrypto --atleast-version=1.0.1
++ test -e /Users/ur20980/src/OpenSCToken/build/openpace///lib/pkgconfig
+++ env PKG_CONFIG_PATH=/Users/ur20980/src/OpenSCToken/build/openssl///lib/pkgconfig:/Users/ur20980/src/OpenSCToken/build/openpace///lib/pkgconfig PKG_CONFIG_SYSROOT_DIR=/Users/ur20980/src/OpenSCToken/build/openpace pkg-config --static --cflags libeac
++ export 'OPENPACE_CFLAGS=-I/Users/ur20980/src/OpenSCToken/build/openpace//include -I/Users/ur20980/src/OpenSCToken/build/openpace/opt/local/include -I/opt/local/include -maes -mpclmul -mrdrnd -mrdseed -msse2 -mssse3 -msse4.1 -msse4.2 -Os -Ofast -std=gnu11'
++ OPENPACE_CFLAGS='-I/Users/ur20980/src/OpenSCToken/build/openpace//include -I/Users/ur20980/src/OpenSCToken/build/openpace/opt/local/include -I/opt/local/include -maes -mpclmul -mrdrnd -mrdseed -msse2 -mssse3 -msse4.1 -msse4.2 -Os -Ofast -std=gnu11'
+++ env PKG_CONFIG_PATH=/Users/ur20980/src/OpenSCToken/build/openssl///lib/pkgconfig:/Users/ur20980/src/OpenSCToken/build/openpace///lib/pkgconfig PKG_CONFIG_SYSROOT_DIR=/Users/ur20980/src/OpenSCToken/build/openpace pkg-config --static --libs libeac
++ export 'OPENPACE_LIBS=-L/Users/ur20980/src/OpenSCToken/build/openpace//lib -L/Users/ur20980/src/OpenSCToken/build/openpace/opt/local/lib -leac -lcrypto -lz -L/opt/local/lib -lssl -lcrypto'
++ OPENPACE_LIBS='-L/Users/ur20980/src/OpenSCToken/build/openpace//lib -L/Users/ur20980/src/OpenSCToken/build/openpace/opt/local/lib -leac -lcrypto -lz -L/opt/local/lib -lssl -lcrypto'
++ test -e OpenSC
++ cd OpenSC
++ test -e Makefile
++ make
/Applications/Xcode-941.app/Contents/Developer/usr/bin/make  all-recursive
Making all in etc
Making all in src
Making all in common
make[3]: Nothing to be done for `all'.
Making all in scconf
make[3]: Nothing to be done for `all'.
Making all in ui
make[3]: Nothing to be done for `all'.
Making all in pkcs15init
make[3]: Nothing to be done for `all'.
Making all in sm
make[3]: Nothing to be done for `all'.
Making all in libopensc
  OBJC     libopensc_la-reader-cryptotokenkit.lo
libtool: compile: unable to infer tagged configuration
libtool:   error: specify a tag with '--tag'
make[3]: *** [libopensc_la-reader-cryptotokenkit.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
@frankmorgner
Copy link
Owner

What is present in OpenSC? You should use OpenSC's master.

@mouse07410
Copy link
Author

mouse07410 commented Oct 5, 2018

I just did

$ git clone https://github.com/frankmorgner/OpenSCToken.git
. . . . .
$ cd OpenSCToken
$ ./bootstrap
. . . . .
CC       libopensc_la-p15card-helper.lo
  CC       libopensc_la-sm.lo
  CC       libopensc_la-aux-data.lo
  OBJC     libopensc_la-reader-cryptotokenkit.lo
libtool: compile: unable to infer tagged configuration
libtool:   error: specify a tag with '--tag'
make[3]: *** [libopensc_la-reader-cryptotokenkit.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Whatever is in OpenSC, OpenPACE, etc. is what the package pull from GitHub on its own.

Update
Here's the complete screen log:
opensctoken.log.txt

Here's XcodeClang version:

$ clang -v
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode-9.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$

I remember it used to build OK a few months ago, under Xcode older than 9.4.1 (and definitely older than 10.0).

@frankmorgner
Copy link
Owner

can't reproduce this with xcode 10.1

@mouse07410
Copy link
Author

@frankmorgner perhaps you could at least suggest what to look for? Here's High Sierra 10.13.6 with Xcode-10.1, failing the build (actually, failing configuration):

$ ./bootstrap 
+ pkg-config libcrypto --atleast-version=1.0.1
+ test -e /Users/ur20980/src/OpenSC/OpenSCToken/build/openpace///lib/pkgconfig
+ test -e openpace
+ git clone --depth=1 https://github.com/frankmorgner/openpace.git
Cloning into 'openpace'...
remote: Enumerating objects: 368, done.
remote: Counting objects: 100% (368/368), done.
remote: Compressing objects: 100% (256/256), done.
remote: Total 368 (delta 100), reused 219 (delta 74), pack-reused 0
Receiving objects: 100% (368/368), 1.69 MiB | 2.31 MiB/s, done.
Resolving deltas: 100% (100/100), done.
+ cd openpace
+ test -e Makefile
+ autoreconf -vis
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: /opt/local/bin/aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: running: /opt/local/bin/glibtoolize
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: linking file 'm4/libtool.m4'
glibtoolize: linking file 'm4/ltoptions.m4'
glibtoolize: linking file 'm4/ltsugar.m4'
glibtoolize: linking file 'm4/ltversion.m4'
glibtoolize: linking file 'm4/lt~obsolete.m4'
glibtoolize: Remember to add 'LT_INIT' to configure.ac.
autoreconf: running: /opt/local/bin/autoconf
autoreconf: running: /opt/local/bin/autoheader
autoreconf: running: /opt/local/bin/automake --add-missing --no-force
autoreconf: Leaving directory `.'
+ ./configure --disable-shared --prefix=/ --sysconfdir=/Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources --enable-cvcdir=/Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources --enable-x509dir=/Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources /Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/ 'CRYPTO_CFLAGS=-I/opt/local/include -maes -mpclmul -mrdrnd -mrdseed -msse2 -mssse3 -msse4.1 -msse4.2 -Os -Ofast -std=gnu11' 'CRYPTO_LIBS=-L/opt/local/lib -lssl -lcrypto'
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for /Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/-gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether clang understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of clang... gcc3
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for /Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/-pkg-config... no
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking build system type... Invalid configuration `/Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/': machine `/Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/' not recognized
configure: error: /bin/sh ./../../config.sub /Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/ failed
$ 

@mouse07410
Copy link
Author

After removing the offending extra /Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/ from the ./configure ... line in bootstrap in OpenSCToken, I'm getting this:

$ ./bootstrap
+ pkg-config libcrypto --atleast-version=1.0.1
+ test -e /Users/ur20980/src/OpenSC/OpenSCToken/build/openpace///lib/pkgconfig
++ env PKG_CONFIG_PATH=/Users/ur20980/src/OpenSC/OpenSCToken/build/openssl///lib/pkgconfig:/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace///lib/pkgconfig PKG_CONFIG_SYSROOT_DIR=/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace pkg-config --static --cflags libeac
+ export 'OPENPACE_CFLAGS=-I/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace//include -I/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace/opt/local/include -I/opt/local/include -maes -mpclmul -mrdrnd -mrdseed -msse2 -mssse3 -msse4.1 -msse4.2 -Os -Ofast -std=gnu11'
+ OPENPACE_CFLAGS='-I/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace//include -I/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace/opt/local/include -I/opt/local/include -maes -mpclmul -mrdrnd -mrdseed -msse2 -mssse3 -msse4.1 -msse4.2 -Os -Ofast -std=gnu11'
++ env PKG_CONFIG_PATH=/Users/ur20980/src/OpenSC/OpenSCToken/build/openssl///lib/pkgconfig:/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace///lib/pkgconfig PKG_CONFIG_SYSROOT_DIR=/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace pkg-config --static --libs libeac
+ export 'OPENPACE_LIBS=-L/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace//lib -L/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace/opt/local/lib -leac -lcrypto -lz -L/opt/local/lib -lssl -lcrypto'
+ OPENPACE_LIBS='-L/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace//lib -L/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace/opt/local/lib -leac -lcrypto -lz -L/opt/local/lib -lssl -lcrypto'
+ test -e OpenSC
+ cd OpenSC
+ test -e Makefile
+ make
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --disable-shared --prefix=/ --sysconfdir=/Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources --disable-pcsc --enable-cryptotokenkit --disable-notify CC=clang CXX=clang++ CXXFLAGS=-maes -mpclmul -mrdrnd -mrdseed -msse2 -mssse3 -msse4.1 -msse4.2 -std=c++14 -Os -Ofast PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig OPENSSL_CFLAGS=-I/opt/local/include -maes -mpclmul -mrdrnd -mrdseed -msse2 -mssse3 -msse4.1 -msse4.2 -Os -Ofast -std=gnu11 OPENSSL_LIBS=-L/opt/local/lib -lssl -lcrypto OPENPACE_CFLAGS=-I/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace//include -I/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace/opt/local/include -I/opt/local/include -maes -mpclmul -mrdrnd -mrdseed -msse2 -mssse3 -msse4.1 -msse4.2 -Os -Ofast -std=gnu11 OPENPACE_LIBS=-L/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace//lib -L/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace/opt/local/lib -leac -lcrypto -lz -L/opt/local/lib -lssl -lcrypto --no-create --no-recursion
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-apple-darwin17.7.0
checking host system type... x86_64-apple-darwin17.7.0
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether clang understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of clang... gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking dependency style of clang++... gcc3
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... yes
checking whether gcc accepts -g... yes
checking dependency style of gcc... gcc3
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /opt/local/bin/ggrep
checking for egrep... /opt/local/bin/ggrep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking whether C compiler accepts -Wunknown-warning-option... yes
checking how to run the C preprocessor... clang -E
checking whether ln -s works... yes
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking whether make sets $(MAKE)... (cached) yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /opt/local/bin/gsed
checking for fgrep... /opt/local/bin/ggrep -F
checking for ld used by clang... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /opt/local/bin/nm -B
checking the name lister (/opt/local/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin17.7.0 file names to x86_64-apple-darwin17.7.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin17.7.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /opt/local/bin/nm -B output from clang object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fno-common -DPIC
checking if clang PIC flag -fno-common -DPIC works... yes
checking if clang static flag -static works... no
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin17.7.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... clang++ -E
checking for ld used by clang++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the clang++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for clang++ option to produce PIC... -fno-common -DPIC
checking if clang++ PIC flag -fno-common -DPIC works... yes
checking if clang++ static flag -static works... no
checking if clang++ supports -c -o file.o... yes
checking if clang++ supports -c -o file.o... (cached) yes
checking whether the clang++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin17.7.0 dyld
checking how to hardcode library paths into programs... immediate
checking for windres... no
checking for xsltproc... xsltproc
checking for git... git
checking xsl-stylesheets... no
checking git checkout... yes
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
checking for inline... inline
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether to enable assertions... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for error_at_line... no
checking whether lstat correctly handles trailing slash... no
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for getpass... yes
checking for gettimeofday... yes
checking for getline... yes
checking for memset... yes
checking for mkdir... yes
checking for strdup... yes
checking for strerror... yes
checking for getopt_long... yes
checking for getopt_long_only... yes
checking for strlcpy... yes
checking for strlcat... yes
checking for strnlen... yes
checking for sigaction... yes
checking size of void *... 8
checking for socket in -lsocket... no
checking for library containing dlopen... none required
checking whether clang is Clang... yes
checking whether Clang needs flag to prevent "argument unused" warning when linking with -pthread... no
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for cmocka >= 1.0.1... no
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking for cmocka.h... no
checking for inflate in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for readline in -lreadline... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking for
		libcrypto >= 0.9.8
		openssl >= 0.9.8
	... yes
checking openssl/crypto.h usability... yes
checking openssl/crypto.h presence... no
configure: WARNING: openssl/crypto.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: openssl/crypto.h: proceeding with the compiler's result
checking for openssl/crypto.h... yes
configure: WARNING: libeac not found by pkg-config
checking eac/eac.h usability... yes
checking eac/eac.h presence... yes
checking for eac/eac.h... yes
checking for EAC_CTX_init_pace... yes
Package libeac was not found in the pkg-config search path.
Perhaps you should add the directory containing `libeac.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libeac' found
configure: WARNING: use --enable-cvcdir=DIR
Package libeac was not found in the pkg-config search path.
Perhaps you should add the directory containing `libeac.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libeac' found
Package libeac was not found in the pkg-config search path.
Perhaps you should add the directory containing `libeac.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libeac' found
configure: WARNING: use --enable-x509dir=DIR
completion detect
checking for bash-completion >= 2.0... no
checking for gengetopt... /opt/local/bin/gengetopt
checking that generated files are newer than configure... done
configure: creating ./config.status

OpenSC has been configured with the following options:


Version:                 0.19.0
Version fix:             0
Version revision:        0
Git revision:            OpenSC-<version not available>, rev: c70888f, commit-time: 2018-11-01 00:17:22 +0100

Copyright:               OpenSC Project
Company:                 OpenSC Project
Company URL:             https://github.com/OpenSC
Comments:                Provided under the terms of the GNU Lesser General Public License (LGPLv2.1+).
Product name:            OpenSC smartcard framework
Product updates:         https://github.com/OpenSC/OpenSC/releases
Product URL:             https://github.com/OpenSC/OpenSC

User binaries:           //bin
Configuration files:     /Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources
Bash completion:         /Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/bash_completion.d
XSL stylesheets:         no

man support:             no
doc support:             no
thread locking support:  yes
zlib support:            yes
readline support:        yes
OpenSSL support:         yes
PC/SC support:           no
CryptoTokenKit support:  yes
OpenCT support:          no
CT-API support:          no
minidriver support:      no
SM support:              yes
SM default module:       libsmm-local.so
SM default path:         //lib
DNIe UI support:         no
Notification support:    no
Build tests:             no

PC/SC default provider:  
PKCS11 default provider: //lib/opensc-pkcs11.so

Host:                    x86_64-apple-darwin17.7.0
Compiler:                clang
Preprocessor flags:      
Compiler flags:          -g -O2 -Wall -Wextra -Wno-unused-parameter -Werror
Linker flags:             -framework CryptoTokenKit -framework Foundation
Libraries:               

READLINE_CFLAGS:         
READLINE_LIBS:           -lreadline 
ZLIB_CFLAGS:             
ZLIB_LIBS:               -lz
OPENSSL_CFLAGS:          -I/opt/local/include -maes -mpclmul -mrdrnd -mrdseed -msse2 -mssse3 -msse4.1 -msse4.2 -Os -Ofast -std=gnu11
OPENSSL_LIBS:            -L/opt/local/lib -lssl -lcrypto
OPENPACE_CFLAGS:         -I/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace//include -I/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace/opt/local/include -I/opt/local/include -maes -mpclmul -mrdrnd -mrdseed -msse2 -mssse3 -msse4.1 -msse4.2 -Os -Ofast -std=gnu11
OPENPACE_LIBS:           -L/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace//lib -L/Users/ur20980/src/OpenSC/OpenSCToken/build/openpace/opt/local/lib -leac -lcrypto -lz -L/opt/local/lib -lssl -lcrypto
OPENCT_CFLAGS:           
OPENCT_LIBS:             
PCSC_CFLAGS:             
CRYPTOTOKENKIT_CFLAGS:   -framework CryptoTokenKit -framework Foundation
GIO2_CFLAGS:             
GIO2_LIBS:               

 /bin/sh ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/tools/Makefile
config.status: creating doc/files/Makefile
config.status: creating etc/Makefile
config.status: creating src/Makefile
config.status: creating src/common/Makefile
config.status: creating src/ui/Makefile
config.status: creating src/libopensc/Makefile
config.status: creating src/sm/Makefile
config.status: creating src/pkcs11/Makefile
config.status: creating src/pkcs11/versioninfo-pkcs11.rc
config.status: creating src/pkcs11/versioninfo-pkcs11-spy.rc
config.status: creating src/pkcs11/opensc-pkcs11.pc
config.status: creating src/pkcs15init/Makefile
config.status: creating src/scconf/Makefile
config.status: creating src/tests/Makefile
config.status: creating src/tests/regression/Makefile
config.status: creating src/tests/p11test/Makefile
config.status: creating src/tools/Makefile
config.status: creating src/tools/versioninfo-tools.rc
config.status: creating src/tools/versioninfo-opensc-notify.rc
config.status: creating src/smm/Makefile
config.status: creating src/minidriver/Makefile
config.status: creating src/minidriver/versioninfo-minidriver.rc
config.status: creating src/minidriver/opensc-minidriver.inf
config.status: creating win32/Makefile
config.status: creating win32/versioninfo.rc
config.status: creating win32/versioninfo-customactions.rc
config.status: creating win32/winconfig.h
config.status: creating win32/OpenSC.iss
config.status: creating win32/OpenSC.wxs
config.status: creating MacOSX/Makefile
config.status: creating MacOSX/build-package
config.status: creating MacOSX/Distribution.xml
config.status: creating MacOSX/resources/Welcome.html
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in etc
Making all in src
Making all in common
make[3]: Nothing to be done for `all'.
Making all in scconf
make[3]: Nothing to be done for `all'.
Making all in ui
make[3]: Nothing to be done for `all'.
Making all in pkcs15init
make[3]: Nothing to be done for `all'.
Making all in sm
make[3]: Nothing to be done for `all'.
Making all in libopensc
  OBJC     libopensc_la-reader-cryptotokenkit.lo
libtool: compile: unable to infer tagged configuration
libtool:   error: specify a tag with '--tag'
make[3]: *** [libopensc_la-reader-cryptotokenkit.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
$

@mouse07410
Copy link
Author

Perhaps you could outline the sequence of steps you took to compile, and whether you have any env variables set that could affect the build.

In my case, I'm getting no luck:
bootstrap-out.txt

@frankmorgner
Copy link
Owner

git clone https://github.com/frankmorgner/OpenSCToken.git
cd OpenSCToken
./build-package

as documented

@mouse07410
Copy link
Author

This is what I get:

$ git clone https://github.com/frankmorgner/OpenSCToken.git
Cloning into 'OpenSCToken'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 124 (delta 6), reused 13 (delta 4), pack-reused 104
Receiving objects: 100% (124/124), 58.43 KiB | 2.43 MiB/s, done.
Resolving deltas: 100% (56/56), done.
$ cd OpenSCToken/
$ ./build-package 
++ pkg-config libcrypto --atleast-version=1.0.1
++ test -e /Users/ur20980/src/OpenSCToken/build/openpace///lib/pkgconfig
++ test -e openpace
++ git clone --depth=1 https://github.com/frankmorgner/openpace.git
Cloning into 'openpace'...
remote: Enumerating objects: 368, done.
remote: Counting objects: 100% (368/368), done.
remote: Compressing objects: 100% (256/256), done.
remote: Total 368 (delta 100), reused 219 (delta 74), pack-reused 0
Receiving objects: 100% (368/368), 1.69 MiB | 3.04 MiB/s, done.
Resolving deltas: 100% (100/100), done.
++ cd openpace
++ test -e Makefile
++ autoreconf -vis
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: /opt/local/bin/aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: running: /opt/local/bin/glibtoolize
glibtoolize: putting auxiliary files in '.'.
glibtoolize: linking file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: linking file 'm4/libtool.m4'
glibtoolize: linking file 'm4/ltoptions.m4'
glibtoolize: linking file 'm4/ltsugar.m4'
glibtoolize: linking file 'm4/ltversion.m4'
glibtoolize: linking file 'm4/lt~obsolete.m4'
glibtoolize: Remember to add 'LT_INIT' to configure.ac.
autoreconf: running: /opt/local/bin/autoconf
autoreconf: running: /opt/local/bin/autoheader
autoreconf: running: /opt/local/bin/automake --add-missing --no-force
configure.ac:15: installing './compile'
configure.ac:28: installing './config.guess'
configure.ac:28: installing './config.sub'
configure.ac:9: installing './install-sh'
configure.ac:9: installing './missing'
bindings/go/Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'
++ ./configure --disable-shared --prefix=/ --sysconfdir=/Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources --enable-cvcdir=/Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources --enable-x509dir=/Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources /Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/ 'CRYPTO_CFLAGS=-I/opt/local/include -maes -mpclmul -mrdrnd -mrdseed -msse2 -mssse3 -msse4.1 -msse4.2 -Os -Ofast -std=gnu11' 'CRYPTO_LIBS=-L/opt/local/lib -lssl -lcrypto'
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for /Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/-gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether clang understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of clang... gcc3
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for /Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/-pkg-config... no
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking build system type... Invalid configuration `/Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/': machine `/Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/' not recognized
configure: error: /bin/sh ./config.sub /Applications/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex/Contents/Resources/ failed
$

@frankmorgner
Copy link
Owner

I forgot to push a change. please try again

@mouse07410
Copy link
Author

mouse07410 commented Nov 1, 2018

I tried - and after fighting quite a bit with Xcode code signing (that for some reason works perfectly fine for other projects, but not for this one), I'm ending up with this:

. . . . .
Signing Identity:     "Mac Developer: xxxxxxxxxx". [my signing identity on this machine]

    /usr/bin/codesign --force --sign B29CC281856A3BC4974D665C6B3E96937E12D562 --entitlements /Users/ur20980/src/OpenSCToken/build/OpenSCTokenApp.build/Debug/OpenSCToken.build/OpenSCToken.appex.xcent --timestamp=none /Users/ur20980/src/OpenSCToken/build/UninstalledProducts/macosx/OpenSCToken.appex
/Users/ur20980/src/OpenSCToken/build/UninstalledProducts/macosx/OpenSCToken.appex: unsealed contents present in the bundle root
Command CodeSign failed with a nonzero exit code

** INSTALL FAILED **


The following build commands failed:
	CodeSign /Users/ur20980/src/OpenSCToken/build/UninstalledProducts/macosx/OpenSCToken.appex
(1 failure)

Googling for this problem says that it's usually caused by presence of symbolic links in the signed content...

Update
Signing works if I move OpenSCToken.apex/opensc-pkcs11.dylib.bundle out of the OpenSCToken.apex directory.

Perhaps you can relocate it, and change the project to sign the two separately?

@sherifomran
Copy link

I have the same problem with xcode 10.0 but i have cmake installed on my system. i can not update.
i downloaded the pkgconf from github
git clone https://github.com/pkgconf/pkgconf.git
then to generate the make file i used

cmake ./
make

now copy pkgconf to mxe/usr/x86-apple-darwin17.70/installed

cd mxe/
make 

and now it passes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants