sh-3.2# gem i date-performanceBuilding native extensions. This could take a while...
ERROR: Error installing date-performance:ERROR: Failed to build gem native extension./opt/local/bin/ruby extconf.rb
creating Makefile
make
/usr/bin/gcc-4.2-I. -I/opt/local/include/ruby-1.9.1/i386-darwin10 -I/opt/local/include/ruby-1.9.1/ruby/backward -I/opt/local/include/ruby-1.9.1-I. -I/opt/local/include-D_XOPEN_SOURCE-D_DARWIN_C_SOURCE-fno-common -pedantic -Wall-Wno-long-long -Winline-o date_performance.o -c date_performance.c
date_performance.c:16: error: static declaration of ‘rb_cRational’ follows non-static declaration
/opt/local/include/ruby-1.9.1/ruby/ruby.h:1039: error: previous declaration of ‘rb_cRational’ was here
date_performance.c:In function ‘rb_date_new’:
date_performance.c:200: warning:ISOC90 forbids mixed declarations and code
date_performance.c:219: warning:ISOC90 forbids mixed declarations and code
date_performance.c:In function ‘rb_date_strftime’:
date_performance.c:253: error: ‘struct RString’ has no member named ‘ptr’
date_performance.c:254: error: ‘struct RArray’ has no member named ‘ptr’
date_performance.c:268: error: ‘struct RString’ has no member named ‘ptr’
date_performance.c:269: error: ‘struct RString’ has no member named ‘len’
date_performance.c:277: error: ‘struct RString’ has no member named ‘ptr’
date_performance.c:284: error: ‘struct RString’ has no member named ‘len’
date_performance.c:In function ‘rb_date_strptime’:
date_performance.c:304: error: ‘struct RString’ has no member named ‘ptr’
date_performance.c:305: error: ‘struct RString’ has no member named ‘ptr’
date_performance.c:In function ‘rb_date_compare’:
date_performance.c:350: warning:ISOC90 forbids mixed declarations and code
date_performance.c:353:5: warning:C++ style comments are not allowed inISOC90
date_performance.c:353:5: warning: (this will be reported only once per input file)
date_performance.c:365: warning:ISOC90 forbids mixed declarations and code
make:*** [date_performance.o] Error1Gem files will remain installed in/opt/local/lib/ruby/gems/1.9.1/gems/date-performance-0.4.8for inspection.
Results logged to /opt/local/lib/ruby/gems/1.9.1/gems/date-performance-0.4.8/ext/gem_make.out