On Wed, 28 Jul 2010, bj?rn wrote:

On 28 July 2010 22:17, Hisashi T Fujinaka wrote:

I also have a problem compiling with X11 on the Mac because it also
includes Carbon, which it shouldn't when using X11. I'm using fink, so
you'll see some weird directories.

gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -I/sw64/include/pango-1.0
-I/sw64/lib/fontconfig2/include -I/sw64/include/freetype2 -I/sw64/include
-I/sw64/include/gtk-2.0 -I/sw64/lib/gtk-2.0/include -I/sw64/include/atk-1.0
-I/sw64/include/cairo -I/sw64/include/glib-2.0 -I/sw64/lib/glib-2.0/include
-I/usr/X11R6/include -I/usr/X11/include -I/sw64/include -DMACOS_X_UNIX
-no-cpp-precomp  -O2 -fno-strength-reduce -Wall -D_FORTIFY_SOURCE=1
 -I/usr/X11/include      -o objects/os_macosx.o os_macosx.m
In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:48,
                from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38,
                from
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
                from
/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
                from os_macosx.m:19:
/System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:279:
error: conflicting types for 'Boolean'
/usr/X11R6/include/X11/Intrinsic.h:158: error: previous declaration of
'Boolean' was here
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QD.h:41,
                from
/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:30,
                from
/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8,
                from
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:114,
                from
/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
                from os_macosx.m:19:
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawTypes.h:267:
error: conflicting types for 'Cursor'
/usr/X11R6/include/X11/X.h:108: error: previous declaration of 'Cursor' was
here
make: *** [objects/os_macosx.o] Error 1
### execution of /var/tmp/tmp.0.IJgE16 failed, exit code 2
### execution of /var/tmp/tmp.2.JAJtuK failed, exit code 2

(I moved this post to a new thread: this is a completely different issue.)

This problem is due to the patch to mainline Vim which added
copy/paste to console Vim.

I can't really fix (I don't have GTK installed) this so please try
yourself.  My initial reaction is "why is os_macosx.m even compiled
when building for GTK?"

So either ensure os_macosx.m isn't compiled when building for GTK _or_
try to use #ifdef's to make sure the X11 includes aren't pulled in
when compiling os_macosx.m.  There is a #define called
"NO_X11_INCLUDES" maybe by including this at the top of os_macos.m the
problem will go away?

Now I'm stuck at:

gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -I/sw64/include/pango-1.0 
-I/sw64/lib/fontconfig2/include -I/sw64/include/freetype2 -I/sw64/include 
-I/sw64/include/gtk-2.0 -I/sw64/lib/gtk-2.0/include -I/sw64/include/atk-1.0 
-I/sw64/include/cairo -I/sw64/include/glib-2.0 -I/sw64/lib/glib-2.0/include 
-I/usr/X11R6/include -I/usr/X11/include -I/sw64/include -DMACOS_X_UNIX 
-no-cpp-precomp  -O2 -fno-strength-reduce -Wall -D_FORTIFY_SOURCE=1  
-I/usr/X11/include      -o objects/os_mac_conv.o os_mac_conv.c
In file included from proto.h:208,
                 from vim.h:1919,
                 from os_mac_conv.c:17:
proto/netbeans.pro:10: error: expected ')' before '*' token
make: *** [objects/os_mac_conv.o] Error 1
### execution of /var/tmp/tmp.0.z4ZCdI failed, exit code 2
### execution of /var/tmp/tmp.4.cfUmyb failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw64/bin/dpkg-lockwait -r fink-buildlock-vimbeta-7.3c.000-1
(Reading database ... 187303 files and directories currently installed.)
Removing fink-buildlock-vimbeta-7.3c.000-1 ...
Failed: phase compiling: vimbeta-7.3c.000-1 failed

I'm unfamiliar with ".pro" files.

--
Hisashi T Fujinaka - [email protected]
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte

--
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to