problems with tix in rawhide

José Matos jamatos at fc.up.pt
Tue Jan 29 16:08:23 UTC 2008


There are two different problems with tix in rawhide:

$ python -c 'import Tkinter'
...
ImportError: libTix.so: cannot open shared object file: No such file or 
directory

The problem is that libTix.so is in /usr/lib/tcl8.5 and that is not in the 
linker path.

This problems seems to be a remake of 
https://bugzilla.redhat.com/show_bug.cgi?id=187739

Adding the directory to a file in /etc/ld.so.conf.d/ fixes this problem.


The second problem is that as soon as libTix.so is loaded it complains that 
TkPutImage is not defined.

This seems to be caused by a patch used in the spec file 
(tix-8.4.2-tcl8.5.patch) where the last chunk is:
diff -up Tix8.4.2/unix/tixUnixXpm.c_old Tix8.4.2/unix/tixUnixXpm.c
--- Tix8.4.2/unix/tixUnixXpm.c_old      2008-01-08 12:10:18.000000000 +0100
+++ Tix8.4.2/unix/tixUnixXpm.c  2008-01-08 12:13:07.000000000 +0100
@@ -19,12 +19,6 @@
 #include <tixImgXpm.h>
 #include <X11/Xutil.h>

-#if !defined(WIN32) && !defined(MAC_OSX_TK)
-#define TkPutImage(colors, ncolors, display, pixels, gc, image, destx, desty, 
srcx, srcy, width, height) \
-       XPutImage(display, pixels, gc, image, destx, desty, srcx, \
-       srcy, width, height);
-#endif
-
 typedef struct PixmapData {
     Pixmap mask;               /* Mask: only display pixmap pixels where
                                 * there are 1's here. */

The koji build logs already complains about this see as an example
http://koji.fedoraproject.org/packages/tix/8.4.2/4.fc9/data/logs/ppc64/build.log

./unix/tixUnixXpm.c: In function 'TixpXpmRealizePixmap':
./unix/tixUnixXpm.c:211: warning: implicit declaration of 
function 'TkPutImage'

Removing the last chunk from tix-8.4.2-tcl8.5.patch and rebuilding the srpms 
fixes the problem.

Should I add this to bugzilla?
-- 
José Abílio




More information about the fedora-test-list mailing list