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? Björn -- 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
