Date: Sat, 08 Jul 2017 02:12:44 +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-dtoon03edT@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-219418-21402@https.bugs.freebsd.org/bugzilla/> References: <bug-219418-21402@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219418 Steve Wills <swills@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed CC| |swills@FreeBSD.org --- Comment #1 from Steve Wills <swills@FreeBSD.org> --- 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219418-21402-dtoon03edT>