Skip to content

Instantly share code, notes, and snippets.

@qknight
Created June 9, 2018 10:30
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 qknight/d19930c11f96da1d7a4af9c4bc792d8f to your computer and use it in GitHub Desktop.
Save qknight/d19930c11f96da1d7a4af9c4bc792d8f to your computer and use it in GitHub Desktop.
on ubuntu 18.04 LTS i do this:
gem install slanger
Building native extensions. This could take a while...
ERROR: Error installing slanger:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/oj-2.12.14/ext/oj
/usr/bin/ruby2.5 -r ./siteconf20180609-3115-hpt4bd.rb extconf.rb
>>>>> Creating Makefile for ruby version 2.5.1 on x86_64-linux-gnu <<<<<
creating Makefile
current directory: /var/lib/gems/2.5.0/gems/oj-2.12.14/ext/oj
make "DESTDIR=" clean
current directory: /var/lib/gems/2.5.0/gems/oj-2.12.14/ext/oj
make "DESTDIR="
compiling cache8.c
compiling circarray.c
compiling compat.c
compiling dump.c
dump.c: In function ‘dump_struct_obj’:
dump.c:1776:2: warning: ‘rb_struct_ptr’ is deprecated [-Wdeprecated-declarations]
for (i = (int)RSTRUCT_LEN(obj), vp = RSTRUCT_PTR(obj); 0 < i; i--, vp++) {
^~~
In file included from /usr/include/ruby-2.5.0/ruby/ruby.h:24:0,
from /usr/include/ruby-2.5.0/ruby.h:33,
from oj.h:43,
from dump.c:43:
/usr/include/ruby-2.5.0/ruby/backward.h:47:37: note: declared here
DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr);
^
/usr/include/x86_64-linux-gnu/ruby-2.5.0/ruby/config.h:129:52: note: in definition of macro ‘NORETURN’
#define NORETURN(x) __attribute__ ((__noreturn__)) x
^
/usr/include/ruby-2.5.0/ruby/backward.h:39:14: note: in expansion of macro ‘ERRORFUNC’
NORETURN(ERRORFUNC(("deprecated internal function"), DEPRECATED(void func(void))))
^~~~~~~~~
/usr/include/ruby-2.5.0/ruby/backward.h:39:58: note: in expansion of macro ‘DEPRECATED’
NORETURN(ERRORFUNC(("deprecated internal function"), DEPRECATED(void func(void))))
^~~~~~~~~~
/usr/include/ruby-2.5.0/ruby/backward.h:47:1: note: in expansion of macro ‘DECLARE_DEPRECATED_INTERNAL_FEATURE’
DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr);
^
In file included from /usr/include/ruby-2.5.0/ruby.h:33:0,
from oj.h:43,
from dump.c:43:
/usr/include/ruby-2.5.0/ruby/ruby.h:1189:33: error: too many arguments to function ‘rb_struct_ptr’
#define RSTRUCT_PTR(st) rb_struct_ptr(st)
^
dump.c:1776:39: note: in expansion of macro ‘RSTRUCT_PTR’
for (i = (int)RSTRUCT_LEN(obj), vp = RSTRUCT_PTR(obj); 0 < i; i--, vp++) {
^~~~~~~~~~~
In file included from /usr/include/ruby-2.5.0/ruby/ruby.h:24:0,
from /usr/include/ruby-2.5.0/ruby.h:33,
from oj.h:43,
from dump.c:43:
/usr/include/ruby-2.5.0/ruby/backward.h:47:37: note: declared here
DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr);
^
/usr/include/x86_64-linux-gnu/ruby-2.5.0/ruby/config.h:129:52: note: in definition of macro ‘NORETURN’
#define NORETURN(x) __attribute__ ((__noreturn__)) x
^
/usr/include/ruby-2.5.0/ruby/backward.h:39:14: note: in expansion of macro ‘ERRORFUNC’
NORETURN(ERRORFUNC(("deprecated internal function"), DEPRECATED(void func(void))))
^~~~~~~~~
/usr/include/ruby-2.5.0/ruby/backward.h:39:58: note: in expansion of macro ‘DEPRECATED’
NORETURN(ERRORFUNC(("deprecated internal function"), DEPRECATED(void func(void))))
^~~~~~~~~~
/usr/include/ruby-2.5.0/ruby/backward.h:47:1: note: in expansion of macro ‘DECLARE_DEPRECATED_INTERNAL_FEATURE’
DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr);
^
dump.c:1776:37: error: void value not ignored as it ought to be
for (i = (int)RSTRUCT_LEN(obj), vp = RSTRUCT_PTR(obj); 0 < i; i--, vp++) {
^
Makefile:242: recipe for target 'dump.o' failed
make: *** [dump.o] Error 1
make failed, exit code 2
Gem files will remain installed in /var/lib/gems/2.5.0/gems/oj-2.12.14 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/oj-2.12.14/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment