[MacPorts] #37805: git-core compile missing framework includes

MacPorts noreply at macports.org
Sun Jan 27 12:13:43 PST 2013


#37805: git-core compile missing framework includes
-------------------------------+-------------------------
  Reporter:  chris+macports@…  |      Owner:  ciserlohn@…
      Type:  defect            |     Status:  new
  Priority:  Normal            |  Milestone:
 Component:  base              |    Version:  2.1.2
Resolution:                    |   Keywords:
      Port:  git-core          |
-------------------------------+-------------------------
Changes (by ryandesign@…):

 * keywords:  frameworks =>
 * owner:  macports-tickets@… => ciserlohn@…
 * milestone:  MacPorts 2.1.3 =>


Old 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?

New 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?

--

Comment:

 Please attach the main.log file.

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


More information about the macports-tickets mailing list