[Opendnssec-develop] [OpenDNSSEC] #91: Extra symbols in libsofthsm
OpenDNSSEC
owner-dnssec-trac at kirei.se
Tue Feb 2 15:30:14 UTC 2010
#91: Extra symbols in libsofthsm
------------------------------------------+---------------------------------
Reporter: Ondřej Surý <ondrej@…> | Owner: rb
Type: defect | Status: new
Priority: minor | Component: SoftHSM
Version: trunk | Keywords:
------------------------------------------+---------------------------------
There is a lot of extra symbols in libsofthsm.so.1.*:
Lot of symbols starting with _ZN like:
{{{
_Z10logWarningPKcS0_ at Base 1.1.3
_Z14readConfigFilev at Base 1.1.3
...
}}}
{{{
function_list at Base 1.1.3
softHSM at Base 1.1.3
softHSMCreateMutex at Base 1.1.3
softHSMDestroyMutex at Base 1.1.3
softHSMLockMutex at Base 1.1.3
softHSMUnlockMutex at Base 1.1.3
}}}
I guess you want to export just PKCS#11 functions?
Somehow same approach as in #90 doesn't work for softhsm. Maybe there's
something wrong with g++ linker:
{{{
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux-
gnu/4.4.3/../../../../lib/crti.o /usr/lib/gcc/x86_64-linux-
gnu/4.4.3/crtbeginS.o .libs/main.o .libs/mutex.o .libs/file.o .libs/log.o
.libs/attribute.o .libs/userhandling.o .libs/tokenhandling.o
.libs/mechanisms.o .libs/SoftHSMInternal.o .libs/SoftSlot.o
.libs/SoftSession.o .libs/SoftFind.o .libs/SoftDatabase.o
.libs/SoftKeyStore.o -L/usr/local/lib -lbotan /usr/lib/libsqlite3.so
-lpthread -ldl -lrt -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3
-L/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib -L/lib/../lib
-L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../.. -lstdc++
-lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtendS.o
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crtn.o -m64 -m64
-Wl,-soname -Wl,libsofthsm.so.1 -Wl,-retain-symbols-file -Wl,pkcs11.sym -o
.libs/libsofthsm.so.1.0.4
}}}
This command still produces _ZN* junk.
--
Ticket URL: <http://trac.opendnssec.org/ticket/91>
OpenDNSSEC <http://www.opendnssec.org/>
OpenDNSSEC
More information about the Opendnssec-develop
mailing list