Tcl Source Code

View Ticket
Login
Ticket UUID: 1230558
Title: confusing 64bit warning
Type: Bug Version: obsolete: 8.4.11
Submitter: wart Created on: 2005-06-30 19:24:58
Subsystem: 53. Configuration and Build Tools Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-11-26 13:07:01
Resolution: Fixed Closed By: das
    Closed on: 2006-11-26 06:07:01
Description:
When building tcl 8.4.11 on x86_64 Fedore Core {3,4},
configure claims that it doesn't know how to do 64bit:

# ./configure --enable-64bit
[...]
checking if 64bit support is requested... yes
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)...
Linux-2.6.11-1.1369_FC4smp
checking for dlopen in -ldl... yes
checking for ar... ar
configure: warning: 64bit support being disabled --
don't know magic for this platform
[...]

And yet, 'make' proceeds with no problems other than a
few warnings about casting pointers to integers. 
'file' claims that the resulting executable is 64-bit:
# file ./tclsh
tclsh: ELF 64-bit LSB executable, AMD x86-64, version 1
(SYSV), for GNU/Linux 2.4.0, dynamically linked (uses
shared libs), not stripped

I get the same results if I leave off the
--enable-64bit.  My questions about this are:  Is the
--enable-64bit switch necessary on FC{3,4}?  Can we
somehow remove the '64bit support being disabled'
warning from configure?
User Comments: das added on 2006-11-26 13:07:01:
Logged In: YES 
user_id=90580
Originator: NO

fixed by patch 1597389

mic42 added on 2006-08-03 06:38:18:
Logged In: YES 
user_id=302287

Short answer:
No, you don't need the --enable-64bit switch on AMD x86_64
linux, as your gcc creates 64-bit executables by default,
its just for those platforms where the OS is 64-bit, but
executables are usually built as 32-bit versions, to force a
64-bit version of Tcl.

The warning could be fixed/removed by some changes to the
tcl.m4 file.