Skip to content

v1.0.2 broken on ruby2.2 and ruby2.3 #19

@shayangz

Description

@shayangz

We are picking up the latest release and it's broken on ruby2.2 and ruby2.3 on ubuntu 16.04

---- Begin output of /usr/bin/gem install sensu-plugins-supervisor -q --no-rdoc --no-ri -v "1.0.2" --source=https://www.rubygems.org ----
    STDOUT: Building native extensions.  This could take a while...
    STDERR: ERROR:  Error installing sensu-plugins-supervisor:
    	ERROR: Failed to build gem native extension.

        /usr/bin/ruby2.2 -r ./siteconf20170602-10640-1jy0la.rb extconf.rb
    checking for expat.h... yes
    checking for XML_ParserCreate() in -lexpat... yes
    checking for XML_SetNotStandaloneHandler()... yes
    checking for XML_SetParamEntityParsing()... yes
    checking for XML_SetDoctypeDeclHandler()... yes
    checking for XML_ParserReset()... yes
    checking for XML_SetSkippedEntityHandler()... yes
    checking for XML_GetFeatureList()... yes
    checking for XML_UseForeignDTD()... yes
    checking for XML_GetIdAttributeIndex()... yes
    checking for ntohl() in -lsocket... no
    creating Makefile

    make "DESTDIR=" clean

    make "DESTDIR="
    compiling xmlparser.c
    In file included from /usr/include/ruby-2.2.0/ruby.h:33:0,
                     from xmlparser.c:44:
    xmlparser.c: In function ‘iterStartElementHandler’:
    xmlparser.c:231:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:231:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterEndElementHandler’:
    xmlparser.c:257:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:257:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterCharacterDataHandler’:
    xmlparser.c:272:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:272:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterProcessingInstructionHandler’:
    xmlparser.c:287:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:287:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterDefaultHandler’:
    xmlparser.c:303:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:303:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterUnparsedEntityDeclHandler’:
    xmlparser.c:324:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:324:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterNotationDeclHandler’:
    xmlparser.c:348:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:348:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterCommentHandler’:
    xmlparser.c:398:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:398:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterStartCdataSectionHandler’:
    xmlparser.c:411:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:411:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterEndCdataSectionHandler’:
    xmlparser.c:423:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:423:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterStartNamespaceDeclHandler’:
    xmlparser.c:437:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:437:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterEndNamespaceDeclHandler’:
    xmlparser.c:452:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:452:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterStartDoctypeDeclHandler’:
    xmlparser.c:479:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:479:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterEndDoctypeDeclHandler’:
    xmlparser.c:499:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:499:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterElementDeclHandler’:
    xmlparser.c:551:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:551:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterAttlistDeclHandler’:
    xmlparser.c:573:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:573:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterXmlDeclHandler’:
    xmlparser.c:597:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:597:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterEntityDeclHandler’:
    xmlparser.c:625:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:625:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘iterSkippedEntityHandler’:
    xmlparser.c:695:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:695:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myStartElementHandler’:
    xmlparser.c:716:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:716:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myEndElementHandler’:
    xmlparser.c:737:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:737:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myCharacterDataHandler’:
    xmlparser.c:748:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:748:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myProcessingInstructionHandler’:
    xmlparser.c:759:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:759:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myDefaultHandler’:
    xmlparser.c:771:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:771:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myDefaultExpandHandler’:
    xmlparser.c:783:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:783:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myUnparsedEntityDeclHandler’:
    xmlparser.c:798:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:798:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myNotationDeclHandler’:
    xmlparser.c:815:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:815:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myCommentHandler’:
    xmlparser.c:852:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:852:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myStartCdataSectionHandler’:
    xmlparser.c:861:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:861:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myEndCdataSectionHandler’:
    xmlparser.c:869:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:869:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myStartNamespaceDeclHandler’:
    xmlparser.c:879:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:879:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myEndNamespaceDeclHandler’:
    xmlparser.c:890:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:890:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myNotStandaloneHandler’:
    xmlparser.c:901:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:901:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myStartDoctypeDeclHandler’:
    xmlparser.c:922:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:922:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myEndDoctypeDeclHandler’:
    xmlparser.c:940:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:940:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myElementDeclHandler’:
    xmlparser.c:955:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:955:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myAttlistDeclHandler’:
    xmlparser.c:970:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:970:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myXmlDeclHandler’:
    xmlparser.c:986:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:986:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myEntityDeclHandler’:
    xmlparser.c:1005:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:1005:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘myUnknownEncodingHandler’:
    xmlparser.c:1299:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:1299:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘mySkippedEntityHandler’:
    xmlparser.c:1355:14: warning: passing argument 1 of ‘rb_data_object_get’ makes integer from pointer without a cast [-Wint-conversion]
       GET_PARSER(recv, parser);
                  ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1051:41: note: in definition of macro ‘Data_Get_Struct’
         ((sval) = (type*)rb_data_object_get(obj))
                                             ^
    xmlparser.c:1355:3: note: in expansion of macro ‘GET_PARSER’
       GET_PARSER(recv, parser);
       ^
    /usr/include/ruby-2.2.0/ruby/ruby.h:1204:1: note: expected ‘VALUE {aka long unsigned int}’ but argument is of type ‘void *’
     rb_data_object_get(VALUE obj)
     ^
    xmlparser.c: In function ‘XMLParser_parse’:
    xmlparser.c:1783:2: error: format not a string literal and no format arguments [-Werror=format-security]
      rb_raise(eXMLParserError, (char*)errStr);
      ^
    xmlparser.c:1806:16: warning: implicit declaration of function ‘ENC_TO_ENCINDEX’ [-Wimplicit-function-declaration]
           if ((int)ENC_TO_ENCINDEX(enc) != rb_ascii8bit_encindex()) {
                    ^
    xmlparser.c:1832:5: error: format not a string literal and no format arguments [-Werror=format-security]
         rb_raise(eXMLParserError, (char*)errStr);
         ^
    cc1: some warnings being treated as errors
    Makefile:238: recipe for target 'xmlparser.o' failed
    make: *** [xmlparser.o] Error 1

    make failed, exit code 2
``

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions