|Subject:||Tk not 64-bit clean|
I am trying to build on 804.027 on Fedora Core3 on an x86_64 machine. sizeof(int) = 4 sizeof(long) = 8 sizeof(void *) = 8 Tk seems to think pointers can be stored in ints. Just won't work on this architecture. I've included a log of the start of a build. Many of the warnings point out unconventional coding -- for example, storing an int value in a pointer and then expecting to get it back. This will work on the vast majority of machines (including x86_64) but is not sanctioned by the ISO C standard. There is a good chance that the reverse is also happening (ptr stored in int and then retrieved). This will NOT work on x86_64 in general since the container has fewer bits than the value to be contained. I think one example is in tkGlue.c line 5014. "number" is an int and it is being used as a pointer.
Message body not shown because it is not plain text.