--- ruby-zoom-0.4.1/src/extconf.rb~ 2012-11-08 00:52:45.089978094 +0000 +++ ruby-zoom-0.4.1/src/extconf.rb 2012-11-08 00:53:57.931624837 +0000 @@ -2,12 +2,12 @@ unless system('yaz-config') $stderr.puts 'yaz does not appear to be installed' - break + exit 1 end unless have_header('yaz/zoom.h') $stderr.puts 'yaz zoom header not available' - break + exit 1 end $CFLAGS << " #{`yaz-config --cflags`} " --- ruby-zoom-0.4.1/src/rbzoomoptions.c~ 2012-11-08 00:55:15.903380693 +0000 +++ ruby-zoom-0.4.1/src/rbzoomoptions.c 2012-11-08 00:57:07.645896311 +0000 @@ -32,10 +32,10 @@ options = ZOOM_options_create (); ary = rb_funcall (hash, rb_intern ("to_a"), 0); - for (i = 0; i < RARRAY (ary)->len; i++) { - pair = RARRAY (ary)->ptr[i]; - key = RARRAY (pair)->ptr[0]; - value = RARRAY (pair)->ptr[1]; + for (i = 0; i < RARRAY_LEN (ary); i++) { + pair = RARRAY_PTR (ary)[i]; + key = RARRAY_PTR (pair)[0]; + value = RARRAY_PTR (pair)[1]; switch (TYPE (value)) { case T_TRUE: --- ruby-zoom-0.4.1/src/rbzoom.h~ 2012-11-08 00:58:36.737911788 +0000 +++ ruby-zoom-0.4.1/src/rbzoom.h 2012-11-08 01:04:38.056060063 +0000 @@ -53,7 +53,7 @@ /* useful macros */ #if !defined (RVAL2CSTR) -# define RVAL2CSTR(x) (NIL_P (x) ? NULL : STR2CSTR(x)) +# define RVAL2CSTR(x) (NIL_P (x) ? NULL : RSTRING_PTR(x)) #endif #if !defined (CSTR2RVAL) # define CSTR2RVAL(x) (x == NULL ? Qnil : rb_str_new2(x))