Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 11679
Status: open
Priority: 0/
Queue: Tk

People
Owner: NI-S [...] cpan.org
Requestors: hugh [...] mimosa.com
Cc: CAC [...] cpan.org
AdminCc:

Bug Information
Severity: Important
Broken in: 804.027
Fixed in: (no value)



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.
Download 0tk-make.out
application/octet-stream 470.3k

Message body not shown because it is not plain text.