Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Jul 2017 14:39:33 +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-fNPy3iQNsk@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

--- Comment #2 from Ting-Wei Lan <lantw44@gmail.com> ---
(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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219418-21402-fNPy3iQNsk>