title: Can't install ruby gem xmlparser
body: <p>I am trying to install this gem <code>xmlparser</code> so that I can use the class XSD::QName to read from XML.</p>
  
  <p>It asked me to install <code>expat</code> and <code>xmlparse</code>, and then after several other packages and attempts I have this new problem:</p>
  
  <p><a href="https://i.stack.imgur.com/ZYXy6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZYXy6.png" alt="enter image description here"></a></p>
  
  <p>"Failed to build gem native extension</p>
  
  <p>Checking for ntohl() in -lsocket... no</p>
  
  <p>etc etc</p>
  
  <p>etc etc</p>
  
  <p>make failed, exit code 2"</p>
  
  <p><strong>@edit</strong></p>
  
  <pre><code>Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
  
      /usr/bin/ruby2.1 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
  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: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:224: recipe for target 'xmlparser.o' failed
  make: *** [xmlparser.o] Error 1
  
  make failed, exit code 2
  
  Gem files will remain installed in /tmp/bundler20151111-18724-f3sw3fxmlparser-0.7.2.1/gems/xmlparser-0.7.2.1 for inspection.
  Results logged to /tmp/bundler20151111-18724-f3sw3fxmlparser-0.7.2.1/extensions/x86-linux/2.1.0/xmlparser-0.7.2.1/gem_make.out
  </code></pre>