When elinks-0.11.1 is emerged with ruby-1.8.5_pre1, the compile stops with the following in config.log: configure:17437: checking for Ruby header files configure:17442: result: /usr/lib/ruby/1.8/i686-linux configure:17496: gcc -o conftest -I/usr/lib/ruby/1.8/i686-linux -g -O2 -Wall -I /usr/include/js -I/usr/lib/ruby/1.8/i686-linux -Wl,-export-dynamic -rdynamic c onftest.c -Wl\,-R -Wl\,/usr/lib -L/usr/lib -L/usr/lib -lruby18 -ldl -lcrypt -lm -llua -llualib -lm -L/usr/lib -ljs -ldl -lgpm -lz -lbz2 -lidn -lexpat >&5 cc1: error: unrecognized command line option "-Wl\,-R" cc1: error: unrecognized command line option "-Wl\,/usr/lib" configure:17502: $? = 1 I tracked this down to the following file in ruby: ferret@skunk ~ $ grep LIBRUBYARG /usr/lib/ruby/1.8/i686-linux/rbconfig.rb CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_SHARED)" CONFIG["LIBRUBYARG_STATIC"] = "-l$(RUBY_SO_NAME)-static" CONFIG["LIBRUBYARG_SHARED"] = "-Wl\\,-R -Wl\\,$(libdir) -L$(libdir) -L. -l$(RUBY_SO_NAME)" ferret@skunk ~ $ Don't know anything much about ruby, so don't know how to fix this.
Removed every \\ from in front of all the commas in rbconfig.rb, and that seemed to fix it. Ruby package needs to not put them there! Will wait to see if anyone else has this same problem; if not I'll close.
I agree, but none of my Ruby installations have them there, so I'm unsure how they would have gotten there on your system.
Created attachment 91087 [details, diff] fix the issue I'm pretty confident it's an error in the way the mkconfig.rb script fiddles with config.status: it doesn't expect there to be any escaped commas in the var names. Hopefully the patch should be clear to anyone who knows ruby. Will continue to wait to see if it's just me that had this problem.
I can reproduce on this box, seems like related to autoconf 2.60. Caleb, which version of autoconf are you using right now?
< 2.60
Gotta love how GNU can break stuff with updates, sigh.
I'll send a mail to ruby-core and see if they will merge the patch (Diego, are you okay with the fix?)
I'm not sure about it just yet, i was going to look if cvs is fixed already, but hadn't had the space for a checkout yet.
*** Bug 143629 has been marked as a duplicate of this bug. ***
# grep LIBRUBYARG /usr/lib/ruby/1.8/i686-linux/rbconfig.rb CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_SHARED)" CONFIG["LIBRUBYARG_STATIC"] = "-l$(RUBY_SO_NAME)-static" CONFIG["LIBRUBYARG_SHARED"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) -L. -l$(RUBY_SO_NAME)" # qlist -CIev autoconf ruby dev-lang/ruby-1.8.5-r3 sys-devel/autoconf-2.13 sys-devel/autoconf-2.61 Can't reproduce this any more, should be probably closed.
mkconfig.rb was fixed in 1.8.5 by upstream closing