Tk Source Code

View Ticket
Login
Ticket UUID: 1792432
Title: --disable-shared Tcl / --enable-shared Tk
Type: Bug Version: obsolete: 8.5a7
Submitter: dgp Created on: 2007-09-11 15:34:25
Subsystem: 84. Unix Build Assigned To: dgp
Priority: 9 Immediate Severity:
Status: Closed Last Modified: 2007-11-07 10:20:06
Resolution: Invalid Closed By: sf-robot
    Closed on: 2007-11-07 03:20:06
Description:
This combination produces a working
wish using the Tcl/Tk 8.5a6 releases.

It produces a wish that crashes on 
the HEAD:

$ ./wish
./wish: symbol lookup error: ./wish: undefined symbol: Tcl_InitStubs

Perhaps a consequence of the changes
addressing 1716117 ?
User Comments: sf-robot added on 2007-11-07 10:20:06:
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

dgp added on 2007-10-24 03:46:43:
Logged In: YES 
user_id=80530
Originator: YES


well, I set about to fix this problem
and I can no longer reproduce it.

Not on the HEAD.

Not on the sources dated 2007-09-11,
against which the bug was reported.

I question my connection to reality.

jenglish added on 2007-09-12 01:44:49:
Logged In: YES 
user_id=68433
Originator: NO

More info:

tk/unix/configure.in has:

| if test "${SHARED_BUILD}" = "1" -a "${SHLIB_SUFFIX}" != ""; then
|    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \${TCL_STUB_LIB_SPEC}"
|    TCL_STUB_FLAGS="-DUSE_TCL_STUBS"
| fi

That is, configuring Tk with "--enable-shared" implies compiling with --DUSE_TCL_STUBS and linking libtk.so with -ltclstub.
'wish', however, is not linked with -ltclstub.

FWIW this combination Works On My Machine; the 'wish' executable does have an unresolved reference to Tcl_InitStubs, but it's resolved by libtk.so (along with Tk_SafeInit, Tk_Init, and Tk_MainEx).

Possibly also relevant: #220916, which introduced a number of direct references to "tclStubsPtr".