[Bug 219418] textproc/rubygem-nokogiri: fails to build with elfutils installed
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat May 20 13:20:29 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219418
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 at FreeBSD.org
Reporter: lantw44 at gmail.com
Flags: maintainer-feedback?(ruby at FreeBSD.org)
Assignee: ruby at FreeBSD.org
devel/elfutils port installs a shared library called libelf.so.1, causing the
linker to print warnings when linking test programs.
/usr/bin/ld: warning: libelf.so.2, needed by /usr/local/lib/libruby23.so, may
conflict with libelf.so.1
This causes pkg_config function call in ext/nokogiri/extconf.rb to return nil,
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='~> 1.1.7')
===> Building for rubygem-nokogiri-1.7.2
Successfully built RubyGem
Name: nokogiri
Version: 1.7.2
File: nokogiri-1.7.2.gem
===> Staging for rubygem-nokogiri-1.7.2
===> rubygem-nokogiri-1.7.2 depends on package: rubygem-pkg-config>=1.1.7 -
found
===> rubygem-nokogiri-1.7.2 depends on file: /usr/local/bin/ruby23 - found
===> rubygem-nokogiri-1.7.2 depends on file: /usr/local/bin/gem23 - found
===> Generating temporary packing list
(cd /wrkdirs/usr/ports/textproc/rubygem-nokogiri/work/nokogiri-1.7.2;
/usr/bin/env RB_USER_INSTALL=yes LANG=en_US.UTF-8 LC_ALL=en_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=/wrkdirs/usr/ports/textproc/rubygem-nokogiri/work/stage/usr/local/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 may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)23
--help
--clean
--use-system-libraries
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${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=${xslt-dir}/include
--with-xslt-lib
--without-xslt-lib=${xslt-dir}/lib
--with-libxslt-config
--without-libxslt-config
--with-exslt-dir
--without-exslt-dir
--with-exslt-include
--without-exslt-include=${exslt-dir}/include
--with-exslt-lib
--without-exslt-lib=${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:
/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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ruby
mailing list