| Store | Cart

[TCLCORE] 64bit builds

From: Michael Thomas <w...@kobold.org>
Thu, 30 Jun 2005 11:31:15 -0700
I just built tcl 8.4.11 on my amd x86_64 system and have a couple of 
minor nitpicking comments:

tcl.m4 contains the following check for tclConfig.sh:

             # check in a few common install locations
             if test x"${ac_cv_c_tclconfig}" = x ; then
                 for i in `ls -d ${libdir} 2>/dev/null` \
                         `ls -d /usr/local/lib 2>/dev/null` \
                         `ls -d /usr/contrib/lib 2>/dev/null` \
                         `ls -d /usr/lib 2>/dev/null` \
                         ; do
                     if test -f "$i/tclConfig.sh" ; then
                         ac_cv_c_tclconfig=`(cd $i; pwd)`
                         break
                     fi
                 done
             fi

While this isn't used for Tcl itself, it is used by many extensions.  It 
would be nice to add '/usr/lib64' to the list of directories for 64bit 
systems that don't want to set ${libdir} on the command line.

configure gives some confusing output about 64bit builds on Fedora Core 
{3,4}:

# ./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?

--Mike


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Tcl-Core mailing list
Tcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-core

Recent Messages in this Thread
Michael Thomas Jun 30, 2005 06:31 pm