Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
sh-3.2# gem i date-performance Building 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: ISO C90 forbids mixed declarations and code date_performance.c:219: warning: ISO C90 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: ISO C90 forbids mixed declarations and code date_performance.c:353:5: warning: C++ style comments are not allowed in ISO C90 date_performance.c:353:5: warning: (this will be reported only once per input file) date_performance.c:365: warning: ISO C90 forbids mixed declarations and code make: *** [date_performance.o] Error 1 Gem files will remain installed in /opt/local/lib/ruby/gems/1.9.1/gems/date-performance-0.4.8 for inspection. Results logged to /opt/local/lib/ruby/gems/1.9.1/gems/date-performance-0.4.8/ext/gem_make.out
This paste will be private.
From the Design Piracy series on my blog: