From: Laurent S. <lsa...@ap...> - 2007-07-04 15:10:58
|
Hi, On Jul 4, 2007, at 5:06 PM, Maarten Engelen wrote: > I'm trying to compile rubycocoa on a intel mac, but the build process > exits with an error when it reaches WebKit. The error message follows > below: > > Generating BridgeSupport metadata for: WebKit ... > ./gen_bridge_metadata.rb:1841:in `generate_precompiled_header': Can't > precompile header... aborting (RuntimeError) > command was: gcc -c -x objective-c-header /tmp/src-0-14642.h -o > /tmp/src-0-14642.h.gch -F"/System/Library/Frameworks" -framework > WebKit -framework Foundation 2>/tmp/log-0-14642 > > In file included from > /System/Library/Frameworks/WebKit.framework/Headers/DOMObject.h:27, > from > /System/Library/Frameworks/WebKit.framework/Headers/ > DOMAbstractView.h:27, > from /tmp/src-0-14642.h:5: > /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:33: > error: redeclaration of enumerator 'DOM_INDEX_SIZE_ERR' > /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:54: > error: previous definition of 'DOM_INDEX_SIZE_ERR' was here > /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:34: > error: redeclaration of enumerator 'DOM_DOMSTRING_SIZE_ERR' > /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:55: > error: previous definition of 'DOM_DOMSTRING_SIZE_ERR' was here > /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:35: > error: redeclaration of enumerator 'DOM_HIERARCHY_REQUEST_ERR' > /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:56: > error: previous definition of 'DOM_HIERARCHY_REQUEST_ERR' was here > /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:36: > error: redeclaration of enumerator 'DOM_WRONG_DOCUMENT_ERR' > /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:57: > error: previous definition of 'DOM_WRONG_DOCUMENT_ERR' was here > /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:37: > error: redeclaration of enumerator 'DOM_INVALID_CHARACTER_ERR' > /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:58: > error: previous definition of 'DOM_INVALID_CHARACTER_ERR' was here > /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:38: > error: redeclaration of enumerator 'DOM_NO_DATA_ALLOWED_ERR' > /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:59: > error: previous definition of 'DOM_NO_DATA_ALLOWED_ERR' was here > /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:39: > error: redeclaration of enumerator 'DOM_NO_MODIFICATION_ALLOWED_ERR' > /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:60: > error: previous definition of 'DOM_NO_MODIFICATION_ALLOWED_ERR' was > here > /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:40: > error: redeclaration of enumerator 'DOM_NOT_FOUND_ERR' > /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:61: > error: previous definition of 'DOM_NOT_FOUND_ERR' was here > /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:41: > error: redeclaration of enumerator 'DOM_NOT_SUPPORTED_ERR' > /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:62: > error: previous definition of 'DOM_NOT_SUPPORTED_ERR' was here > /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:42: > error: redeclaration of enumerator 'DOM_INUSE_ATTRIBUTE_ERR' > /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:63: > error: previous definition of 'DOM_INUSE_ATTRIBUTE_ERR' was here > /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:43: > error: redeclaration of enumerator 'DOM_INVALID_STATE_ERR' > > ... > > In file included from /tmp/src-0-14642.h:116: > /System/Library/Frameworks/WebKit.framework/Headers/DOMRGBColor.h:33: > error: redefinition of 'struct DOMRGBColor' > In file included from /tmp/src-0-14642.h:118: > /System/Library/Frameworks/WebKit.framework/Headers/ > DOMStyleSheetList.h:32: > error: redefinition of 'struct DOMStyleSheetList' > In file included from /tmp/src-0-14642.h:122: > /System/Library/Frameworks/WebKit.framework/Headers/DOMTreeWalker.h: > 35: > error: redefinition of 'struct DOMTreeWalker' > from ./gen_bridge_metadata.rb:520:in `collect' > from build.rb:101 > from build.rb:50:in `measure' > from build.rb:101 > from build.rb:62:in `each' > from build.rb:62 > config failed > hook /Users/maarten/Desktop/Download/rubycocoa/framework/post- > config.rb failed: > 'system BSROOT="/Users/maarten/Desktop/Download/rubycocoa/framework/ > bridge-support" > CFLAGS="" /opt/local/bin/ruby build.rb' failed > try 'ruby install.rb --help' for usage > > Any idea what may cause this. For the record: I'm running OS X 10.4.9, > with Safari 3 beta installed (different webkit?). I use ruby 1.8.6 > from MacPorts. I also compiled rubycocoa on a PPC machine with 10.4.10 > and Safari 3 beta installed. Yes Safari 3 beta probably installs a different WebKit that we do not support yet. If you want to work around this problem, edit misc/bridgesupport/ build.rb and remove all expressions dealing with WebKit. This means that the copy of RubyCocoa you will build won't support WebKit though. Otherwise, de-install Safari 3 beta and try again. Laurent |