Skip to content
Tcl Source Code History Of Ticket 1821159
Login

History Of Ticket 1821159

Artifacts Associated With Ticket 1821159

  1. Ticket change [6e4bc22a7c] (rid 100125) by nobody on 2007-10-27 10:51:01:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      One note ahead: Tcl8.5b1 builds without problems in my environment. Tcl8.5b2 fails during link stage of tcl8.5.so library.
      
      Environment: Linux/Gentoo 2007.0 amd64
      
      % gcc -v
      Using built-in specs.
      Target: x86_64-pc-linux-gnu
      Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-nls --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --enable-multilib --enable-libmudflap --disable-libssp --enable-languages=c,c++,java,objc,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
      Thread model: posix
      gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)
      
      % ar --version
      GNU ar (GNU Binutils) 2.18
      
      % ./configure --prefix=/usr/local/tcl/8.5b2 --enable-shared --disable-symbols --disable-threads --srcdir=$PWD
      
      # ....
      
      % make
      
      # ....
      
      gcc -c -O2  -pipe  -Wall -Wno-implicit-int -fPIC -I. -I/var/tmp/build/tcl8.5b2/unix/../unix -I/var/tmp/build/tcl8.5b2/unix/../generic -I/var/tmp/build/tcl8.5b2/unix/../libtommath -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tcl\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DPEEK_XCLOSEIM=1 -DTCL_SHLIB_EXT=\".so\" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_UNLOAD_DLLS=1       /var/tmp/build/tcl8.5b2/unix/../generic/tclCompile.c
      
      # ....
      
      rm -f libtclstub8.5.a
      ar cr libtclstub8.5.a tclStubLib.o  ; ranlib libtclstub8.5.a
      rm -f libtcl8.5.so
      gcc -shared -O2  -pipe    -Wl,--export-dynamic  -o libtcl8.5.so regcomp.o regexec.o regfree.o regerror.o tclAlloc.o tclAsync.o tclBasic.o tclBinary.o tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclCompCmds.o tclCompExpr.o tclCompile.o tclConfig.o tclDate.o tclDictObj.o tclEncoding.o tclEnv.o tclEvent.o tclExecute.o tclFCmd.o tclFileName.o tclGet.o tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o tclIOCmd.o tclIORChan.o tclIOGT.o tclIOSock.o tclIOUtil.o tclLink.o tclListObj.o tclLiteral.o tclLoad.o tclMain.o tclNamesp.o tclNotify.o tclObj.o tclPanic.o tclParse.o tclPathObj.o tclPipe.o tclPkg.o tclPkgConfig.o tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o tclResolve.o tclResult.o tclScan.o tclStringObj.o tclStrToD.o tclThread.o tclThreadAlloc.o tclThreadJoin.o tclThreadStorage.o tclStubInit.o tclStubLib.o tclTimer.o tclTrace.o tclUtf.o tclUtil.o tclVar.o tclTomMathInterface.o tclUnixChan.o tclUnixEvent.o tclUnixFCmd.o tclUnixFile.o tclUnixPipe.o tclUnixSock.o tclUnixTime.o tclUnixInit.o tclUnixThrd.o tclUnixCompat.o tclUnixNotfy.o  tclLoadDl.o  bncore.o bn_reverse.o bn_fast_s_mp_mul_digs.o bn_fast_s_mp_sqr.o bn_mp_add.o bn_mp_and.o bn_mp_add_d.o bn_mp_clamp.o bn_mp_clear.o bn_mp_clear_multi.o bn_mp_cmp.o bn_mp_cmp_d.o bn_mp_cmp_mag.o bn_mp_copy.o bn_mp_count_bits.o bn_mp_div.o bn_mp_div_d.o bn_mp_div_2.o bn_mp_div_2d.o bn_mp_div_3.o bn_mp_exch.o bn_mp_expt_d.o bn_mp_grow.o bn_mp_init.o bn_mp_init_copy.o bn_mp_init_multi.o bn_mp_init_set.o bn_mp_init_size.o bn_mp_karatsuba_mul.o bn_mp_karatsuba_sqr.o bn_mp_lshd.o bn_mp_mod.o bn_mp_mod_2d.o bn_mp_mul.o bn_mp_mul_2.o bn_mp_mul_2d.o bn_mp_mul_d.o bn_mp_neg.o bn_mp_or.o bn_mp_radix_size.o bn_mp_radix_smap.o bn_mp_read_radix.o bn_mp_rshd.o bn_mp_set.o bn_mp_shrink.o bn_mp_sqr.o bn_mp_sqrt.o bn_mp_sub.o bn_mp_sub_d.o bn_mp_to_unsigned_bin.o bn_mp_to_unsigned_bin_n.o bn_mp_toom_mul.o bn_mp_toom_sqr.o bn_mp_toradix_n.o bn_mp_unsigned_bin_size.o bn_mp_xor.o bn_mp_zero.o bn_s_mp_add.o bn_s_mp_mul_digs.o bn_s_mp_sqr.o bn_s_mp_sub.o  -ldl  -lieee -lm   -Wl,-rpath,/usr/local/tcl/8.5b2/lib
      /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: tclCompile.o: relocation R_X86_64_PC32 against `TclSetCmdNameObj' can not be used when making a shared object; recompile with -fPIC
      /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
      collect2: ld returned 1 exit status
      make: *** [libtcl8.5.so] Error 1
      
      
    4. foundin initialized to: "obsolete: 8.5b2"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nobody"
    10. subsystem initialized to: "53. Configuration and Build Tools"
    11. title initialized to: "Build problem for x86_64"
    12. type initialized to: "Bug"
  2. Ticket change [7186b26289] (rid 100694) by nobody on 2007-10-27 18:37:37:

    1. icomment:
      Logged In: NO 
      
      On i686 arch there is only this not very illuminating linker message:
      
      /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
      
      However, make test is able to perform the tests.
      
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  3. Ticket change [d085d8d598] (rid 113199) by nobody on 2007-10-27 18:46:10:

    1. icomment:
      Logged In: NO 
      
      The problem seems to be the following change between 8.5b1 and 8.5b2:
      
      @@ -13,11 +13,10 @@
        * See the file "license.terms" for information on usage and redistribution of
        * this file, and for a DISCLAIMER OF ALL WARRANTIES.
        *
      - * RCS: @(#) $Id: tclObj.c,v 1.135 2007/09/13 15:27:08 das Exp $
      + * RCS: @(#) $Id: tclObj.c,v 1.136 2007/10/11 13:35:26 msofer Exp $
        */
       
       #include "tclInt.h"
      -#include "tclCompile.h"
       #include "tommath.h"
       #include <float.h>
       
      If this patch is reverted, the build and tests perform successfully.
      
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  4. Ticket change [9a1ef4c070] (rid 110900) by msofer on 2007-10-27 20:16:13:

    1. assignee changed to: "msofer"
    2. closedate changed to: "2007-10-27T13:16:13"
    3. closer changed to: "msofer"
    4. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      <rant>anonymous reports without contact info!</rant>
      
      My mistake: TclSetCmdNameObj is declared in tclCompile.h, defined in tclObj.c and used in tclCompile.c. I and gcc4.1.2 on ubuntu missed that. Fixed by moving the declaration to tclInt.h, as it has nothing to do with compilation really.
      
      Note also the weirdnesses in your report: the -fPIC flag does appear in the gcc flags, but you get an injunction to "recompile with -fPIC". 
      
      
    5. login: "msofer"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "msofer"