Date: Sat, 20 May 2017 13:20:28 +0000 From: bugzilla-noreply@freebsd.org To: ruby@FreeBSD.org Subject: [Bug 219418] textproc/rubygem-nokogiri: fails to build with elfutils installed Message-ID: <bug-219418-21402@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219418 Bug ID: 219418 Summary: textproc/rubygem-nokogiri: fails to build with elfutils installed Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ruby@FreeBSD.org Reporter: lantw44@gmail.com Flags: maintainer-feedback?(ruby@FreeBSD.org) Assignee: ruby@FreeBSD.org devel/elfutils port installs a shared library called libelf.so.1, causing t= he linker to print warnings when linking test programs. /usr/bin/ld: warning: libelf.so.2, needed by /usr/local/lib/libruby23.so, m= ay conflict with libelf.so.1 This causes pkg_config function call in ext/nokogiri/extconf.rb to return n= il, so it fallbacks to rubygem-pkg-config. However, the rubygem-pkg-config 1.2.0 provided by ports cannot pass the version check. gem 'pkg-config', (gem_ver=3D'~> 1.1.7') =3D=3D=3D> Building for rubygem-nokogiri-1.7.2 Successfully built RubyGem Name: nokogiri Version: 1.7.2 File: nokogiri-1.7.2.gem =3D=3D=3D> Staging for rubygem-nokogiri-1.7.2 =3D=3D=3D> rubygem-nokogiri-1.7.2 depends on package: rubygem-pkg-config>= =3D1.1.7 - found =3D=3D=3D> rubygem-nokogiri-1.7.2 depends on file: /usr/local/bin/ruby23 = - found =3D=3D=3D> rubygem-nokogiri-1.7.2 depends on file: /usr/local/bin/gem23 -= found =3D=3D=3D> Generating temporary packing list (cd /wrkdirs/usr/ports/textproc/rubygem-nokogiri/work/nokogiri-1.7.2; /usr/bin/env RB_USER_INSTALL=3Dyes LANG=3Den_US.UTF-8 LC_ALL=3Den_US.UTF-8 /usr/local/bin/gem23 install -l --no-update-sources --install-dir /wrkdirs/usr/ports/textproc/rubygem-nokogiri/work/stage/usr/local/lib/ruby/= gems/2.3 --ignore-dependencies --bindir=3D/wrkdirs/usr/ports/textproc/rubygem-nokogiri/work/stage/usr/loca= l/bin --rdoc --ri nokogiri-1.7.2.gem -- --build-args --use-system-libraries) Building native extensions with: '--build-args --use-system-libraries' This could take a while... ERROR: Error installing nokogiri-1.7.2.gem: ERROR: Failed to build gem native extension. current directory: /wrkdirs/usr/ports/textproc/rubygem-nokogiri/work/stage/usr/local/lib/ruby/= gems/2.3/gems/nokogiri-1.7.2/ext/nokogiri /usr/local/bin/ruby23 -r ./siteconf20170520-5753-1cepj95.rb extconf.rb --build-args --use-system-libraries checking if the C compiler accepts ... yes Building nokogiri using system libraries. pkg-config could not be used to find libxml-2.0 Please install either `pkg-config` or the pkg-config gem per gem install pkg-config -v "~> 1.1.7" pkg-config could not be used to find libxslt Please install either `pkg-config` or the pkg-config gem per gem install pkg-config -v "~> 1.1.7" pkg-config could not be used to find libexslt Please install either `pkg-config` or the pkg-config gem per gem install pkg-config -v "~> 1.1.7" ERROR: cannot discover where libxml2 is located on your system. please make sure `pkg-config` is installed. *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You m= ay need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=3D${opt-dir}/include --with-opt-lib --without-opt-lib=3D${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=3D. --curdir --ruby=3D/usr/local/bin/$(RUBY_BASE_NAME)23 --help --clean --use-system-libraries --with-zlib-dir --without-zlib-dir --with-zlib-include --without-zlib-include=3D${zlib-dir}/include --with-zlib-lib --without-zlib-lib=3D${zlib-dir}/lib --with-xml2-dir --without-xml2-dir --with-xml2-include --without-xml2-include=3D${xml2-dir}/include --with-xml2-lib --without-xml2-lib=3D${xml2-dir}/lib --with-libxml-2.0-config --without-libxml-2.0-config --with-pkg-config --without-pkg-config --with-xslt-dir --without-xslt-dir --with-xslt-include --without-xslt-include=3D${xslt-dir}/include --with-xslt-lib --without-xslt-lib=3D${xslt-dir}/lib --with-libxslt-config --without-libxslt-config --with-exslt-dir --without-exslt-dir --with-exslt-include --without-exslt-include=3D${exslt-dir}/include --with-exslt-lib --without-exslt-lib=3D${exslt-dir}/lib --with-libexslt-config --without-libexslt-config To see why this extension failed to compile, please check the mkmf.log which can be found here: =20 /wrkdirs/usr/ports/textproc/rubygem-nokogiri/work/stage/usr/local/lib/ruby/= gems/2.3/extensions/amd64-freebsd-11/2.3/nokogiri-1.7.2/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /wrkdirs/usr/ports/textproc/rubygem-nokogiri/work/stage/usr/local/lib/ruby/= gems/2.3/gems/nokogiri-1.7.2 for inspection. Results logged to /wrkdirs/usr/ports/textproc/rubygem-nokogiri/work/stage/usr/local/lib/ruby/= gems/2.3/extensions/amd64-freebsd-11/2.3/nokogiri-1.7.2/gem_make.out *** Error code 1 Stop. make: stopped in /usr/ports/textproc/rubygem-nokogiri --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219418-21402>