Subject: Solution to building subversion under MacOS X 10.3.9 - CarbonCore/MacTypes.h not found
To: None <pkgsrc-users@NetBSD.org>
From: munch paulson <mun3ch@gmail.com>
List: pkgsrc-users
Date: 04/27/2007 21:45:47
I wanted to build packages using pkgsrc for MacOS X (10.3.9), having tried
fink & darwinports and not being completely satisfied (for various
reasons which
I've since put out of my mind).

The build of subversion failed with the error message:

In file included from
/System/Library/Frameworks/Security.framework/Headers/SecBase.h:26,
                 from
/System/Library/Frameworks/Security.framework/Headers/Security.h:44,
                 from subversion/libsvn_subr/simple_providers.c:734:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:25:37:
CarbonCore/MacTypes.h: No such file or directory

I solved the problem using a very blunt instrument.  Whoever is maintaining
subversion-base might want to include a variation of this hack in the build
procedures.

. cd devel/subversion-base
. sudo bmake
--- get the error message above

### ugly hack
. cd work/subversion-1.4.3/include
. sudo mkdir CarbonCore
. sudo ln -sf /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/MacTypes.h
CarbonCore
### /ugly hack

, cd ../../..
. sudo bmake

It's ugly, but it works.  The include problem arises because of the
-DDARWIN on the
gcc command.  It might also be because I'm still using 10.3 instead of
10.4; the problem
might not exist under 10.4.