macosforge / darwinbuild

Darwinbuild is a collection of tools that assist compilation of the many projects contained in Darwin, the open source base of Apple's macOS operating system.
https://macosforge.github.io/darwinbuild/
Other
130 stars 54 forks source link

libsecurity_apple_csp needs an old security_cryptkit/feeTypes.h #83

Open macosforgebot opened 15 years ago

macosforgebot commented 15 years ago

aladin@… originally submitted this as ticket:85


The project cannot be built because of:

lib/FEEKeys.h:34:40: error: security_cryptkit/feeTypes.h: No such file or directory
lib/FEEKeys.h:43: error: expected `)' before 'feeKey'
lib/FEEKeys.h:53: error: 'feePubKey' does not name a type
lib/FEEKeys.h:55: error: 'feePubKey' does not name a type

Digging quickly, I found http://lists.apple.com/archives/apple-cdsa/2003/Feb/msg00017.html which solved the problem. See the attached patch in order to be used in a custom plist (e.g., 9J61pd1.plist) and the relative plist part below:

       libsecurity_apple_csp = {
                        patchfiles = (
                "libsecurity_apple_csp-35205.p1.patch",
            );
        };

After, you will probably fall into

/usr/local/SecurityPieces/Frameworks/security_utilities.framework/Headers/errors.h:103: error: 'noErr' was not declared in this scope
/usr/local/SecurityPieces/Frameworks/security_cdsa_utilities.framework/Headers/cssmdbname.h:90: error: 'nil' was not declared in this scope

Another workaround is to alter Solution add #include <CarbonCore/MacTypes.h> in BuildRoot/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/CFBase.h (Note: this hints is used for many other projects)

macosforgebot commented 15 years ago

aladin@… originally submitted this as _attachment:libsecurity_apple_csp-35205.p1.patch:⁠ticket:85_


Patch which disable/remove DCRYPTKIT_CSP_ENABLE -DASC_CSP_ENABLE in order to avoid a feeTypes.h error at compilation