[Bug 219418] textproc/rubygem-nokogiri: fails to build with elfutils installed
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jul 8 14:39:33 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219418
--- Comment #2 from Ting-Wei Lan <lantw44 at 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
=> "-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=sandybridge
-fstack-protector -isystem /usr/local/include -fno-strict-aliasing -fPIC
conftest.c -L. -L/usr/local/lib -L. -fstack-protector -rdynamic -lruby23
-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:
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=sandybridge
-fstack-protector -isystem /usr/local/include -fno-strict-aliasing -fPIC
conftest.c -L. -L/usr/local/lib -L. -fstack-protector -rdynamic -lruby23
-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:
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. This
is why it can be built in poudriere without patching the version requirement 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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ruby
mailing list