Skip to content
Tcl Source Code History Of Ticket 506393ffffffffff
Login

History Of Ticket 506393ffffffffff

Artifacts Associated With Ticket 506393ffffffffff

  1. Ticket change [1f2c86ea5c] (rid 91099) by nobody on 2002-01-21 11:27:33:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I have tried to compile tcltk 8.3.4 on MacOSX 10.1.2.
      I have encoutered the following problems.
      
      (1) I have to add the following line to Makefile after
      configure in order to compile.
      
      @@ -372,7 +373,7 @@
       # a shared library or non-shared library for Tk.
      
       ${TK_LIB_FILE}: ${OBJS}
      
       rm -f ${TK_LIB_FILE}
      
      -${SHLIB_LD} -o $@ ${OBJS} $(TK_LD_SEARCH_FLAGS) 
      
      -L$(TCL_BIN_DIR) $(TCL_STUB_LIB_FLAG) ${SHLIB_LD_LIBS}
      
      +${SHLIB_LD} -o $@ ${OBJS} $(TK_LD_SEARCH_FLAGS)
      -L$(TCL_BIN_DIR) $(TCL_STUB_LIB_FLAG) ${SHLIB_LD_LIBS}
      -L/usr/X11R6/lib -lX11 -ltcl8.3
              $(RANLIB) ${TK_LIB_FILE}
      (2)I could compile tcltk8.3.4 but there is still
      warning as follows.
      
      cc -pipe  tkAppInit.o
      -L/Users/kcg/scratch/GNU/tk8.3.4/unix -ltk8.3 
      -L/Users/kcg/scratch/GNU/tcl8.3.4/unix -ltcl8.3 
      -L/usr/X11R6/lib -lX11   -lc  -o wish
      
      /usr/bin/ld: warning multiple definitions of symbol
      _dataKey
      /Users/kcg/scratch/GNU/tk8.3.4/unix/libtk8.3.dylib(tkMain.o)
      definition of _dataKey
      /Users/kcg/scratch/GNU/tcl8.3.4/unix/libtcl8.3.dylib(tclMain.o)
      definition of _dataKey
      
      Is it OK?
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "None"
    10. title initialized to: "Compile tcltk 8.3.4 on MacOSX"
    11. type initialized to: "Bug"
  2. Ticket change [c3df9b2a94] (rid 111746) by das on 2002-01-23 18:35:09:

    1. assignee changed to: "das"
  3. Ticket change [9f5ffb0f4e] (rid 96632) by das on 2002-01-23 18:35:10:

    1. icomment:
      Logged In: YES 
      user_id=90580
      
      this should really be a tktoolkit bug not tcl.
      
      your point (2) is not a problem and your tk build is fine.
      
      the source of the build problem is that to link the tk shared 
      lib the Mac OS X linker (unlike other linkers) needs to link 
      with the tcl shared or stub lib.
      
      one relatively easy fix is to turn on USE_TCL_STUBS in 
      configure.in, but for this to work some missing support in 
      the tk buildsystem needs to be backported from 8.4
      
      once this done (easy), Tk seems to works fine on OSX, is 
      there another reason why USE_TCL_STUBS shouldn't be turned on 
      in tk's configure.in for core-8-3-1-branch ?
      
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  4. Ticket change [cad8088c3b] (rid 95429) by das on 2002-01-23 18:37:45:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=90580
      
      Jeff, can you help with the USE_TCL_STUBS issue above ?
      
      
      
    3. login: "das"
    4. mimetype: "text/plain"
    5. username: "das"
  5. Ticket change [2897e91502] (rid 88722) by hobbs on 2002-01-24 03:45:24:

    1. assignee changed to: "das"
    2. icomment:
      Logged In: YES 
      user_id=72656
      
      Oddly enough, this does seem to be multiply defined tsd 
      items, but other compilers never cared as they aren't 
      actually used outside the named files.  Normally these are 
      declared static.  This isn't really a stubs issue, nor is 
      it an issue for 8.4 as those keys have been removed in 
      dgp's rewrite of the stdin handling routines.  I'll leave 
      it to Daniel to determine whether he wants to fix this for 
      the 8-3-1-branch for macs.
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. username: "hobbs"
  6. Ticket change [3d3c89dd42] (rid 121057) by nobody on 2002-01-24 13:07:02:

    1. icomment:
      Logged In: NO 
      
      I have changed the configure.in  as follows.
      
      ------
      --- configure.in.orig   Sat Oct 20 09:24:40 2001
      +++ configure.in        Thu Jan 24 14:47:19 2002
      @@ -352,8 +352,8 @@
           MAKE_LIB="\${SHLIB_LD} -o \[$]@ \${OBJS} \
      $(TK_LD_SEARCH_FLAGS) ${TCL_STUB_LIB_SPEC} \
      ${SHLIB_LD_LIBS}"
           RANLIB=":"
       
      -#    TCL_STUB_FLAGS="-DUSE_TCL_STUBS"
      -    TCL_STUB_FLAGS=""
      +    TCL_STUB_FLAGS="-DUSE_TCL_STUBS"
      +#    TCL_STUB_FLAGS=""
       else
           TK_SHLIB_CFLAGS=""
           TK_LIB_FILE=libtk${TK_UNSHARED_LIB_SUFFIX}
      
      ------------------
      However, I got same message.
      Did I have any mistakes?
      
      ----
      cc -pipe -prebind  tkAppInit.o \
              -L/Users/tawada/tmp/tk8.3.4/unix -ltk8.3 \
              -L/Users/tawada/tmp/tcl8.3.4/unix -ltcl8.3  -L/usr/X11R6/lib -lX11   -lc  -o wish
      /usr/bin/ld: warning prebinding disabled because dependent library: libtk8.3.dylib 
      is not prebound
      /usr/bin/ld: warning multiple definitions of symbol _dataKey
      /Users/tawada/tmp/tk8.3.4/unix/libtk8.3.dylib(tkMain.o) definition of _dataKey
      /Users/tawada/tmp/tcl8.3.4/unix/libtcl8.3.dylib(tclMain.o) definition of _dataKey
      
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  7. Ticket change [d96533d954] (rid 107606) by nobody on 2002-01-24 13:35:28:

    1. icomment:
      Logged In: NO 
      
      (3) I have third problem on compiling tk8.3.4.
      I would like to compile tcl and tk as a static library.
      
      %./configure --disable-shared
      
      However, I failed to compile.
      
      cc -pipe -c -O3 -Wall -Wconversion -Wno-implicit-int -fno-common -I/Users/
      tawada/tmp/tk8.3.4/unix -I/Users/tawada/tmp/tk8.3.4/unix/../generic -I/Users/
      tawada/tmp/tk8.3.4/unix/../bitmaps -I/Users/tawada/tmp/tcl8.3.4/generic -I/usr/
      X11R6/include -arch ppc -pipe  -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=
      1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -
      DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 -DSTATIC_BUILD=
      1      -DTCL_NO_DEPRECATED /Users/tawada/tmp/tk8.3.4/unix/tkAppInit.c
      cc -pipe -prebind  tkAppInit.o \
              -L/Users/tawada/tmp/tk8.3.4/unix -ltk8.3 \
              -L/Users/tawada/tmp/tcl8.3.4/unix -ltcl8.3  -L/usr/X11R6/lib -lX11   -lc  -o wish
      /usr/bin/ld: warning prebinding disabled because dependent library: /usr/X11R6/
      lib/libX11.6.dylib is not prebound
      /usr/bin/ld: Undefined symbols:
      _Tcl_SetMainLoop
      make: *** [wish] Error 1
      
      Why?
      I couldn't compile as a static on 8.3.4.
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  8. Ticket change [2d2945ac56] (rid 119026) by das on 2002-01-25 09:15:22:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=90580
      
      I think you both misunderstood me... the dataKey _warning_ 
      messages are not a problem at all and don't prevent the 
      linker from succeeding. (neither do the prebind warnings, 
      just ignore them)
      
      what causes the link _errors_ is that the OSX linker needs to 
      link with the tcl shared or stub lib to be able to link the 
      tk shared lib.
      
      my stab at a fix was to turn on stubs given that the 
      makesystem already includes support for stubs in MAKE_LIB 
      (albeit with some bits missing that can be backported from 
      8.4 easily) 
      
      given the user's (BTW, please login) failure to link 
      statically, maybe linking to the tcl library itself is 
      needed.
      
      Jeff, in any case, is there a reason why stubs should not be 
      turned on for Tk core-8-3-1-branch ?
      
      
      
    3. login: "das"
    4. mimetype: "text/plain"
    5. username: "das"
  9. Ticket change [438d224e4f] (rid 116573) by hobbs on 2003-01-28 05:14:58:

    1. assignee changed to: "das"
    2. icomment:
      Logged In: YES 
      user_id=72656
      
      I see no reason not to allow it, but I no longer have a machine 
      to check this stuff.  I also consider the 8.3 branch EOL.
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. username: "hobbs"
  10. Ticket change [1468ceacbd] (rid 124393) by das on 2003-02-20 00:08:11:

    1. closedate changed to: "2003-02-19T17:08:11"
    2. closer changed to: "das"
    3. icomment:
      Logged In: YES 
      user_id=90580
      
      this is old, core-8-3-1-branch is EOL
      
      
    4. login: "das"
    5. mimetype: "text/plain"
    6. resolution changed to: "Wont Fix"
    7. status changed to: "Closed"
    8. username: "das"