From owner-freebsd-ruby@freebsd.org Sat Jul 8 14:39:33 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 13834D9B6E7 for ; Sat, 8 Jul 2017 14:39:33 +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 EF39982A4B for ; Sat, 8 Jul 2017 14:39:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id EB7C6D9B6E6; Sat, 8 Jul 2017 14:39:32 +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 EAED1D9B6E5 for ; Sat, 8 Jul 2017 14:39:32 +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 D897C82A4A for ; Sat, 8 Jul 2017 14:39:32 +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 v68EdW1u094064 for ; Sat, 8 Jul 2017 14:39:32 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, 08 Jul 2017 14:39:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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, 08 Jul 2017 14:39:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219418 --- Comment #2 from Ting-Wei Lan --- (In reply to Steve Wills from comment #1) > There are a number of things going on here. The libelf warning is just > that, a warning. It doesn't cause an error. It did cause error when using pkg_config function in mkmf. You can test it = by creating a wrapper script called 'cc' and put it in PATH, #!/bin/sh echo 'warning: Hello World!' 1>&2 exec /usr/bin/cc "$@" and write a simple program printing the result of pkg_config call. require 'mkmf' require 'pp' pp pkg_config 'zlib' You will see 'nil' because of the warning message. The content of mkmf.log: "pkg-config --exists zlib" | pkg-config --libs zlib =3D> "-lz \n" "cc -o conftest -I/usr/local/include/ruby-2.3//amd64-freebsd11 -I/usr/local/include/ruby-2.3//ruby/backward -I/usr/local/include/ruby-2.3/= -I. -I/usr/local/include -isystem /usr/local/include -O2 -pipe -march=3Dsandy= bridge -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/local/lib -L. -fstack-protector -rdynamic -lru= by23 -lelf -lunwind -lexecinfo -lprocstat -lcrypt -lm -lpthread -L/usr/local/lib -L/usr/local/lib -lc" warning: Hello World! checked program was: /* begin */ 1: #include "ruby.h" 2:=20 3: int main(int argc, char **argv) 4: { 5: return 0; 6: } /* end */ "cc -o conftest -I/usr/local/include/ruby-2.3//amd64-freebsd11 -I/usr/local/include/ruby-2.3//ruby/backward -I/usr/local/include/ruby-2.3/= -I. -I/usr/local/include -isystem /usr/local/include -O2 -pipe -march=3Dsandy= bridge -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/local/lib -L. -fstack-protector -rdynamic -lru= by23 -lz -lelf -lunwind -lexecinfo -lprocstat -lcrypt -lm -lpthread -L/usr/local= /lib -L/usr/local/lib -lc" warning: Hello World! checked program was: /* begin */ 1: #include "ruby.h" 2:=20 3: int main(int argc, char **argv) 4: { 5: return 0; 6: } /* end */ package configuration for zlib is not found > The real issue is as you say the requirement on pkg-config 1.1.x. If the pkg_config check didn't fail, it would not use rubygem-pkg-config. T= his is why it can be built in poudriere without patching the version requiremen= t of rubygem-pkg-config. > That was fixed in r445195, so I think this issue is solved now. > Please let me know if you still have an issue. Yes, it is fixed now. --=20 You are receiving this mail because: You are the assignee for the bug.=