Skip to content

Instantly share code, notes, and snippets.

@plentz
Created March 25, 2012 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plentz/2197716 to your computer and use it in GitHub Desktop.
Save plentz/2197716 to your computer and use it in GitHub Desktop.
~/Projects/opensource/jruby_report (master) $ gem install yajl-ruby
Building native extensions. This could take a while...
ERROR: Error installing yajl-ruby:
ERROR: Failed to build gem native extension.
/Users/plentz/.rvm/rubies/jruby-1.6.7/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library very well.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
creating Makefile
make
cc -I. -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -Wall -funroll-loops -arch x86_64 -c yajl.c
cc -I. -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -Wall -funroll-loops -arch x86_64 -c yajl_alloc.c
cc -I. -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -Wall -funroll-loops -arch x86_64 -c yajl_buf.c
cc -I. -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -Wall -funroll-loops -arch x86_64 -c yajl_encode.c
cc -I. -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -Wall -funroll-loops -arch x86_64 -c yajl_ext.c
cc -I. -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -Wall -funroll-loops -arch x86_64 -c yajl_gen.c
yajl_gen.c:295:5: warning: implicit conversion from enumeration type 'yajl_gen_state' to different enumeration type 'yajl_gen_status' [-Wconversion]
DECREMENT_DEPTH;
^~~~~~~~~~~~~~~
yajl_gen.c:181:48: note: expanded from macro 'DECREMENT_DEPTH'
if (--(g->depth) >= YAJL_MAX_DEPTH) return yajl_gen_error;
~~~~~~ ^~~~~~~~~~~~~~
yajl_gen.c:321:5: warning: implicit conversion from enumeration type 'yajl_gen_state' to different enumeration type 'yajl_gen_status' [-Wconversion]
DECREMENT_DEPTH;
^~~~~~~~~~~~~~~
yajl_gen.c:181:48: note: expanded from macro 'DECREMENT_DEPTH'
if (--(g->depth) >= YAJL_MAX_DEPTH) return yajl_gen_error;
~~~~~~ ^~~~~~~~~~~~~~
2 warnings generated.
cc -I. -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -Wall -funroll-loops -arch x86_64 -c yajl_lex.c
cc -I. -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -Wall -funroll-loops -arch x86_64 -c yajl_parser.c
cc -I. -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include -I/Users/plentz/.rvm/rubies/jruby-1.6.7/lib/native/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -Wall -funroll-loops -arch x86_64 -c yajl_version.c
cc -dynamic -bundle -undefined dynamic_lookup -o yajl.bundle yajl.o yajl_alloc.o yajl_buf.o yajl_encode.o yajl_ext.o yajl_gen.o yajl_lex.o yajl_parser.o yajl_version.o -L"." -L"/Users/plentz/.rvm/rubies/jruby-1.6.7/lib" -bundle -framework JavaVM -Wl,-syslibroot, -mmacosx-version-min=10.5 -arch x86_64
ld: library not found for -lbundle1.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [yajl.bundle] Error 1
Gem files will remain installed in /Users/plentz/.rvm/gems/jruby-1.6.7/gems/yajl-ruby-1.1.0 for inspection.
Results logged to /Users/plentz/.rvm/gems/jruby-1.6.7/gems/yajl-ruby-1.1.0/ext/yajl/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment