[Rubycocoa-devel 488] config fails in generating CoreGraphics.xml

Zurück zum Archiv-Index

kimura wataru kimur****@i*****
Sun Dec 10 21:26:50 JST 2006


Hi,

RubyCocoa config step of the apple-unstable branch (r1264) failed
on 10.4.8 with the following error.

--------
command was: gcc /tmp/src-0-29805.m -o /tmp/bin-0-29805  -framework ApplicationS
ervices  -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks  
-framework Foundation  2>/tmp/log-0-29805

/tmp/src-0-29805.m: In function ‘main’:
/tmp/src-0-29805.m:169: error: missing terminating " character
/tmp/src-0-29805.m:170: error: parse error before ‘CGPDFDictionaryRef’
/tmp/src-0-29805.m:170: error: missing terminating " character
        from tool/gen_bridge_metadata.rb:476:in `collect_types_encoding'
        from tool/gen_bridge_metadata.rb:325:in `initialize'
        from tool/gen_bridge_metadata.rb:933:in `new'
        from tool/gen_bridge_metadata.rb:933
config failed
hook /Users/kimuraw/proj/rubycocoa/libffi/framework/post-config.rb failed:
--------

--------
% cat -n /tmp/src-29805.m
     :
   169    printf("%s: %s¥n", "2
   170  CGPDFDictionaryRef", @encode(2
   171  CGPDFDictionaryRef));
     :
--------

I think this caused by cpp's line number output. cpp's -P option 
suppresses line number outputs.

=== framework/tool/gen_bridge_metadata.rb
==================================================================
--- framework/tool/gen_bridge_metadata.rb	(revision 1432)
+++ framework/tool/gen_bridge_metadata.rb	(local)
@@ -25,7 +25,7 @@
 
   CPP = ['/usr/bin/cpp-4.0', '/usr/bin/cpp-3.3', '/usr/bin/cpp3'].find { |x| File.exists?(x) }
   raise "cpp not found" if CPP.nil?
-  CPPFLAGS = "-x objective-c -D__APPLE_CPP__"
+  CPPFLAGS = "-x objective-c -D__APPLE_CPP__ -P"
   CPPFLAGS << "-D__GNUC__" unless /¥Acpp-4/.match(File.basename(CPP))
 
   def initialize(path)


-- 
kimura wataru



More information about the Rubycocoa-devel mailing list
Zurück zum Archiv-Index