Uploaded image for project: 'SoftHSM'
  1. SoftHSM
  2. SOFTHSM-42

SoftHSM does not build on MacOSX Mountain Lion

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0a1
    • Component/s: Build
    • Labels:
      None
    • Environment:

      Darwin onjiea.kirei.se 12.4.0 Darwin Kernel Version 12.4.0: Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64

      Description

      ./../.. -I./../cryptoki_compat -I./../crypto -I./../data_mgr -I./.. -g -O2 -MT Semaphore.lo -MD -MP -MF .deps/Semaphore.Tpo -c -o Semaphore.lo Semaphore.cpp
      libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I./../cryptoki_compat -I./../crypto -I./../data_mgr -I./.. -g -O2 -MT Semaphore.lo -MD -MP -MF .deps/Semaphore.Tpo -c Semaphore.cpp -fno-common -DPIC -o .libs/Semaphore.o
      In file included from Semaphore.cpp:34:
      Semaphore.h:60: error: expected `)' before '*' token
      Semaphore.h:63: error: ISO C++ forbids declaration of 'sem_t' with no type
      Semaphore.h:63: error: expected ';' before '*' token
      Semaphore.cpp: In static member function 'static Semaphore* Semaphore::create(int, std::string)':
      Semaphore.cpp:59: error: 'sem_t' was not declared in this scope
      Semaphore.cpp:59: error: 'semaphore' was not declared in this scope
      Semaphore.cpp:59: error: 'sem_open' was not declared in this scope
      Semaphore.cpp: At global scope:
      Semaphore.cpp:70: error: expected `)' before '*' token
      Semaphore.cpp: In destructor 'virtual Semaphore::~Semaphore()':
      Semaphore.cpp:80: error: 'semaphore' was not declared in this scope
      Semaphore.cpp:80: error: 'sem_close' was not declared in this scope
      Semaphore.cpp:85: error: 'sem_unlink' was not declared in this scope
      Semaphore.cpp: In member function 'bool Semaphore::inc()':
      Semaphore.cpp:92: error: 'semaphore' was not declared in this scope
      Semaphore.cpp:92: error: 'sem_post' was not declared in this scope
      Semaphore.cpp: In member function 'bool Semaphore::dec(bool)':
      Semaphore.cpp:100: error: 'semaphore' was not declared in this scope
      Semaphore.cpp:100: error: 'sem_wait' was not declared in this scope
      Semaphore.cpp:104: error: 'semaphore' was not declared in this scope
      Semaphore.cpp:104: error: 'sem_trywait' was not declared in this scope
      Semaphore.cpp: In member function 'int Semaphore::getValue()':
      Semaphore.cpp:113: error: 'semaphore' was not declared in this scope
      Semaphore.cpp:113: error: 'sem_getvalue' was not declared in this scope
      make[4]: *** [Semaphore.lo] Error 1
      make[3]: *** [all-recursive] Error 1
      make[2]: *** [all-recursive] Error 1
      make[1]: *** [all-recursive] Error 1
      make: *** [all] Error 2

        Attachments

          Activity

            People

            Assignee:
            fdupont Francis Dupont
            Reporter:
            jakob Jakob Schlyter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: