Hi all,
Does anybody succeded to compile and use ocf to PCSC jni library on
Apple MacOS X from here:
http://svn.debian.org/viewsvn/pcsclite/trunk/Drivers/ocfBridge/?
I am PC switcher to Mac and I need this JNI library
(libocfpcsc1.jnilib). After long search in internet for binary for
MacOS X I failed. I actually managed to compile it and use to some
point, but library crashes on SCardTransmit. I used following Makefile
settings:
CC = g++
LD = ld
OBJS := $(patsubst %.cpp,%.o,$(wildcard *.cpp))
PCSC_HDRS = -I/System/Library/Frameworks/PCSC.framework/Headers
PCSC_LIBS = -framework PCSC
INCLUDE = -I/System/Library/Frameworks/JavaVM.framework/Headers $(PCSC_HDRS)
LIBNAME = libOCFPCSC1.jnilib
CPPFLAGS = $(INCLUDE)
But apparently something is wrong because I failed to send any APDU.
I've narrowed the problem. The problem is when I call SCardTransmit
function from apple lib. Then I have one of two results: most often it
crashes on malloc with message "incorrect checksum for freed object -
object was probably modified after being freed", with SCardTransmit
returning 0xffffffff80100016 ("An attempt was made to end a
non-existent transaction"). Sometimes I have pure 0xffffffff80100016
(no malloc error).
Crash occurs in random threads, probably because all threads all the
time use malloc.
I've compiled example from http://ludovicrousseau.blogspot.com/ and it
works like a charm. So reader drivers and libraries are probably OK
(the reader is castless EZ100). pcsctest also works like it should.
I fiddled with compiler settings, I have all updates to java, I have
no clue what is the problem.
Any hint? what actually is 0xffffffff80100016 "transaction failed" or
"An attempt was made to end a non-existent transaction"?
best regards,
Michal Szwejkowski
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle