Uploaded image for project: 'OpenDNSSEC TRAC Import'
  1. OpenDNSSEC TRAC Import
  2. ODSTRACIMPORT-91

Extra symbols in libsofthsm

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: SoftHSM
    • Labels:
      None

      Description

      There is a lot of extra symbols in libsofthsm.so.1.*:

      Lot of symbols starting with _ZN like:

       _Z10logWarningPKcS0_@Base 1.1.3
       _Z14readConfigFilev@Base 1.1.3
      ...
      
       function_list@Base 1.1.3
       softHSM@Base 1.1.3
       softHSMCreateMutex@Base 1.1.3
       softHSMDestroyMutex@Base 1.1.3
       softHSMLockMutex@Base 1.1.3
       softHSMUnlockMutex@Base 1.1.3
      

      I guess you want to export just PKCSODSTRACIMPORT-11 functions?

      Somehow same approach as in ODSTRACIMPORT-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.

        Attachments

          Activity

            People

            Assignee:
            rickard Rickard Bellgrim
            Reporter:
            oerdnj Ondřej Surý
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: