On 12/20/2012 8:04 AM, Anna Pavlova wrote:
> Hi Douglas,
>
>  >Something completely different to try is to test use your libPkcs11.so
>  >module with FireFox or Thunderbird:
>
> it runs fine under Firefox - it shows the slots and the slotInfo. Thunderbird 
> I don't have so I didn't try it.
>
>  >Can you do a ldd pkcs11-tool
>  >and ldd libPkcs11.so
>
> yes, for some strange reason I get
>
> anna@anna:~/OpenSC/src/tools$ ldd pkcs11-tool
>      not a dynamic executable


You are running it out of the build directory?
That may be a shell script.
The install will get the real pkcs11-tool from
  src/tools/.libs/pkcs11-tool

If you are building, can you use the OpenSC-0.13.0

On Wed, Dec 5, 2012 at 6:23 PM, Greg Troxel <g...@ir.bbn.com> wrote:


       https://github.com/OpenSC/OpenSC/tags
       https://sourceforge.net/projects/opensc/files/OpenSC/
       https://opensc.fr/jenkins/


>
> That doesn't seem right. I try to find out what's going on.
>
> With my module:
>
> anna@anna:~/PKCS11_Project$ ldd libPkcs11.so
>
> linux-gate.so.1 =>  (0xb76f1000)
>      libpcsclite.so.1 => /usr/local/lib/libpcsclite.so.1 (0xb73bd000)
>      libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb72d2000)
>      librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb72c8000)
>      libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb72aa000)
>      libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7128000)
>      libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb710d000)
>      libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb70e3000)
>      /lib/ld-linux.so.2 (0xb76f2000)
>
>
>  >OK, then lets step back a bit,
>  >and set a breakpoint at C_LoadModule
>  >Its in OpenSC ./common/libpkcs11.c
>
>
> I made a debug log to show the steps I've done - it's in the attached file (I 
> left some printouts in the code of a type "Test text" - please ignore that). 
> So to summarize, I can access
> C_GetFunctionList and it appears I get the correct function list. The address 
> of p11 in openSC is identical with the one in my module. C_Initialize in 
> OpenSC and in my module are also identical.
>
> But I agree it could be a linking problem in my module, i just can't put my 
> finger on it what am I dong wrong :-(. I'm getting kind of deperate on this. 
> Thanks for staying in this with me!
>

You are using C++, are your functions declared as C?

I use of the RTLD_LAZY vs RTLD_NOW may make a difference.
Your C_GetFunctionList may be picking up something in the pkcs11-tool or
one of its libraries, when it should be picking up the version in your
library.



> I try it with libtool as you suggested and let's see what happens.
>
> And tomorrow has to be the end of the world.. *sigh*.. this week is pretty 
> bad :-(.
>
> Cheers,
> Anna
>
> On Wed, Dec 19, 2012 at 4:27 PM, Douglas E. Engert <deeng...@anl.gov 
> <mailto:deeng...@anl.gov>> wrote:
>
>     ldd pkcs11
>
>

-- 

  Douglas E. Engert  <deeng...@anl.gov>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to