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

mac Mojave 10.14.4 install vsmartcard failed #143

Closed
cuglujun opened this issue Jun 17, 2019 · 7 comments
Closed

mac Mojave 10.14.4 install vsmartcard failed #143

cuglujun opened this issue Jun 17, 2019 · 7 comments

Comments

@cuglujun
Copy link

mac Mojave 10.14.4 install vsmartcard failed.

gist:

https://gist.github.com/cuglujun/1d76f5bfea3adfd12f81ab8ee6041fd1

@cuglujun
Copy link
Author

@frankmorgner please help me

@cuglujun
Copy link
Author

i had called autoreconf and configure.

@cuglujun
Copy link
Author

cuglujun commented Jun 17, 2019

i use '/Applications/Xcode.app/Contents/Developer/usr/bin/make osx' before make install

got new issue:

cp Uninstall_OpenPACE.pkg dmg
cp OpenPACE-1.1.0_install.pkg dmg
hdiutil create -srcfolder dmg -volname "OpenPACE 1.1.0 for Mac OS X" ../openpace-1.1.0_osx.dmg
......................................
created: /Users/lujun/Downloads/vsmartcard-master/virtualsmartcard/MacOSX/openpace/openpace-1.1.0_osx.dmg
rm -rf /Users/lujun/Downloads/vsmartcard-master/virtualsmartcard/virtualsmartcard-0.8_osx dmg ../virtualsmartcard-0.8_osx.dmg
Configuring virtualsmartcard for IFD bundle
cd .. && ./configure --prefix=/Library/VirtualSmartCard \
		CFLAGS="-arch i386 -arch x86_64" --enable-infoplist
configure: WARNING: unrecognized options: --enable-infoplist
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-apple-darwin18.5.0
checking host system type... x86_64-apple-darwin18.5.0
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/lujun/Downloads/vsmartcard-master/virtualsmartcard':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[1]: *** [osx] Error 77

make: *** [osx] Error 2`

@frankmorgner
Copy link
Owner

See `config.log' for more details

@cuglujun
Copy link
Author

cuglujun commented Jun 18, 2019

config.log:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Virtual Smart Card configure 0.8, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/Library/VirtualSmartCard CFLAGS=-arch i386 -arch x86_64 --enable-infoplist

## --------- ##
## Platform. ##
## --------- ##

hostname = testdeMac-mini.local
uname -m = x86_64
uname -r = 18.5.0
uname -s = Darwin
uname -v = Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
	 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3
Primary memory available: 8.00 gigabytes
Default processor set: 329 tasks, 1163 threads, 4 processors
Load average: 1.72, Mach factor: 2.31
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/opt/node@8/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /Users/test/arcanist/arcanist/bin
PATH: /Users/test/ios/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2634: checking for a BSD-compatible install
configure:2702: result: /usr/bin/install -c
configure:2713: checking whether build environment is sane
configure:2768: result: yes
configure:2919: checking for a thread-safe mkdir -p
configure:2958: result: ./install-sh -c -d
configure:2965: checking for gawk
configure:2995: result: no
configure:2965: checking for mawk
configure:2995: result: no
configure:2965: checking for nawk
configure:2995: result: no
configure:2965: checking for awk
configure:2981: found /usr/bin/awk
configure:2992: result: awk
configure:3003: checking whether make sets $(MAKE)
configure:3025: result: yes
configure:3054: checking whether make supports nested variables
configure:3071: result: yes
configure:3228: checking build system type
configure:3242: result: x86_64-apple-darwin18.5.0
configure:3262: checking host system type
configure:3275: result: x86_64-apple-darwin18.5.0
configure:3316: checking how to print strings
configure:3343: result: printf
configure:3368: checking whether make supports the include directive
configure:3383: make -f confmf.GNU && cat confinc.out
this is the am__doit target
configure:3386: $? = 0
configure:3405: result: yes (GNU style)
configure:3475: checking for gcc
configure:3491: found /usr/bin/gcc
configure:3502: result: gcc
configure:3731: checking for C compiler version
configure:3740: gcc --version >&5
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
configure:3751: $? = 0
configure:3740: gcc -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:3751: $? = 0
configure:3740: gcc -V >&5
clang: error: unsupported option '-V -Wno-atomic-implicit-seq-cst'
clang: error: no input files
configure:3751: $? = 1
configure:3740: gcc -qversion >&5
clang: error: unknown argument '-qversion', did you mean '--version'?
clang: error: no input files
configure:3751: $? = 1
configure:3771: checking whether the C compiler works
configure:3793: gcc -arch i386 -arch x86_64   conftest.c  >&5
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd
ld: dynamic main executables must link with libSystem.dylib for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3797: $? = 1
configure:3835: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Virtual Smart Card"
| #define PACKAGE_TARNAME "virtualsmartcard"
| #define PACKAGE_VERSION "0.8"
| #define PACKAGE_STRING "Virtual Smart Card 0.8"
| #define PACKAGE_BUGREPORT "https://github.com/frankmorgner/vsmartcard/issues"
| #define PACKAGE_URL "http:https://frankmorgner.github.io/vsmartcard/virtualsmartcard/README.html"
| #define PACKAGE "virtualsmartcard"
| #define VERSION "0.8"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3840: error: in `/Users/test/vsmartcard/virtualsmartcard':
configure:3842: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-apple-darwin18.5.0
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-arch i386 -arch x86_64'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_HELP2MAN_set=
ac_cv_env_HELP2MAN_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_PCSC_CFLAGS_set=
ac_cv_env_PCSC_CFLAGS_value=
ac_cv_env_PCSC_LIBS_set=
ac_cv_env_PCSC_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_PYTHON_set=
ac_cv_env_PYTHON_value=
ac_cv_env_QRENCODE_CFLAGS_set=
ac_cv_env_QRENCODE_CFLAGS_value=
ac_cv_env_QRENCODE_LIBS_set=
ac_cv_env_QRENCODE_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-apple-darwin18.5.0
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /Users/test/vsmartcard/virtualsmartcard/missing aclocal-1.16'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AS=''
AUTOCONF='${SHELL} /Users/test/vsmartcard/virtualsmartcard/missing autoconf'
AUTOHEADER='${SHELL} /Users/test/vsmartcard/virtualsmartcard/missing autoheader'
AUTOMAKE='${SHELL} /Users/test/vsmartcard/virtualsmartcard/missing automake-1.16'
AWK='awk'
BUILD_INFOPLIST_FALSE=''
BUILD_INFOPLIST_TRUE=''
BUILD_LIBPCSCLITE_FALSE=''
BUILD_LIBPCSCLITE_TRUE=''
BUNDLE_HOST=''
CC='gcc'
CCDEPMODE=''
CFLAGS='-arch i386 -arch x86_64'
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
DYN_LIB_EXT=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
HELP2MAN=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIB_PREFIX=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} /Users/test/vsmartcard/virtualsmartcard/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='./install-sh -c -d'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='virtualsmartcard'
PACKAGE_BUGREPORT='https://github.com/frankmorgner/vsmartcard/issues'
PACKAGE_NAME='Virtual Smart Card'
PACKAGE_STRING='Virtual Smart Card 0.8'
PACKAGE_SUMMARY=''
PACKAGE_TARNAME='virtualsmartcard'
PACKAGE_URL='http:https://frankmorgner.github.io/vsmartcard/virtualsmartcard/README.html'
PACKAGE_VERSION='0.8'
PATH_SEPARATOR=':'
PCSC_CFLAGS=''
PCSC_LIBS=''
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
PYTHON=''
PYTHON_EXEC_PREFIX=''
PYTHON_PLATFORM=''
PYTHON_PREFIX=''
PYTHON_VERSION=''
QRENCODE_CFLAGS=''
QRENCODE_LIBS=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='0.8'
WIN32_FALSE=''
WIN32_TRUE=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
ax_pthread_config=''
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin18.5.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin18.5.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-apple-darwin18.5.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin18.5.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/test/vsmartcard/virtualsmartcard/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgpyexecdir=''
pkgpythondir=''
prefix='/Library/VirtualSmartCard'
program_transform_name='s,x,x,'
psdir='${docdir}'
pyexecdir=''
pythondir=''
sbindir='${exec_prefix}/sbin'
serialconfdir=''
serialdropdir=''
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
vpcdhost=''
vpcdslots=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "Virtual Smart Card"
#define PACKAGE_TARNAME "virtualsmartcard"
#define PACKAGE_VERSION "0.8"
#define PACKAGE_STRING "Virtual Smart Card 0.8"
#define PACKAGE_BUGREPORT "https://github.com/frankmorgner/vsmartcard/issues"
#define PACKAGE_URL "http:https://frankmorgner.github.io/vsmartcard/virtualsmartcard/README.html"
#define PACKAGE "virtualsmartcard"
#define VERSION "0.8"

configure: exit 77

@frankmorgner
Copy link
Owner

For some reason, you are compiling with the non-default CFLAGS='-arch i386 -arch x86_64'. This errors with

ld: dynamic main executables must link with libSystem.dylib for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

either add LIBS=-lSystem or build for 64 bit right away. Please try using a clean environment with the standard compile-procedure...

@cuglujun
Copy link
Author

Thank you very much.
After i modify makefile in MacOSX, remove -arch i386, it works.

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

2 participants