[MacPorts] #25914: truecrypt 7.0 request to add port

MacPorts noreply at macports.org
Mon Aug 29 15:47:35 PDT 2011


#25914: truecrypt 7.0 request to add port
--------------------------------------+-------------------------------------
 Reporter:  nonstop.server@…          |       Owner:  l2g@…           
     Type:  request                   |      Status:  assigned        
 Priority:  Normal                    |   Milestone:                  
Component:  ports                     |     Version:                  
 Keywords:  crypto security           |        Port:  truecrypt       
--------------------------------------+-------------------------------------

Comment(by anatol.pomozov@…):

 I am looking at the Truecrypt sources and trying to make a Portfile.
 Makefile should be fixed like this to remove dependency to outdated ppc
 stuff:

 {{{
 index 265bb6f..b4c7a71 100644
 --- a/Makefile
 +++ b/Makefile
 @@ -173,13 +173,7 @@ ifeq "$(shell uname -s)" "Darwin"
         PLATFORM := MacOSX
         APPNAME := TrueCrypt

 -       TC_OSX_SDK ?= /Developer/SDKs/MacOSX10.4u.sdk
 -       CC := gcc-4.0
 -       CXX := g++-4.0
 -
 -       C_CXX_FLAGS += -DTC_UNIX -DTC_BSD -DTC_MACOSX -mmacosx-version-
 min=10.4 -isysroot $(TC_OSX_SDK)
 -       LFLAGS += -mmacosx-version-min=10.4 -Wl,-syslibroot $(TC_OSX_SDK)
 -       WX_CONFIGURE_FLAGS += --with-macosx-version-min=10.4 --with-
 macosx-sdk=$(TC_OSX_SDK)
 +       C_CXX_FLAGS += -DTC_UNIX -DTC_BSD -DTC_MACOSX

         ifeq "$(CPU_ARCH)" "x64"
                 CPU_ARCH = x86
 @@ -195,10 +189,9 @@ ifeq "$(shell uname -s)" "Darwin"
                 S := $(C_CXX_FLAGS)
                 C_CXX_FLAGS = $(subst -MMD,,$(S))

 -               C_CXX_FLAGS += -gfull -arch i386 -arch ppc
 -               LFLAGS += -Wl,-dead_strip -arch i386 -arch ppc
 +               C_CXX_FLAGS += -gfull
 +               LFLAGS += -Wl,-dead_strip

 -               WX_CONFIGURE_FLAGS += --enable-universal_binary
                 WXCONFIG_CFLAGS += -gfull
                 WXCONFIG_CXXFLAGS += -gfull
 }}}


 Now I am stuck with this compile error:

 {{{
 $ make
 Compiling Keyfile.cpp
 In file included from Keyfile.cpp:10:
 /Users/anatol/tmp/truecrypt/truecrypt-7.0a-
 source/Common/SecurityToken.h:43:29: error: openssl/pkcs11.h: No such file
 or directory
 In file included from Keyfile.cpp:10:
 /Users/anatol/tmp/truecrypt/truecrypt-7.0a-
 source/Common/SecurityToken.h:56: error: ‘CK_SLOT_ID’ does not name a type
 /Users/anatol/tmp/truecrypt/truecrypt-7.0a-
 source/Common/SecurityToken.h:57: error: ‘CK_FLAGS’ does not name a type
 /Users/anatol/tmp/truecrypt/truecrypt-7.0a-
 source/Common/SecurityToken.h:77: error: ‘CK_OBJECT_HANDLE’ does not name
 a type
 /Users/anatol/tmp/truecrypt/truecrypt-7.0a-
 source/Common/SecurityToken.h:80: error: ‘CK_SLOT_ID’ does not name a type
 /Users/anatol/tmp/truecrypt/truecrypt-7.0a-
 source/Common/SecurityToken.h:86: error: expected `)' before ‘errorCode’
 /Users/anatol/tmp/truecrypt/truecrypt-7.0a-
 source/Common/SecurityToken.h:92: error: expected `)' before ‘errorCode’
 }}}

 Do you know where pkcs11.h is defined. I found only versions 12 and 7
 (both in XCode and openssl port).

-- 
Ticket URL: <https://trac.macports.org/ticket/25914#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list