Skip to content
Tcl Source Code History Of Ticket 602849ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 602849ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 602849ffffffffffffffffffffffffffffffffff

  1. Ticket change [81f6725086] (rid 117137) by das on 2002-08-31 14:26:57:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      This is on host usf-cf-x86-freebsd-1 on the SourceForge
      compilefarm (FreeBSD 4.6-STABLE):
      The threaded build fails to link because of the
      presence of an erroneous "-pthread" argument to 'ld'.
      
      the patch to tcl.m4 below fixes the problem and doesn't
      affect any of the other builds on the compilefarm
      negatively, but I suspect is proabably not a good
      solution in general.
      
      Index: tcl.m4
      ===================================================================
      RCS file: /cvsroot/tcl/tcl/unix/tcl.m4,v
      retrieving revision 1.80
      diff -u -r1.80 tcl.m4
      --- tcl.m4      31 Aug 2002 13:28:00 -0000      1.80
      +++ tcl.m4      31 Aug 2002 14:25:13 -0000
      @@ -438,7 +438,7 @@
                         
      AC_CHECK_LIB(c_r,pthread_mutex_init,tcl_ok=yes,tcl_ok=no)
                          if test "$tcl_ok" = "yes"; then
                              # The space is needed
      -                       THREADS_LIBS=" -pthread"
      +                       THREADS_LIBS=" "
                          else
                              TCL_THREADS=0
                              AC_MSG_WARN("Don t know how to
      find pthread lib on your system - you must disable
      thread support or edit the LIBS in the Makefile...")
      
      
    4. foundin initialized to: "obsolete: 8.4b3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "das"
    9. subsystem initialized to: "49. Threading"
    10. title initialized to: "threaded build fails on FreeBSD 4.6"
    11. type initialized to: "Bug"
  2. Ticket change [e7d883a6dd] (rid 104539) by hobbs on 2002-09-03 03:35:44:

    1. closedate changed to: "2002-09-02T20:35:44"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      I built on the same machine without problems.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "hobbs"
  3. Ticket change [1d895cd5f4] (rid 90835) by das on 2002-09-03 07:41:00:

    1. icomment:
      Logged In: YES 
      user_id=90580
      
      really? I just tried again, same problem (on a fresh
      checkout of the HEAD):
      
      -------------------------------------------------------------------------------------------------
      
      usf-cf-x86-freebsd-1 tcl $ ~/HEAD/tcl/unix/configure
      --enable-threads
      
      usf-cf-x86-freebsd-1 tcl $ make
      lrm -f libtclstub8.4.a
      ar cr libtclstub8.4.a tclStubLib.o  ; ranlib libtclstub8.4.a
      rm -f libtcl8.4.so
      ld -Bshareable -x -o libtcl8.4.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
      tclDate.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  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 tclParseExpr.o tclPipe.o  tclPkg.o
      tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o 
      tclResolve.o tclResult.o tclScan.o tclStringObj.o
      tclThread.o  tclThreadAlloc.o tclThreadJoin.o tclStubInit.o
      tclStubLib.o  tclTimer.o tclUtf.o tclUtil.o tclVar.o
      tclUnixChan.o tclUnixEvent.o tclUnixFCmd.o  tclUnixFile.o
      tclUnixPipe.o tclUnixSock.o  tclUnixTime.o tclUnixInit.o
      tclUnixThrd.o tclUnixNotfy.o   tclLoadDl.o -pthread -lm  
      -rpath /usr/local/lib
      /usr/libexec/elf/ld: unrecognized option 'tclLoadDl.o'
      /usr/libexec/elf/ld: use the --help option for usage information
      *** Error code 1
      
      Stop in
      /home/users/d/da/das/build/usf-cf-x86-freebsd-1/HEAD/tcl.
      
      -------------------------------------------------------------------------------------------------
      
      if the -pthread in the ld line is removed, the link succeeds
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "das"
  4. Ticket change [c72c61777a] (rid 121889) by hobbs on 2002-09-03 07:59:08:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      Yes, really ...
      
      usf-cf-x86-freebsd-1 [~/build/freebsd/tcl84st] 7 % make shell
      rm -f libtclstub8.4.a
      ar cr libtclstub8.4.a tclStubLib.o  ; ranlib libtclstub8.4.a
      rm -f libtcl8.4.a
      ar cr libtcl8.4.a 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 tclDate.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  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 tclParseExpr.o
      tclPipe.o  tclPkg.o tclPosixStr.o tclPreserve.o tclProc.o
      tclRegexp.o  tclResolve.o tclResult.o tclScan.o
      tclStringObj.o tclThread.o  tclThreadAlloc.o tclThreadJoin.o
      tclStubInit.o tclStubLib.o  tclTimer.o tclUtf.o tclUtil.o
      tclVar.o tclUnixChan.o tclUnixEvent.o tclUnixFCmd.o 
      tclUnixFile.o tclUnixPipe.o tclUnixSock.o  tclUnixTime.o
      tclUnixInit.o tclUnixThrd.o tclUnixNotfy.o   tclLoadDl.o ;
      ranlib libtcl8.4.a
      gcc -pipe -export-dynamic -pthread  tclAppInit.o
      -L/home/users/h/ho/hobbs/build/freebsd/tcl84st -ltcl8.4
      -pthread -lm  -Wl,-rpath,/usr/local/lib -o tclsh
      % parray tcl_platform
      tcl_platform(byteOrder) = littleEndian
      tcl_platform(machine)   = i386
      tcl_platform(os)        = FreeBSD
      tcl_platform(osVersion) = 4.6-STABLE
      tcl_platform(platform)  = unix
      tcl_platform(threaded)  = 1
      tcl_platform(user)      = hobbs
      tcl_platform(wordSize)  = 4
      
      The question is likely about paths ... why do you have ld
      -Bshareable, where I have ar and gcc?  Works for me ...
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. resolution changed to: "Works For Me"
    5. status changed to: "Closed"
    6. username: "hobbs"
  5. Ticket change [6d796293a2] (rid 128705) by hobbs on 2002-09-03 07:59:09:

    1. closedate changed to: "2002-09-03T00:59:09"
    2. closer changed to: "hobbs"
  6. Ticket change [d4699dc76f] (rid 123438) by dkf on 2002-09-03 17:01:50:

    1. closedate changed to: "2002-09-03T10:01:50"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      One build (the failing one) is dynamic, and one (the
      succeeding one) is static. Why would this make a difference?
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. username: "dkf"
  7. Ticket change [b451e86aa9] (rid 125009) by das on 2002-09-03 18:58:48:

    1. closedate changed to: "2002-09-03T11:58:48"
    2. closer changed to: "das"
    3. icomment:
      Logged In: YES 
      user_id=90580
      
      that's a good point, indeed if I configure with
      --disable-shared my build succeeds as well...
      
      
    4. login: "das"
    5. mimetype: "text/plain"
    6. username: "das"
  8. Ticket change [d0c3917abb] (rid 113240) by hobbs on 2002-09-04 02:55:02:

    1. closedate changed to: "2002-09-03T19:55:02"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      OK, corrected this for FreeBSD to remove it in the FreeBSD
      specific section with a sed macro.  This was only needed on
      dynamic builds.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. username: "hobbs"