cloocher/xmlhasher

error: too many arguments to function call, expected 0, have 1

Closed this issue · 2 comments

  • mac os 10.13.4
  • ruby 2.5.1
Building native extensions. This could take a while...
ERROR:  Error installing xmlhasher:
	ERROR: Failed to build gem native extension.

    current directory: /Users/stallman/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/ox-2.2.1/ext/ox
/Users/stallman/.rbenv/versions/2.5.1/bin/ruby -r ./siteconf20180424-18232-68cbc5.rb extconf.rb
>>>>> Creating Makefile for ruby version 2.5.1 on x86_64-darwin17 <<<<<
creating Makefile

current directory: /Users/stallman/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/ox-2.2.1/ext/ox
make "DESTDIR=" clean

current directory: /Users/stallman/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/ox-2.2.1/ext/ox
make "DESTDIR="
compiling base64.c
compiling cache.c
cache.c:30:25: warning: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Wconstant-conversion]
    *d = (255 <= len) ? 255 : len;
       ~                ^~~
1 warning generated.
compiling cache8.c
compiling cache8_test.c
compiling cache_test.c
compiling dump.c
dump.c:747:30: error: too many arguments to function call, expected 0, have 1
            VALUE       beg = RSTRUCT_PTR(obj)[0];
                              ~~~~~~~~~~~~^~~~
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/ruby.h:1189:47: note: expanded from macro 'RSTRUCT_PTR'
#define RSTRUCT_PTR(st)         rb_struct_ptr(st)
                                ~~~~~~~~~~~~~ ^~
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:47:1: note: 'rb_struct_ptr' declared here
DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr);
^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:39:5: note: expanded from macro 'DECLARE_DEPRECATED_INTERNAL_FEATURE'
    NORETURN(ERRORFUNC(("deprecated internal function"), DEPRECATED(void func(void))))
    ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/x86_64-darwin17/ruby/config.h:123:21: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((__noreturn__)) x
                    ^
dump.c:747:18: warning: 'rb_struct_ptr' is deprecated [-Wdeprecated-declarations]
            VALUE       beg = RSTRUCT_PTR(obj)[0];
                              ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/ruby.h:1189:33: note: expanded from macro 'RSTRUCT_PTR'
#define RSTRUCT_PTR(st)         rb_struct_ptr(st)
                                ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:47:1: note: 'rb_struct_ptr' has been explicitly marked deprecated here
DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr);
^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:39:58: note: expanded from macro 'DECLARE_DEPRECATED_INTERNAL_FEATURE'
    NORETURN(ERRORFUNC(("deprecated internal function"), DEPRECATED(void func(void))))
                                                         ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/x86_64-darwin17/ruby/config.h:124:39: note: expanded from macro 'DEPRECATED'
#define DEPRECATED(x) __attribute__ ((__deprecated__)) x
                                      ^
dump.c:748:30: error: too many arguments to function call, expected 0, have 1
            VALUE       end = RSTRUCT_PTR(obj)[1];
                              ~~~~~~~~~~~~^~~~
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/ruby.h:1189:47: note: expanded from macro 'RSTRUCT_PTR'
#define RSTRUCT_PTR(st)         rb_struct_ptr(st)
                                ~~~~~~~~~~~~~ ^~
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:47:1: note: 'rb_struct_ptr' declared here
DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr);
^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:39:5: note: expanded from macro 'DECLARE_DEPRECATED_INTERNAL_FEATURE'
    NORETURN(ERRORFUNC(("deprecated internal function"), DEPRECATED(void func(void))))
    ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/x86_64-darwin17/ruby/config.h:123:21: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((__noreturn__)) x
                    ^
dump.c:748:18: warning: 'rb_struct_ptr' is deprecated [-Wdeprecated-declarations]
            VALUE       end = RSTRUCT_PTR(obj)[1];
                              ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/ruby.h:1189:33: note: expanded from macro 'RSTRUCT_PTR'
#define RSTRUCT_PTR(st)         rb_struct_ptr(st)
                                ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:47:1: note: 'rb_struct_ptr' has been explicitly marked deprecated here
DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr);
^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:39:58: note: expanded from macro 'DECLARE_DEPRECATED_INTERNAL_FEATURE'
    NORETURN(ERRORFUNC(("deprecated internal function"), DEPRECATED(void func(void))))
                                                         ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/x86_64-darwin17/ruby/config.h:124:39: note: expanded from macro 'DEPRECATED'
#define DEPRECATED(x) __attribute__ ((__deprecated__)) x
                                      ^
dump.c:749:31: error: too many arguments to function call, expected 0, have 1
            VALUE       excl = RSTRUCT_PTR(obj)[2];
                               ~~~~~~~~~~~~^~~~
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/ruby.h:1189:47: note: expanded from macro 'RSTRUCT_PTR'
#define RSTRUCT_PTR(st)         rb_struct_ptr(st)
                                ~~~~~~~~~~~~~ ^~
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:47:1: note: 'rb_struct_ptr' declared here
DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr);
^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:39:5: note: expanded from macro 'DECLARE_DEPRECATED_INTERNAL_FEATURE'
    NORETURN(ERRORFUNC(("deprecated internal function"), DEPRECATED(void func(void))))
    ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/x86_64-darwin17/ruby/config.h:123:21: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((__noreturn__)) x
                    ^
dump.c:749:19: warning: 'rb_struct_ptr' is deprecated [-Wdeprecated-declarations]
            VALUE       excl = RSTRUCT_PTR(obj)[2];
                               ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/ruby.h:1189:33: note: expanded from macro 'RSTRUCT_PTR'
#define RSTRUCT_PTR(st)         rb_struct_ptr(st)
                                ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:47:1: note: 'rb_struct_ptr' has been explicitly marked deprecated here
DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr);
^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:39:58: note: expanded from macro 'DECLARE_DEPRECATED_INTERNAL_FEATURE'
    NORETURN(ERRORFUNC(("deprecated internal function"), DEPRECATED(void func(void))))
                                                         ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/x86_64-darwin17/ruby/config.h:124:39: note: expanded from macro 'DEPRECATED'
#define DEPRECATED(x) __attribute__ ((__deprecated__)) x
                                      ^
dump.c:769:23: warning: 'rb_struct_ptr' is deprecated [-Wdeprecated-declarations]
            for (i = 0, vp = RSTRUCT_PTR(obj); i < cnt; i++, vp++) {
                             ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/ruby.h:1189:33: note: expanded from macro 'RSTRUCT_PTR'
#define RSTRUCT_PTR(st)         rb_struct_ptr(st)
                                ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:47:1: note: 'rb_struct_ptr' has been explicitly marked deprecated here
DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr);
^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:39:58: note: expanded from macro 'DECLARE_DEPRECATED_INTERNAL_FEATURE'
    NORETURN(ERRORFUNC(("deprecated internal function"), DEPRECATED(void func(void))))
                                                         ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/x86_64-darwin17/ruby/config.h:124:39: note: expanded from macro 'DEPRECATED'
#define DEPRECATED(x) __attribute__ ((__deprecated__)) x
                                      ^
dump.c:769:35: error: too many arguments to function call, expected 0, have 1
            for (i = 0, vp = RSTRUCT_PTR(obj); i < cnt; i++, vp++) {
                             ~~~~~~~~~~~~^~~~
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/ruby.h:1189:47: note: expanded from macro 'RSTRUCT_PTR'
#define RSTRUCT_PTR(st)         rb_struct_ptr(st)
                                ~~~~~~~~~~~~~ ^~
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:47:1: note: 'rb_struct_ptr' declared here
DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr);
^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward.h:39:5: note: expanded from macro 'DECLARE_DEPRECATED_INTERNAL_FEATURE'
    NORETURN(ERRORFUNC(("deprecated internal function"), DEPRECATED(void func(void))))
    ^
/Users/stallman/.rbenv/versions/2.5.1/include/ruby-2.5.0/x86_64-darwin17/ruby/config.h:123:21: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((__noreturn__)) x
                    ^
4 warnings and 4 errors generated.
make: *** [dump.o] Error 1

Right now xmlhasher used ox version 2.10.0, so this issue will not relevant now.