dev-lang/ruby-2.1.0 fails to compile against tcl-8.6* with an linker error: x86_64-pc-linux-gnu-gcc -shared -o ../../.ext/x86_64-linux/tcltklib.so stubs.o tcltklib.o -L. -L../.. -L/usr/lib64 -L. -Wl,-O1 -Wl,--as-needed -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--no-undefined -lruby21 -lX11 -lm -ldl -L/usr/lib64 -Wl,-R/usr/lib64 -ltcl8.5 -lX11 -lm -ldl -L/usr/lib64 -Wl,-R/usr/lib64 -ltk8.5 -lX11 -lm -ldl -L/usr/lib64 -Wl,-R/usr/lib64 -ltcl8.5 -lX11 -lm -ldl -lpthread -lgmp -ldl -lcrypt -lm -lc tcltklib.o: In function `ip_cancel_eval_core': tcltklib.c:(.text+0x164f): undefined reference to `Tcl_CancelEval' collect2: error: ld returned 1 exit status Makefile:2052: recipe for target '../../.ext/x86_64-linux/tcltklib.so' failed make[2]: *** [../../.ext/x86_64-linux/tcltklib.so] Error 1 Note that on my system the shared libraries for tcl-8.5 are still preserved since sci-geosciences/grass also fails to compile against tcl-8.6 (#451358) Reproducible: Always
Created attachment 367064 [details] build.log
Created attachment 367066 [details] emerge --info
*** Bug 497128 has been marked as a duplicate of this bug. ***
*** Bug 498710 has been marked as a duplicate of this bug. ***
Can confirm this is happening on ~amd64 here too.
It seems that tcl/tk 8.6 is not yet supported by ruby. See URL for the upstream bug. I've adjusted the dependencies in dev-lang/ruby accordingly. I'll leave this bug open for now as a notice for the tcl/tk folks in Gentoo or until ruby upstream supports tcl/tk.
It looks like upstream has now fixed this for the 2.1.x and 2.2.x series, but the fixes are not in a release yet.
Created attachment 424378 [details, diff] ruby.patch Problem is fixed in last versions in 2.1, 2.2, 2.3 branches. I attach patch for ebuilds.
This looks fixed, 2.1.9 is the latest stable version in Gentoo which should contain the upstream fix. Can we close this bug or is there anything left to do?
(In reply to Hanno Boeck from comment #9) tk USE flag still must be restored. Currently ebuilds do not provide possibility of installing Ruby tk module. See patch in comment #8.
Thanks for the patches. ruby 2.1.10, ruby 2.2.5, and ruby 2.3.1 now have tk support again.