Bug 902561
Summary: | build fails with tcl 8.6: error: ‘Tcl_Interp’ has no member named ‘result’ | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | redhat | ||||||||
Component: | newt | Assignee: | Miroslav Lichvar <mlichvar> | ||||||||
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | rawhide | CC: | kalvdans, mlichvar, sato_ichi | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2013-03-20 15:44:57 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
redhat
2013-01-21 23:51:43 UTC
Thanks for the report. In git, the CPPFLAGS now have -DUSE_INTERP_RESULT when building with tcl support. Patches removing the use of the result field are welcome. Created attachment 1610645 [details]
Patch to make whiptcl.c work with Tcl 8.6
Replaced interp->result calls with updated Tcl functions
Created attachment 1610646 [details]
Patch for newt.spec to include whiptcl.so
Enables Tcl support for newt
Created attachment 1610649 [details]
Tcl script to test whiptcl functionality in Newt
Thanks for the patch. I'm getting different warnings like: whiptcl.c:141:10: warning: passing argument 1 of ‘sprintf’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] whiptcl.c:149:27: warning: passing argument 2 of ‘Tcl_SetObjResult’ from incompatible pointer type [-Wincompatible-pointer-types] I'm not familiar with the API and I'm not sure if it would be ok to just cast the arguments. If you have a different patch, please submit it on https://pagure.io/newt. It's OK to ignore those warnings. I built the newt, newt-devel, python2-newt and python3-newt packages for Fedora 30 from the newt SRPM using that patch and the Tcl functionality worked fine. |