Create a gist now

Instantly share code, notes, and snippets.

@zunda /0-ng.txt
Last active Dec 27, 2015

What would you like to do?
Yosemiteのbrewでいろいろ更新したらpoppler gemが入らなくなったのでbrewでpopplerを0.39.0から0.38.0に戻す必要がある。poppler gemのmasterは0.39.0でビルドできるとのこと: https://github.com/rabbit-shocker/rabbit/issues/81#issuecomment-167294377
$ PKG_CONFIG_PATH=/usr/local/opt/poppler/lib/pkgconfig gem install poppler
Building native extensions. This could take a while...
ERROR: Error installing poppler:
ERROR: Failed to build gem native extension.
/usr/local/opt/ruby/bin/ruby -r ./siteconf20151225-8139-foz14t.rb extconf.rb
checking for --enable-debug-build option... no
checking for -Wall option to compiler... yes
checking for -Waggregate-return option to compiler... yes
checking for -Wcast-align option to compiler... yes
checking for -Wextra option to compiler... yes
checking for -Wformat=2 option to compiler... yes
checking for -Winit-self option to compiler... yes
checking for -Wlarger-than-65500 option to compiler... yes
checking for -Wmissing-declarations option to compiler... yes
checking for -Wmissing-format-attribute option to compiler... yes
checking for -Wmissing-include-dirs option to compiler... yes
checking for -Wmissing-noreturn option to compiler... yes
checking for -Wmissing-prototypes option to compiler... yes
checking for -Wnested-externs option to compiler... yes
checking for -Wold-style-definition option to compiler... yes
checking for -Wpacked option to compiler... yes
checking for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... yes
checking for -Wpointer-arith option to compiler... yes
checking for -Wswitch-default option to compiler... yes
checking for -Wswitch-enum option to compiler... yes
checking for -Wundef option to compiler... yes
checking for -Wout-of-line-declaration option to compiler... yes
checking for -Wunsafe-loop-optimizations option to compiler... no
checking for -Wwrite-strings option to compiler... yes
checking for rb_define_alloc_func() in ruby.h... yes
checking for rb_block_proc() in ruby.h... yes
checking for new allocation framework... yes
checking for attribute assignment... no
checking for cairo... yes
checking for rb_cairo.h... yes
checking for Windows... no
checking for poppler-glib version (>= 0.12.0)... yes
checking for POPPLER_MAJOR_VERSION in poppler.h... yes
creating ruby-poppler.pc
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling rbpoppler-action.c
compiling rbpoppler-annotation-callout-line.c
compiling rbpoppler-annotation-free-text.c
compiling rbpoppler-annotation-mapping.c
compiling rbpoppler-annotation-markup.c
compiling rbpoppler-annotation-text.c
compiling rbpoppler-annotation.c
compiling rbpoppler-attachment.c
compiling rbpoppler-button-field.c
compiling rbpoppler-choice-field.c
compiling rbpoppler-color.c
compiling rbpoppler-document.c
rbpoppler-document.c:44:51: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
RSTRING_LEN(uri_or_data),
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/ruby/2.2.4/include/ruby-2.2.0/ruby/ruby.h:863:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/ruby/2.2.4/include/ruby-2.2.0/ruby/ruby.h:859:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rbpoppler-document.c:44:51: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
RSTRING_LEN(uri_or_data),
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/ruby/2.2.4/include/ruby-2.2.0/ruby/ruby.h:864:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
2 warnings generated.
compiling rbpoppler-font-info.c
compiling rbpoppler-fonts-iter.c
compiling rbpoppler-form-field-mapping.c
compiling rbpoppler-form-field.c
compiling rbpoppler-image-mapping.c
compiling rbpoppler-index-iter.c
compiling rbpoppler-link-mapping.c
compiling rbpoppler-page-transition.c
rbpoppler-page-transition.c:25:92: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long') to 'PopplerPageTransitionType' [-Wshorten-64-to-32]
DEF_ACCESSOR(page_trans, type, RVAL2POPPLERPAGETRANSITION, RVAL2POPPLERPAGETRANSITIONTYPE, POPPLERPAGETRANSITIONTYPE2RVAL)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./rbpoppler-private.h:64:51: note: expanded from macro 'DEF_ACCESSOR'
DEF_WRITER(prefix, member, member, self_to_c, value_to_c) \
^
./rbpoppler-private.h:49:33: note: expanded from macro 'DEF_WRITER'
(self_to_c(self))->member = value_to_c(value); \
^
./rbpopplerconversions.h:101:50: note: expanded from macro 'POPPLERPAGETRANSITIONTYPE2RVAL'
#define POPPLERPAGETRANSITIONTYPE2RVAL(o) (GENUM2RVAL(o, POPPLER_TYPE_PAGE_TRANSITION_TYPE))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/dtomono/.gem/ruby/2.2.0/gems/glib2-3.0.7/ext/glib2/rbgobject.h:108:34: note: expanded from macro 'GENUM2RVAL'
#define GENUM2RVAL(n, gtype) (rbgobj_make_enum(n, gtype))
^~~~~~~~~~~~~~~~~~~~~~~~~~
rbpoppler-page-transition.c:25:1: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long') to 'gint' (aka 'int') [-Wshorten-64-to-32]
DEF_ACCESSOR(page_trans, type, RVAL2POPPLERPAGETRANSITION, RVAL2POPPLERPAGETRANSITIONTYPE, POPPLERPAGETRANSITIONTYPE2RVAL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./rbpoppler-private.h:64:5: note: expanded from macro 'DEF_ACCESSOR'
DEF_WRITER(prefix, member, member, self_to_c, value_to_c) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./rbpoppler-private.h:49:44: note: expanded from macro 'DEF_WRITER'
(self_to_c(self))->member = value_to_c(value); \
^~~~~
./rbpopplerconversions.h:101:61: note: expanded from macro 'POPPLERPAGETRANSITIONTYPE2RVAL'
#define POPPLERPAGETRANSITIONTYPE2RVAL(o) (GENUM2RVAL(o, POPPLER_TYPE_PAGE_TRANSITION_TYPE))
^
/Users/dtomono/.gem/ruby/2.2.0/gems/glib2-3.0.7/ext/glib2/rbgobject.h:108:51: note: expanded from macro 'GENUM2RVAL'
#define GENUM2RVAL(n, gtype) (rbgobj_make_enum(n, gtype))
^
rbpoppler-page-transition.c:26:102: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long') to 'PopplerPageTransitionAlignment' [-Wshorten-64-to-32]
DEF_ACCESSOR(page_trans, alignment, RVAL2POPPLERPAGETRANSITION, RVAL2POPPLERPAGETRANSITIONALIGNMENT, POPPLERPAGETRANSITIONALIGNMENT2RVAL)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./rbpoppler-private.h:64:51: note: expanded from macro 'DEF_ACCESSOR'
DEF_WRITER(prefix, member, member, self_to_c, value_to_c) \
^
./rbpoppler-private.h:49:33: note: expanded from macro 'DEF_WRITER'
(self_to_c(self))->member = value_to_c(value); \
^
./rbpopplerconversions.h:97:50: note: expanded from macro 'POPPLERPAGETRANSITIONALIGNMENT2RVAL'
#define POPPLERPAGETRANSITIONALIGNMENT2RVAL(o) (GENUM2RVAL(o, POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/dtomono/.gem/ruby/2.2.0/gems/glib2-3.0.7/ext/glib2/rbgobject.h:108:34: note: expanded from macro 'GENUM2RVAL'
#define GENUM2RVAL(n, gtype) (rbgobj_make_enum(n, gtype))
^~~~~~~~~~~~~~~~~~~~~~~~~~
rbpoppler-page-transition.c:26:1: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long') to 'gint' (aka 'int') [-Wshorten-64-to-32]
DEF_ACCESSOR(page_trans, alignment, RVAL2POPPLERPAGETRANSITION, RVAL2POPPLERPAGETRANSITIONALIGNMENT, POPPLERPAGETRANSITIONALIGNMENT2RVAL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./rbpoppler-private.h:64:5: note: expanded from macro 'DEF_ACCESSOR'
DEF_WRITER(prefix, member, member, self_to_c, value_to_c) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./rbpoppler-private.h:49:44: note: expanded from macro 'DEF_WRITER'
(self_to_c(self))->member = value_to_c(value); \
^~~~~
./rbpopplerconversions.h:97:61: note: expanded from macro 'POPPLERPAGETRANSITIONALIGNMENT2RVAL'
#define POPPLERPAGETRANSITIONALIGNMENT2RVAL(o) (GENUM2RVAL(o, POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT))
^
/Users/dtomono/.gem/ruby/2.2.0/gems/glib2-3.0.7/ext/glib2/rbgobject.h:108:51: note: expanded from macro 'GENUM2RVAL'
#define GENUM2RVAL(n, gtype) (rbgobj_make_enum(n, gtype))
^
rbpoppler-page-transition.c:27:102: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long') to 'PopplerPageTransitionDirection' [-Wshorten-64-to-32]
DEF_ACCESSOR(page_trans, direction, RVAL2POPPLERPAGETRANSITION, RVAL2POPPLERPAGETRANSITIONDIRECTION, POPPLERPAGETRANSITIONDIRECTION2RVAL)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./rbpoppler-private.h:64:51: note: expanded from macro 'DEF_ACCESSOR'
DEF_WRITER(prefix, member, member, self_to_c, value_to_c) \
^
./rbpoppler-private.h:49:33: note: expanded from macro 'DEF_WRITER'
(self_to_c(self))->member = value_to_c(value); \
^
./rbpopplerconversions.h:99:50: note: expanded from macro 'POPPLERPAGETRANSITIONDIRECTION2RVAL'
#define POPPLERPAGETRANSITIONDIRECTION2RVAL(o) (GENUM2RVAL(o, POPPLER_TYPE_PAGE_TRANSITION_DIRECTION))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/dtomono/.gem/ruby/2.2.0/gems/glib2-3.0.7/ext/glib2/rbgobject.h:108:34: note: expanded from macro 'GENUM2RVAL'
#define GENUM2RVAL(n, gtype) (rbgobj_make_enum(n, gtype))
^~~~~~~~~~~~~~~~~~~~~~~~~~
rbpoppler-page-transition.c:27:1: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long') to 'gint' (aka 'int') [-Wshorten-64-to-32]
DEF_ACCESSOR(page_trans, direction, RVAL2POPPLERPAGETRANSITION, RVAL2POPPLERPAGETRANSITIONDIRECTION, POPPLERPAGETRANSITIONDIRECTION2RVAL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./rbpoppler-private.h:64:5: note: expanded from macro 'DEF_ACCESSOR'
DEF_WRITER(prefix, member, member, self_to_c, value_to_c) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./rbpoppler-private.h:49:44: note: expanded from macro 'DEF_WRITER'
(self_to_c(self))->member = value_to_c(value); \
^~~~~
./rbpopplerconversions.h:99:61: note: expanded from macro 'POPPLERPAGETRANSITIONDIRECTION2RVAL'
#define POPPLERPAGETRANSITIONDIRECTION2RVAL(o) (GENUM2RVAL(o, POPPLER_TYPE_PAGE_TRANSITION_DIRECTION))
^
/Users/dtomono/.gem/ruby/2.2.0/gems/glib2-3.0.7/ext/glib2/rbgobject.h:108:51: note: expanded from macro 'GENUM2RVAL'
#define GENUM2RVAL(n, gtype) (rbgobj_make_enum(n, gtype))
^
rbpoppler-page-transition.c:28:73: warning: implicit conversion loses integer precision: 'unsigned long' to 'gint' (aka 'int') [-Wshorten-64-to-32]
DEF_ACCESSOR(page_trans, duration, RVAL2POPPLERPAGETRANSITION, NUM2INT, INT2NUM)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
./rbpoppler-private.h:64:51: note: expanded from macro 'DEF_ACCESSOR'
DEF_WRITER(prefix, member, member, self_to_c, value_to_c) \
^
./rbpoppler-private.h:49:33: note: expanded from macro 'DEF_WRITER'
(self_to_c(self))->member = value_to_c(value); \
^
/usr/local/Cellar/ruby/2.2.4/include/ruby-2.2.0/ruby/ruby.h:1297:21: note: expanded from macro 'INT2NUM'
# define INT2NUM(v) INT2FIX((int)(v))
^~~~~~~~~~~~~~~~~
/usr/local/Cellar/ruby/2.2.4/include/ruby-2.2.0/ruby/ruby.h:234:37: note: expanded from macro 'INT2FIX'
#define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG)
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
rbpoppler-page-transition.c:29:70: warning: implicit conversion loses integer precision: 'unsigned long' to 'gint' (aka 'int') [-Wshorten-64-to-32]
DEF_ACCESSOR(page_trans, angle, RVAL2POPPLERPAGETRANSITION, NUM2INT, INT2NUM)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
./rbpoppler-private.h:64:51: note: expanded from macro 'DEF_ACCESSOR'
DEF_WRITER(prefix, member, member, self_to_c, value_to_c) \
^
./rbpoppler-private.h:49:33: note: expanded from macro 'DEF_WRITER'
(self_to_c(self))->member = value_to_c(value); \
^
/usr/local/Cellar/ruby/2.2.4/include/ruby-2.2.0/ruby/ruby.h:1297:21: note: expanded from macro 'INT2NUM'
# define INT2NUM(v) INT2FIX((int)(v))
^~~~~~~~~~~~~~~~~
/usr/local/Cellar/ruby/2.2.4/include/ruby-2.2.0/ruby/ruby.h:234:37: note: expanded from macro 'INT2FIX'
#define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG)
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
8 warnings generated.
compiling rbpoppler-page.c
compiling rbpoppler-ps-file.c
compiling rbpoppler-rectangle.c
compiling rbpoppler-text-field.c
compiling rbpoppler.c
rbpoppler.c:59:17: error: use of undeclared identifier 'POPPLER_TYPE_ORIENTATION'
G_DEF_CLASS(POPPLER_TYPE_ORIENTATION, "Orientation", RG_TARGET_NAMESPACE);
^
/Users/dtomono/.gem/ruby/2.2.0/gems/glib2-3.0.7/ext/glib2/rbgobject.h:41:26: note: expanded from macro 'G_DEF_CLASS'
(rbgobj_define_class(gtype, name, module, 0, 0, Qnil))
^
1 error generated.
make: *** [rbpoppler.o] Error 1
make failed, exit code 2
Gem files will remain installed in /usr/local/lib/ruby/gems/2.2.0/gems/poppler-3.0.7 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0/poppler-3.0.7/gem_make.out
$ cd /usr/local/Library/Formula/
$ git checkout 6f7b9d57b25451e811e8901c560d17abd7a464f9 poppler.rb
$ brew unlink poppler
$ brew install poppler
==> Downloading https://homebrew.bintray.com/bottles/poppler-0.38.0.yosemite.bot
######################################################################## 100.0%
==> Pouring poppler-0.38.0.yosemite.bottle.tar.gz
🍺 /usr/local/Cellar/poppler/0.38.0: 473 files, 23M
$ gem install poppler
Fetching: poppler-3.0.7.gem (100%)
Building native extensions. This could take a while...
Successfully installed poppler-3.0.7
Parsing documentation for poppler-3.0.7
Installing ri documentation for poppler-3.0.7
Done installing documentation for poppler after 0 seconds
1 gem installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment