All,

 

Thanks to all for your help on this. The final solution was to reload the OS. Another developer was attempting to get this working and had libraries and include files all over the place, so I rebuilt everything from scratch. I did hit a couple of snags of note.

 

  1. The Mac build was looking for include files in PSCS/ . While there was a directory on the box (Mac OS X 10.2) /System/Library/Frameworks/PCSC.framework/PCSC, there was nothing in it. So I change all the files to look for the includes in –I.
  2. In  the pcsclite library file tokenfactory.c at about line 271 you have:

 

       #elif defined(__APPLE__)

                                                sprintf(fullLibPath, "%s%s", MSC_SVC_DROPDIR,

                                                            currFP->d_name);

       #else

 

       I think it should be:

 

        #elif defined(__APPLE__)

                                                sprintf(fullLibPath, "%s/%s", MSC_SVC_DROPDIR,

                                                            currFP->d_name);

        #else

 

Everything seems to be working fine, even the Java so thanks again. Stay tuned for my Solaris questions 8-)

                                                                                                         Mark S.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Corcoran
Sent: Friday, June 04, 2004 9:18 AM
To: MUSCLE
Subject: Re: [Muscle] Mac OS service bundle question

 

Hi Mark,

 

Assuming you have a quick test program, you might want to run gdb to find where the crash occurs. Just do a backtrace after the crash

and it should reveal the problem. You may as well try using ktrace and kdump to clue us into the system calls that are being done prior to the

crash ....

 

Dave



On Jun 4, 2004, at 8:59 AM, Schoneman, Mark wrote:

 

Thanks for the quick reply but that didn't work either. The only two calls

the library has external are SCardReconnect & SCardTransmit

 

-----Original Message-----

From: [EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED] On Behalf Of Damien Sauveron

Sent: Friday, June 04, 2004 8:49 AM

To: MUSCLE

Subject: Re: [Muscle] Mac OS service bundle question

 

I've built a service bundle library based on the musclecard DDK code.

Under

Linux it compiles fine and produces the correct shareable libraries and

works fine. Under Mac OS 10.2 it segment faults when trying to load the

bundle in TPLoadToken. This happens under pcsclite 1.2.0 and the new

beta2.

The command I use to build the bundle is

 

gcc -bundle -L/usr/local/lib -lpcsclite -o myBundle myBundle.o

 

I think you should link with the muscle library because it contains the

symbol

TPLoadToken:

 

gcc -bundle -L/usr/local/lib -lmusclecard -o myBundle myBundle.o

 

----------------------------------------------------------------

This message was sent using IMP, the Internet Messaging Program.

_______________________________________________

Muscle mailing list

[EMAIL PROTECTED]

http://lists.drizzle.com/mailman/listinfo/muscle

 

_______________________________________________

Muscle mailing list

[EMAIL PROTECTED]

http://lists.drizzle.com/mailman/listinfo/muscle

 

*****************************************************************************

David Corcoran <[EMAIL PROTECTED]>

Identity Alliance [http://www.identityalliance.com]

Smart Cards, Biometrics, Training, Identity Management

*****************************************************************************

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to