From owner-freebsd-ruby@freebsd.org Sat May 20 13:20:29 2017 Return-Path: Delivered-To: freebsd-ruby@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5849FD74D8A for ; Sat, 20 May 2017 13:20:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 41D571289 for ; Sat, 20 May 2017 13:20:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 413FAD74D87; Sat, 20 May 2017 13:20:29 +0000 (UTC) Delivered-To: ruby@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40F27D74D86 for ; Sat, 20 May 2017 13:20:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 25F531288 for ; Sat, 20 May 2017 13:20:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4KDKSIh091258 for ; Sat, 20 May 2017 13:20:29 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: ruby@FreeBSD.org Subject: [Bug 219418] textproc/rubygem-nokogiri: fails to build with elfutils installed Date: Sat, 20 May 2017 13:20:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lantw44@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 May 2017 13:20:29 -0000 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.=