Todd Ringler wrote:
> 
> System: MacBook Pro, 10.5.4, Intel, XCode 3.1
> 
> I have been trying to get dx to compile for a couple of months now. 
> First with XCode 3.0 and now with XCode 3.1. And advice on how to 
> resolve this would be welcome .... of the 400+ packages I have 
> installed, this is one I miss everyday. 
> 
> The compile error I am getting now is:
> 
> /sw/bin/g++-4 -DHAVE_CONFIG_H -I. -I. -I../../../include -I./../widgets 
> -I../../../include -Dmacos  -I/sw/include/ImageMagick -I/sw/include 
> -I/usr/X11/include  -g -O2 -I/usr/X11/include -c -o StartWebBrowser.o 
> StartWebBrowser.C
> In file included from 
> /System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/Headers/CFNetwork.h:27,
>                  from 
> /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:37,
>                  from 
> /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:20,
>                  from StartWebBrowser.C:21:
> /System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h:53:
>  
> error: expected initializer before '__AVAILABILITY_INTERNAL__MAC_10_5'

This is a problem of Fink's g++-4.2, already reported a month ago, but 
not yet fixed. I think this problem would not appear wih Fink's g++-4.3, 
but apparently there are other problems that don't allow to build dx 
with gcc-4.3. OTOH, dx builds fine with Apple's gcc-4.2.

What you can do is to install the gcc4.2.pkg from the xcode tools if you 
haven't yet, and then edit the dx package description:

Copy the files dx.info and dx.patch from 
/sw/fink/dists/unstable/main/finkinfo/sci/ to 
/sw/fink/dists/local/main/finkinfo/ and change the following:

1. Update the Revision from 1003 to 1003.0
2. Change the lines

SetCXX:%p/bin/g++-4
SetCC:%p/bin/gcc-4

to

SetCXX:/usr/bin/g++-4.2
SetCC:/usr/bin/gcc-4.2

Then "fink install dx" should succeed.

There is another fix that you need when your X11 is from 
macosforge/xquartz without /usr/X11/bin/xmkmf, but you do not seem to 
have this problem.

-- 
Martin



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to