Opened 12 years ago

Last modified 12 years ago

#37805 closed defect

git-core compile missing framework includes — at Version 1

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

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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 (2)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: frameworks removed
Milestone: MacPorts 2.1.3
Owner: changed from macports-tickets@… to ciserlohn@…

Please attach the main.log file.

Changed 12 years ago by chris+macports@…

Attachment: main.log added

main.log

Note: See TracTickets for help on using tickets.