Re: AIX tkined hangs with `bitmap "icon" not defined', cont.

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Thu, 3 Oct 1996 23:50:52 +0200

thomasb@austin.ibm.com (Thomas R. Benjamin ) said:

Thomas> This is a continuation of an earlier thread regarding tkined
Thomas> hanging after outputting <bitmap "icon" not defined> .

Thomas> I inserted a printf code line in
Thomas> ../scotty-2.1.1/tkined/generic/tkiInit.c, after the first call
Thomas> to Tk_DefineBitmap.

Thomas> --> printf("interp->result = '%s'\n" , interp->result);

Thomas> The result was a null value for interp->result.

A NULL pointer for interp->result or an empty string?

Thomas> I also inserted printf statements in ../tk4.1/generic/tkBitmap.c,
Thomas> within the function Tk_GetBitmap(interp, tkwin, string).

I don't expect a bug here. For me, it looks like if there is something
broken with dynamic loading on AIX. A simple way to prove this would
be to take tkiInit.c and to uncomment everything in TkiInit() that is
not a call to Tk_CreateItemType() or Tk_DefineBitmap(). This will
result in a dynamic loadable module which only registers two new
canvas item types and creates a couple of bitmaps. Start wish4.1, load
the module and type "pack [button .b -bitmap icon]". If you get the
same error message, contact the person who wrote the dynamic loading
code for AIX. If it works (you get a button with the Tkined icon), we
have to look somewhere else.

Thomas> Besides, the fix should go in tkined and not Tk.

Perhaps the fix should go in AIX? :-) Compare the tclLoadAix.c module
with tclLoad*.c modules used by other systems and you will understand
why I expect that this error is indeed AIX specific.

Juergen

--
Juergen Schoenwaelder schoenw@cs.utwente.nl http://www.cs.utwente.nl/~schoenw
Computer Science Department, University of Twente,   (Fax: +31-53-489-3247)
P.O. Box 217, NL-7500 AE Enschede, The Netherlands.  (Tel. +31-53-489-3678)