Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 452034 - sci-electronics/gnetman fails to build with dev-lang/tcl-8.6.0-r1 - ../tcl/tclwrap.c: error: ‘Tcl_Interp’ has no member named ‘{errorLine,result}’
Summary: sci-electronics/gnetman fails to build with dev-lang/tcl-8.6.0-r1 - ../tcl/tc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tcltk-8.6
  Show dependency tree
 
Reported: 2013-01-14 13:14 UTC by Janos Zsitvai
Modified: 2015-04-06 11:14 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
failed build log (sci-electronics:gnetman-0.0.1_pre20110124:20130113-163453.log,7.97 KB, text/plain)
2013-01-14 13:14 UTC, Janos Zsitvai
Details
gnetman-0.0.1_pre20110124.ebuild (gnetman-0.0.1_pre20110124.ebuild,1.14 KB, text/plain)
2013-02-24 15:05 UTC, Juergen Rose
Details
tcl-8.6.patch (tcl-8.6.patch,791 bytes, text/plain)
2013-02-24 15:06 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Janos Zsitvai 2013-01-14 13:14:58 UTC
Created attachment 335604 [details]
failed build log

Build fails with:
x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -mtune=native -floop-interchange -floop-strip-mine -floop-block -W -Wno-unused-parameter -Wno-unused-function -DDD_DEBUG -I../include -I../spice  ../tcl/tclwrap.c -o obj/tclwrap.o
../tcl/tclwrap.c: In function ‘tcRunScript’:
../tcl/tclwrap.c:49:16: error: ‘Tcl_Interp’ has no member named ‘errorLine’
../tcl/tclwrap.c:49:35: error: ‘Tcl_Interp’ has no member named ‘result’
../tcl/tclwrap.c: In function ‘tcRunInterpreter’:
../tcl/tclwrap.c:78:42: error: ‘Tcl_Interp’ has no member named ‘result’
make: *** [obj/tclwrap.o] Error 1
make: *** Waiting for unfinished jobs....

A workaround is to append "-DUSE_INTERP_ERRORLINE -DUSE_INTERP_RESULT" to CFLAGS, which changes the errors to deprecation warnings and lets the package build:
../tcl/tclwrap.c: In function ‘tcRunScript’:
../tcl/tclwrap.c:49:10: warning: ‘errorLine’ is deprecated (declared at /usr/include/tcl.h:524) [-Wdeprecated-declarations]
../tcl/tclwrap.c:49:10: warning: ‘result’ is deprecated (declared at /usr/include/tcl.h:507) [-Wdeprecated-declarations]
../tcl/tclwrap.c: In function ‘tcRunInterpreter’:
../tcl/tclwrap.c:78:9: warning: ‘result’ is deprecated (declared at /usr/include/tcl.h:507) [-Wdeprecated-declarations]
Comment 1 Juergen Rose 2013-01-20 16:38:54 UTC
I have the same error.
Comment 2 Juergen Rose 2013-02-24 15:05:24 UTC
Created attachment 339952 [details]
gnetman-0.0.1_pre20110124.ebuild

I can install sci-electronics/gnetman-0.0.1_pre2011012 with the attached ebuild.
Comment 3 Juergen Rose 2013-02-24 15:06:35 UTC
Created attachment 339958 [details]
tcl-8.6.patch

Patch file to emerge gnetman-0.0.1_pre20110124 with tcl-8.6
Comment 4 Dominique Michel 2013-11-08 22:06:49 UTC
(In reply to Juergen Rose from comment #3)
> Created attachment 339958 [details]
> tcl-8.6.patch
> 
> Patch file to emerge gnetman-0.0.1_pre20110124 with tcl-8.6

It work fine for me on ~amd64.

Thank you!
Comment 5 Jouni Rinne 2014-04-02 19:10:14 UTC
The ebuild above works here, too, with tcl-8.6. Any chances to include this patch in the official portage???
Comment 6 Olliver Schinagl 2014-06-16 20:11:40 UTC
Getting the same error still with sci-electronics/gnetman-0.0.1_pre20110124 and dev-lang/tcl-8.6.1-r1:0/8.6  USE="threads -debug" on gentoo 64bits
Comment 7 Kobboi 2015-04-05 20:34:46 UTC
Recently, tcl has been slotted. I now have both tcl-8.5 and tcl-8.6 installed, but the tclsh symlink still points to 8.6, so I still run in to this issue

lrwxrwxrwx 1 root root 8 Mar 21 13:48 /usr/bin/tclsh -> tclsh8.6

I am not sure how this should be handled properly. Patch gnetman to run tclsh8.5?
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-04-05 22:13:15 UTC
@tcltk, can you advise on the best solution here?
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2015-04-06 09:18:40 UTC
(In reply to Michał Górny from comment #8)
> @tcltk, can you advise on the best solution here?

The 8.5 SLOT is only meant for binary packages. Every other package should depend on SLOT=0
Comment 10 Justin Lecher (RETIRED) gentoo-dev 2015-04-06 09:19:39 UTC
(In reply to Juergen Rose from comment #3)
> Created attachment 339958 [details]
> tcl-8.6.patch
> 
> Patch file to emerge gnetman-0.0.1_pre20110124 with tcl-8.6

This patch looks good.
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-04-06 11:14:48 UTC
+  06 Apr 2015; Michał Górny <mgorny@gentoo.org>
+  +files/gnetman-0.0.1_pre20110124-tcl86.patch,
+  -gnetman-0.0.1_pre20041222.ebuild, -gnetman-0.0.1_pre20060522-r2.ebuild,
+  gnetman-0.0.1_pre20110124.ebuild:
+  Fix build with tcl-8.6, bug #452034. Drop old.