Hi all,
ccid compilation failed on MacOS (10.6.)
same in ccid-1.3.11 or cid-1.3.11-svn-4750
./MacOS/configure
make
failed with
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I..
-I/Users/tk/src/ccid/ccid-1.3.11-svn-4750/MacOSX -I/usr/local/include
-D_THREAD_SAFE -fvisibility=hidden -DCCID_VERSION=0x0103000B
-DRESPONSECODE_DEFINED_IN_WINTYPES_H -isysroot
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -c ccid.c
-fno-common -DPIC -o .libs/libccid_la-ccid.o
In file included from ccid.c:28:
/Users/tk/src/ccid/ccid-1.3.11-svn-4750/MacOSX/ifdhandler.h:458: error:
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘IFDHCreateChannelByName’
...
reason is, that RESPONSECODE was not defined before.
in MacOS/configure is defined
# RESPONSECODE is already defined by PCSC/wintypes.h
# define needed here to compile examples/scardcontrol.c since config.h is
# not included
CFLAGS="$CFLAGS -DRESPONSECODE_DEFINED_IN_WINTYPES_H"
but in my /usr/local/include/PCSC/wintypes.h (wintypes.h 4544 2009-11-12)
RESPONSECODE is not defined.
my workaround MacOSX/ifdhandler.h (4544 2009-11-12):
/* 2010-04-01
ugly workaround to fix compile error
*/
#ifdef RESPONSECODE_DEFINED_IN_WINTYPES_H
typedef long RESPONSECODE;
#endif
Best
Thomas
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle