[Reproducible-builds] Bug#827835: ruby-xmlparser: FTBFS: xmlparser.so: undefined symbol: ENC_TO_ENCINDEX - [..]/ruby-xmlparser/ruby-xmlparser-0.7.3/debian/ruby-xmlparser/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.3.0/xmlparser.so (LoadError)

Chris Lamb lamby at debian.org
Tue Jun 21 15:09:07 UTC 2016


Source: ruby-xmlparser
Version: 0.7.3-2
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

ruby-xmlparser fails to build from source in unstable/amd64:

  [..]

     GET_PARSER(recv, parser);
                ^
  /usr/include/ruby-2.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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.3.0/ruby/ruby.h:1205: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.3.0/ruby/ruby.h:1397: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:1806:16: warning: implicit declaration of function 'ENC_TO_ENCINDEX' [-Wimplicit-function-declaration]
         if ((int)ENC_TO_ENCINDEX(enc) != rb_ascii8bit_encindex()) {
                  ^
  rm -f xmlparser.so
  gcc -shared -o xmlparser.so xmlparser.o -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    -lruby-2.3 -lexpat  -lpthread -lgmp -ldl -lcrypt -lm   -lc
  make[2]: Leaving directory '/home/lamby/temp/cdt.20160621160805.waMuOdADJH.ruby-xmlparser/ruby-xmlparser-0.7.3/ext'
  current directory: /home/lamby/temp/cdt.20160621160805.waMuOdADJH.ruby-xmlparser/ruby-xmlparser-0.7.3/ext
  make V=1 "DESTDIR=" install
  make[2]: Entering directory '/home/lamby/temp/cdt.20160621160805.waMuOdADJH.ruby-xmlparser/ruby-xmlparser-0.7.3/ext'
  /bin/mkdir -p . ./.gem.20160621-4068-3dd2un
  exit > .RUBYARCHDIR.time
  /usr/bin/install -c -m 0755 xmlparser.so ./.gem.20160621-4068-3dd2un
  make[2]: Leaving directory '/home/lamby/temp/cdt.20160621160805.waMuOdADJH.ruby-xmlparser/ruby-xmlparser-0.7.3/ext'
  To see why this extension failed to compile, please check the mkmf.log which can be found here:
    /home/lamby/temp/cdt.20160621160805.waMuOdADJH.ruby-xmlparser/ruby-xmlparser-0.7.3/debian/ruby-xmlparser/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.3.0/mkmf.log
  rm -f /home/lamby/temp/cdt.20160621160805.waMuOdADJH.ruby-xmlparser/ruby-xmlparser-0.7.3/debian/ruby-xmlparser/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.3.0/mkmf.log
  
  ┌──────────────────────────────────────────────────────────────────────────────┐
  │ Install Rubygems integration metadata                                        │
  └──────────────────────────────────────────────────────────────────────────────┘
  
  /usr/bin/ruby2.3 /usr/bin/gem2deb-test-runner
  
  ┌──────────────────────────────────────────────────────────────────────────────┐
  │ Run tests for ruby2.3 from debian/ruby-tests.rb                              │
  └──────────────────────────────────────────────────────────────────────────────┘
  
  RUBYLIB=/home/lamby/temp/cdt.20160621160805.waMuOdADJH.ruby-xmlparser/ruby-xmlparser-0.7.3/debian/ruby-xmlparser/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.3.0:/home/lamby/temp/cdt.20160621160805.waMuOdADJH.ruby-xmlparser/ruby-xmlparser-0.7.3/debian/ruby-xmlparser/usr/lib/ruby/vendor_ruby:. GEM_PATH=/home/lamby/.gem/ruby/2.3.0:/var/lib/gems/2.3.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0:/usr/share/rubygems-integration/2.3.0:/usr/share/rubygems-integration/all ruby2.3 debian/ruby-tests.rb
  /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': /home/lamby/temp/cdt.20160621160805.waMuOdADJH.ruby-xmlparser/ruby-xmlparser-0.7.3/debian/ruby-xmlparser/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.3.0/xmlparser.so: undefined symbol: ENC_TO_ENCINDEX - /home/lamby/temp/cdt.20160621160805.waMuOdADJH.ruby-xmlparser/ruby-xmlparser-0.7.3/debian/ruby-xmlparser/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.3.0/xmlparser.so (LoadError)
  	from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  	from /home/lamby/temp/cdt.20160621160805.waMuOdADJH.ruby-xmlparser/ruby-xmlparser-0.7.3/debian/ruby-xmlparser/usr/lib/ruby/vendor_ruby/xml/parser.rb:5:in `<top (required)>'
  	from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  	from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  	from debian/ruby-tests.rb:1:in `<main>'
  ERROR: Test "ruby2.3" failed. Exiting.
  dh_auto_install: dh_ruby --install /home/lamby/temp/cdt.20160621160805.waMuOdADJH.ruby-xmlparser/ruby-xmlparser-0.7.3/debian/ruby-xmlparser returned exit code 1
  debian/rules:18: recipe for target 'override_dh_auto_install' failed
  make[1]: *** [override_dh_auto_install] Error 1
  make[1]: Leaving directory '/home/lamby/temp/cdt.20160621160805.waMuOdADJH.ruby-xmlparser/ruby-xmlparser-0.7.3'
  debian/rules:15: recipe for target 'binary' failed
  make: *** [binary] Error 2

  [..]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ruby-xmlparser.0.7.3-2.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 5944 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160621/9f53555f/attachment.obj>


More information about the Reproducible-builds mailing list