ruby - glib2 failing to compile for gem install dependency with cairo and poppler -


we using cairo , poppler c libraries come qr code stuff, , on unix/linux/ubuntu fine in production , test systems. developers on mac os x have issue these gems, when upgrade mac os x 10.9 10.10, or upgrade ruby 1.9 2.1.

our engineers stuck on latest issue ruby 2.1 rail 3.2.21 , mac os x 10.10. have rvm, homebrew, macports setup. suspect issue different gcc versions apple offers vs mac ports installs...we have tried toggling symlinks, not sure....

any ideas/thoughts welcome, thank you!

ben$ gem install glib2 -v '2.1.0' building native extensions.  take while... error:  error installing glib2:     error: failed build gem native extension.      /users/ben/.rvm/rubies/ruby-2.1.5/bin/ruby -r ./siteconf20150331-23534-17ib06g.rb extconf.rb checking -wall option compiler... yes checking -waggregate-return option compiler... yes checking -wcast-align option compiler... yes checking -wextra option compiler... yes checking -wformat=2 option compiler... yes checking -winit-self option compiler... yes checking -wlarger-than-65500 option compiler... yes checking -wmissing-declarations option compiler... yes checking -wmissing-format-attribute option compiler... yes checking -wmissing-include-dirs option compiler... yes checking -wmissing-noreturn option compiler... yes checking -wmissing-prototypes option compiler... yes checking -wnested-externs option compiler... yes checking -wold-style-definition option compiler... yes checking -wpacked option compiler... yes checking -wp,-d_fortify_source=2 option compiler... yes checking -wpointer-arith option compiler... yes checking -wswitch-default option compiler... yes checking -wswitch-enum option compiler... yes checking -wundef option compiler... yes checking -wunsafe-loop-optimizations option compiler... yes checking -wwrite-strings option compiler... yes checking rb_define_alloc_func() in ruby.h... yes checking rb_block_proc() in ruby.h... yes checking new allocation framework... yes checking attribute assignment... no checking win32 os... no checking gobject-2.0 version (>= 2.12.0)... yes checking gthread-2.0... yes checking unistd.h... yes checking io.h... no checking g_spawn_close_pid() in glib.h... yes checking g_thread_init() in glib.h... yes checking g_main_depth() in glib.h... yes checking g_listenv() in glib.h... yes checking rb_check_array_type() in ruby.h... yes checking rb_check_hash_type() in ruby.h... yes checking rb_exec_recursive() in ruby.h... yes checking rb_errinfo() in ruby.h... yes checking rb_sourcefile() in ruby.h... yes checking rb_sourceline() in ruby.h... yes checking ruby_set_current_source() in ruby.h... no checking rb_thread_blocking_region() in ruby.h... yes checking ruby_native_thread_p() in ruby.h... yes checking rb_thread_call_with_gvl() in ruby.h... yes checking rb_str_new_cstr() in ruby.h... yes checking rb_gc_register_mark_object() in ruby.h... yes checking rb_exc_new_str() in ruby.h... yes checking curr_thread in ruby.h,node.h... no checking rb_curr_thread in ruby.h,node.h... no creating ruby-glib2.pc creating glib-enum-types.c creating glib-enum-types.h creating makefile      make "destdir=" clean      make "destdir="     compiling glib-enum-types.c     warning: unknown warning option '-wunsafe-loop-optimizations'; did mean '-wunavailable-declarations'? [-wunknown-warning-option]     glib-enum-types.c:1181:9: error: use of undeclared identifier 'g_win32_os_any'           { g_win32_os_any, "g_win32_os_any", "any" },             ^     glib-enum-types.c:1182:9: error: use of undeclared identifier 'g_win32_os_workstation'           { g_win32_os_workstation, "g_win32_os_workstation", "workstation" },             ^     glib-enum-types.c:1183:9: error: use of undeclared identifier 'g_win32_os_server'           { g_win32_os_server, "g_win32_os_server", "server" },             ^     1 warning , 3 errors generated.     make: *** [glib-enum-types.o] error 1      make failed, exit code 2 

it sounds hit bug https://github.com/ruby-gnome2/ruby-gnome2/issues/361


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -