Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79474 - tix window creation fails with unresolved symbol (XLowerWindow) AGAIN
Summary: tix window creation fails with unresolved symbol (XLowerWindow) AGAIN
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-25 07:55 UTC by Eric Paulson
Modified: 2005-02-21 21:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Paulson 2005-01-25 07:55:04 UTC
The exact same problem as reported in Bug#: 29371. Using tix-8.2.0-r1 from within python, when one tries to create a new window it fails complaining of an unresolved symbol (XLowerWindow).


Reproducible: Always
Steps to Reproduce:
1.emerge tix
2.python
3.>>> import Tix
  >>> from Tkconstants import *
  >>> root = Tix.Tk()

Actual Results:  
Traceback (most recent call last): 
  File "<stdin>", line 1, in ? 
  File "/usr/lib/python2.3/lib-tk/Tix.py", line 210, in __init__ 
    self.tk.eval('package require Tix') 
_tkinter.TclError: couldn't load file 
"/usr/lib/libtix8.2.so": /usr/lib/libtix8.2.so: undefined symbol: XLowerWindow 
 

Expected Results:  
no error 

when emerging tix, there is the following error: 
 * Fixing the Makefile...... 
sed:can't read /var/tmp/portage/tix-8.2.0-r1/work/tix8.2.0/unix/unix/Makefile: 
No such file or directory                                                [ !! ] 
 
How to Fix: 
Change the tix-8.2.0-r1.ebuild: 
after the lines: 
        ebegin "Fixing the Makefile..." 
        sed -e 's:TK_LIBS =:TK_LIBS = -L/usr/X11R6/lib -lX11:' \ 
                -e 's:^\(SHLIBS_LD_LIBS.*\):\1 ${TK_LIBS}:' \ 
replace: 
                -i ${S}/unix/Makefile 
with: 
                -i ${S}/Makefile 
 
This solves the problem.
Comment 1 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2005-01-31 16:15:14 UTC
Dunno why I ended up with this. All I ever did was add it to our tree to be kind to somebody, and now I'm stuck with it, and I don't even use Tk for anything, even though my mail address incidentally ends with 'tk', but that's just because of my real name. Anyway, I think I'm ranting again..... What I wanted to say was:

Fixed. Available as in dev-tcltk/tix-8.2.0-r2 on ~ppc, ~sparc and ~x86.
Comment 2 Eric Johnson 2005-02-21 21:14:37 UTC
There is a typo in the fix applied to tix-8.2.0-r2.ebuild which means that this
bug is not corrected.

The line reading
          -e 's:^\(SHLIBS_LD_LIBS.*\):\1 ${TK_LIBS}:' \ 
should in fact be
          -e 's:^\(SHLIB_LD_LIBS.*\):\1 ${TK_LIBS}:' \

this variable is as referred to in bug 29371.

Making this change works for me on both ~x86 and ~amd64