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

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!

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> wrote:

> ldd pkcs11

Attachment: pkcs11_debug.log
Description: Binary data

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to