Hello Douglas,

>It sounds like opensc is compiled with the -g but not your module.

you're right I didn't use the -g option while compiling my module, I added
the -g option into my project and now when I compile my module I do
(simplified):

gcc -fpermissive -Wall -g   -c -O2 -I../foo/includes -fPIC  -MMD -MP -MF
build/Release/GNU-Linux-x86/source/foox.o.d -o
build/Release/GNU-Linux-x86/source/foox.o source/foox.cpp

gcc -fpermissive -Wall -g -shared -o ../../../libPkcs11.so -fPIC
build/Release/GNU-Linux-x86/source/foos.o -L../../../ -lbase
-lboost_date_time -lboost_serialization -lboost_system -lboost_thread
-lpkcs11crypto -lpcsclite -lstdc++ -lrt


When I try to debug the p11->C_Initialize(NULL) line it doesn't allow me to
go into the call. I used

(gdb) break pkcs11-tool.c:670
(gdb) run
Breakpoint 1, main (argc=5, argv=0xbffff294) at pkcs11-tool.c:670
670        rv = p11->C_Initialize(NULL);
(gdb) step

which immediately returns:

Program received signal SIGSEGV, Segmentation fault.
0xd810b787 in ?? ()


I can give OpenSC-0.13.0 a try but I don't think with a newer version my
problem disappears...


>In the OpenSC ./src/pkcs11/Makefile.am has:
>
>    opensc_pkcs11_la_LDFLAGS = $(AM_LDFLAGS) \
>          -export-symbols "$(srcdir)/opensc-pkcs11.exports" \
>          -module -shared -avoid-version -no-undefined

I'm sorry, but I don't really know what the -module and -no-undefined
options are :-(. Are these gcc options?

Cheers,
Anna

On Tue, Dec 18, 2012 at 4:38 PM, Douglas E. Engert <deeng...@anl.gov> wrote:

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

Reply via email to