Opened 11 years ago

Last modified 11 years ago

#37805 closed defect

git-core compile missing framework includes — at Initial Version

Reported by: chris+macports@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.1.2
Keywords: Cc:
Port: git-core

Description

on a 10.8.2 machine, after installing XQuartz 2.7.4, XCode 4.5.2 and MacPorts 2.1.2-10.8-MountainLion:

port install git-core fails with this error in main.log:

:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -I. -Wall -O2 -I/opt/local/include -arch x86_64 git-credential-osxkeychain.c :info:build git-credential-osxkeychain.c:4:10: fatal error: 'Security/Security.h' file not found :info:build #include <Security/Security.h> :info:build :info:build 1 error generated.

I managed to get it to build by linking various framework directories into /opt/local/include:

sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Security.framework/Versions/A/Headers Security sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers CoreFoundation

I doubt was the correct fix, but it worked, and resulted in a functional git.

Any idea what went wrong?

Change History (0)

Note: See TracTickets for help on using tickets.