From owner-freebsd-ruby@freebsd.org Sat Jul 8 02:12:44 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 571A7DB100A for ; Sat, 8 Jul 2017 02:12:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 3E5C46F47B for ; Sat, 8 Jul 2017 02:12:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 3D7DEDB1008; Sat, 8 Jul 2017 02:12:44 +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 3D0BDDB1007 for ; Sat, 8 Jul 2017 02:12:44 +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 2A94F6F47A for ; Sat, 8 Jul 2017 02:12:44 +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 v682Ch1r069547 for ; Sat, 8 Jul 2017 02:12:44 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 02:12:44 +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: swills@FreeBSD.org 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: resolution bug_status cc 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 02:12:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219418 Steve Wills changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed CC| |swills@FreeBSD.org --- Comment #1 from Steve Wills --- There are a number of things going on here. The libelf warning is just that= , a warning. It doesn't cause an error. The real issue is as you say the requirement on pkg-config 1.1.x. That was fixed in r445195, so I think this issue is solved now. Please let me know if you still have an issue. As a side note, there's another issue with nokogiri where it will build with -Werror and die due to a bug in ruby: "cc -I/usr/local/include/ruby-2.4//amd64-freebsd12 -I/usr/local/include/ruby-2.4//ruby/backward -I/usr/local/include/ruby-2.4/= -I. -I/usr/local/include -isystem /usr/local/include -O2 -pipe -fstack-prote= ctor -isystem /usr/local/include -fno-strict-aliasing -fPIC -Werror -c conftest.c" In file included from conftest.c:1: In file included from /usr/local/include/ruby-2.4/ruby.h:33: /usr/local/include/ruby-2.4/ruby/ruby.h:915:1: error: attribute '__deprecated__' is ignored, place it after "struct" to apply attribute to = type declaration [-Werror,-Wignored-attributes] DEPRECATED_TYPE(("RClass is internal use only"), ^ /usr/local/include/ruby-2.4//amd64-freebsd12/ruby/config.h:126:49: note: expanded from macro 'DEPRECATED_TYPE' #define DEPRECATED_TYPE(mesg,x) __attribute__ ((__deprecated__ mesg)) x ^ In file included from conftest.c:1: In file included from /usr/local/include/ruby-2.4/ruby.h:33: /usr/local/include/ruby-2.4/ruby/ruby.h:2152:1: error: unknown attribute '__error__' ignored [-Werror,-Wunknown-attributes] ERRORFUNC(("bad scan arg format"), int rb_scan_args_bad_format(const char*)= ); ^ /usr/local/include/ruby-2.4//amd64-freebsd12/ruby/config.h:131:43: note: expanded from macro 'ERRORFUNC' #define ERRORFUNC(mesg,x) __attribute__ ((__error__ mesg)) x ^ In file included from conftest.c:1: In file included from /usr/local/include/ruby-2.4/ruby.h:33: /usr/local/include/ruby-2.4/ruby/ruby.h:2153:1: error: unknown attribute '__error__' ignored [-Werror,-Wunknown-attributes] ERRORFUNC(("variable argument length doesn't match"), int rb_scan_args_length_mismatch(const char*,int)); ^ /usr/local/include/ruby-2.4//amd64-freebsd12/ruby/config.h:131:43: note: expanded from macro 'ERRORFUNC' #define ERRORFUNC(mesg,x) __attribute__ ((__error__ mesg)) x ^ 3 errors generated. checked program was: /* begin */ 1: #include "ruby.h" 2: 3: int main() {return 0;} /* end */ But this is only in the case where you try to build nokogiri without the --use-system-libraries flags and is really a bug in nokogiri for passing the -Werror flag, and a bug in ruby for bad use of C macros. --=20 You are receiving this mail because: You are the assignee for the bug.=