Bugs: Browse | Submit New | Admin
I tried installing using both RubyGems and sourcecode, but in both cases, upon the 'make' stage, I get the following: checking for OSACopyScriptingDefinition()... yes checking for LSFindApplicationForInfo()... yes create /Users/thisuser/Desktop/rubyosa-0.4.0/src/osx_ruby.h ... create /Users/thisuser/Desktop/rubyosa-0.4.0/src/osx_intern.h ... creating Makefile admin-2:rubyosa-0.4.0 jms$ make gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_OSACOPYSCRIPTINGDEFINITION -DHAVE_LSFINDAPPLICATIONFORINFO -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -Wall -c src/rbosa.c src/rbosa.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sClasses’ src/rbosa.c:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sApp’ src/rbosa.c: In function ‘__rbosa_class_from_desc_data’: src/rbosa.c:55: error: ‘sClasses’ undeclared (first use in this function) src/rbosa.c:55: error: (Each undeclared identifier is reported only once src/rbosa.c:55: error: for each function it appears in.) src/rbosa.c: In function ‘rbosa_element_make’: src/rbosa.c:114: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c: In function ‘__rbosa_elementlist_get’: src/rbosa.c:594: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c: In function ‘Init_osa’: src/rbosa.c:680: error: ‘sClasses’ undeclared (first use in this function) src/rbosa.c:681: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sClasses’ src/rbosa.c:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sApp’ src/rbosa.c: In function ‘__rbosa_class_from_desc_data’: src/rbosa.c:55: error: ‘sClasses’ undeclared (first use in this function) src/rbosa.c:55: error: (Each undeclared identifier is reported only once src/rbosa.c:55: error: for each function it appears in.) src/rbosa.c: In function ‘rbosa_element_make’: src/rbosa.c:114: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c: In function ‘__rbosa_elementlist_get’: src/rbosa.c:594: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c: In function ‘Init_osa’: src/rbosa.c:680: error: ‘sClasses’ undeclared (first use in this function) src/rbosa.c:681: error: ‘sApp’ undeclared (first use in this function) lipo: can't open input file: /var/folders/Yg/Yg4v17uGFC0OOXtSQsNrmk+++TI/-Tmp-//cc4CCfCs.out (No such file or directory) make: *** [rbosa.o] Error 1 ... I updated ruby to the latest version, plus all the dependencies installed - no dice. I think there's something to be changed in the makefile to make it work with snow leopard, but what I don't know as I'm new to package creation. Thanks for any help.
Add A Comment:
Date: 2010-11-12 18:10 Sender: Al Haraka I tried the patch created by Wataru Kimura, and it still did not work. laptop:sudo -i laptop:rubyosa-0.4.0 root# gem install rubyosa Building native extensions. This could take a while... ERROR: Error installing rubyosa: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb checking for OSACopyScriptingDefinition()... yes checking for LSFindApplicationForInfo()... yes create /Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/src/osx_ruby.h ... create /Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/src/osx_intern.h ... creating Makefile make Makefile:137: warning: overriding commands for target `/Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/lib' Makefile:135: warning: ignoring old commands for target `/Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/lib' gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/ 1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_OSACOPYSCRIPTINGDEFINITION -DHAVE_LSFINDAPPLICATIONFORINFO -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -Wall -c src/rbosa.c src/rbosa.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sClasses’ src/rbosa.c:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sApp’ src/rbosa.c: In function ‘__rbosa_class_from_desc_data’: src/rbosa.c:55: error: ‘sClasses’ undeclared (first use in this function) src/rbosa.c:55: error: (Each undeclared identifier is reported only once src/rbosa.c:55: error: for each function it appears in.) src/rbosa.c: In function ‘rbosa_element_make’: src/rbosa.c:114: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c: In function ‘__rbosa_elementlist_get’: src/rbosa.c:594: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c: In function ‘Init_osa’: src/rbosa.c:680: error: ‘sClasses’ undeclared (first use in this function) src/rbosa.c:681: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sClasses’ src/rbosa.c:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sApp’ src/rbosa.c: In function ‘__rbosa_class_from_desc_data’: src/rbosa.c:55: error: ‘sClasses’ undeclared (first use in this function) src/rbosa.c:55: error: (Each undeclared identifier is reported only once src/rbosa.c:55: error: for each function it appears in.) src/rbosa.c: In function ‘rbosa_element_make’: src/rbosa.c:114: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c: In function ‘__rbosa_elementlist_get’: src/rbosa.c:594: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c: In function ‘Init_osa’: src/rbosa.c:680: error: ‘sClasses’ undeclared (first use in this function) src/rbosa.c:681: error: ‘sApp’ undeclared (first use in this function) lipo: can't open input file: /var/tmp//cc9jyLen.out (No such file or directory) make: *** [rbosa.o] Error 1 Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/gem_m ake.out laptop: patch extconf.rb < watura.diff patching file extconf.rb laptop:rubyosa-0.4.0 root# gem install rubyosa Building native extensions. This could take a while... ERROR: Error installing rubyosa: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb checking for OSACopyScriptingDefinition()... yes checking for LSFindApplicationForInfo()... yes create /Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/src/osx_ruby.h ... create /Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/src/osx_intern.h ... creating Makefile make Makefile:137: warning: overriding commands for target `/Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/lib' Makefile:135: warning: ignoring old commands for target `/Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/lib' gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/ 1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_OSACOPYSCRIPTINGDEFINITION -DHAVE_LSFINDAPPLICATIONFORINFO -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -Wall -c src/rbosa.c src/rbosa.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sClasses’ src/rbosa.c:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sApp’ src/rbosa.c: In function ‘__rbosa_class_from_desc_data’: src/rbosa.c:55: error: ‘sClasses’ undeclared (first use in this function) src/rbosa.c:55: error: (Each undeclared identifier is reported only once src/rbosa.c:55: error: for each function it appears in.) src/rbosa.c: In function ‘rbosa_element_make’: src/rbosa.c:114: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c: In function ‘__rbosa_elementlist_get’: src/rbosa.c:594: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c: In function ‘Init_osa’: src/rbosa.c:680: error: ‘sClasses’ undeclared (first use in this function) src/rbosa.c:681: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sClasses’ src/rbosa.c:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sApp’ src/rbosa.c: In function ‘__rbosa_class_from_desc_data’: src/rbosa.c:55: error: ‘sClasses’ undeclared (first use in this function) src/rbosa.c:55: error: (Each undeclared identifier is reported only once src/rbosa.c:55: error: for each function it appears in.) src/rbosa.c: In function ‘rbosa_element_make’: src/rbosa.c:114: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c: In function ‘__rbosa_elementlist_get’: src/rbosa.c:594: error: ‘sApp’ undeclared (first use in this function) src/rbosa.c: In function ‘Init_osa’: src/rbosa.c:680: error: ‘sClasses’ undeclared (first use in this function) src/rbosa.c:681: error: ‘sApp’ undeclared (first use in this function) lipo: can't open input file: /var/tmp//cc9jyLen.out (No such file or directory) make: *** [rbosa.o] Error 1 Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/gem_m ake.out
Date: 2010-01-06 14:53 Sender: Wataru Kimura the following patch will fix this error. diff -ur ../rubyosa-0.4.0.orig/extconf.rb ./extconf.rb --- ../rubyosa-0.4.0.orig/extconf.rb 2007-04-12 06:16:57.000000000 +0900 +++ ./extconf.rb 2010-01-06 23:37:55.000000000 +0900 @@ -27,6 +27,9 @@ require 'mkmf' $CFLAGS << ' -Wall ' +if `/usr/bin/uname -r`.to_i == 10 # darwin 10 => Mac OS X 10.6 + $CFLAGS << ' -DRB_ID=ID' +end $LDFLAGS = '-framework Carbon -framework ApplicationServices' exit 1 unless have_func('OSACopyScriptingDefinition')