Tk Source Code

View Ticket
Login
Ticket UUID: 220600
Title: missing symbol in windows binary tk82.lib
Type: Bug Version: obsolete: 8.2
Submitter: welch Created on: 2000-10-31 23:46:03
Subsystem: 85. Win Build Assigned To: nobody
Priority: 2 Severity:
Status: Closed Last Modified: 2009-12-08 19:10:46
Resolution: Fixed Closed By: dgp
    Closed on: 2001-03-23 03:00:36
Description:
OriginalBugID: 2963 Bug
Version: 8.2
SubmitDate: '1999-09-28'
LastModified: '1999-11-16'
Severity: SER
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: Windows NT
OSVersion: 4.0 SP4
Machine: X86
FixedDate: '1999-11-16'
FixedInVersion: 8.2.2


Name:
Christopher Volpe

ReproducibleScript:
I'm building a 3rd party application that links with theTcl/Tk
    libraries. This is the first time I have tried it with Tcl/Tk 8.2. Using
    the library file tk82.lib that ships with the MS Windows binary
    distribution, the linker complains about the missing symbol
    "_TkWinChildProc@16". I used the cygwin "nm" command to check for
    symbols in tk82.lib and confirmed that this symbol is indeed not in the
    library. But then I downloaded the source distributions for Tcl and Tk
    8.2, built each of them, and discovered that the symbol
    "_TkWinChildProc@16" does appear in the tk82.lib file that I built.
    Using this file solves my problem, but I don't think it was intended
    that the library you shipped as part of the binary distribution would be
    missing this symbol.



8.2.2 shows this symbol, as seen with NT's Explorer QuickView
of tk82.dll. 
-- 11/16/1999 hobbs
User Comments: nijtmans added on 2009-12-08 19:10:46:
> it would be better to limit
> backports to the stable branch to those matters that
> have stronger demonstration of stability, IMHO.

Ah, I see. The comment suggests that the function
TkWinChildProc is new. That's not the case! Only
the definition is moved from tkWinInt.h to
tkIntPlatDecls.h where it belongs. The function
was already exported long ago, only not
properly through the stub table.

dgp added on 2009-12-08 03:25:11:
I should have been more verbose, sorry.

The new entry in generic/tkInt.decls is:

# new for 8.6

declare 36 win {
    LRESULT CALLBACK TkWinChildProc(HWND hwnd,
            UINT message, WPARAM wParam, LPARAM lParam)
}

but it has been added to both 8.6 and 8.5 branches?

I would be far more comfortable limiting this to the 8.6
branch for now, and considering backport to 8.5 only
after we see successful use of the new routine in 
releases from the HEAD branch.  Unless there's some
compelling detail I'm missing, it would be better to limit
backports to the stable branch to those matters that
have stronger demonstration of stability, IMHO.

On the merits of the change in the first place,
I'm basically neutral.  Seems like an ok idea, though
not as good as a real public interface of course.
But I've got no reason to object.

nijtmans added on 2009-12-07 23:01:35:
See,
<http://coding.derkeiler.com/Archive/Tcl/comp.lang.tcl/2004-02/0513.html>
or:
<http://wiki.tcl.tk/2237>

This will finally enable the Togl (or Tkogl, or any
other opengl extension) people to build a
stubs-enabled (tclkit) versions of their library.

In [tktoolkit-Bugs-220690] Jeffrey Hobbs
already wrote that it should go in the platform
specific stubs table, and reported that the
fix was in Tk 8.3.1, while in fact it wasn't

If I'm mistaken in my judgement, please
just revert it, and change the resolution of
[ tktoolkit-Bugs-220600 ] and
[ tktoolkit-Bugs-220690 ] to "WontFix"  :-)

dgp added on 2009-12-07 21:29:41:
Why 8.5 branch?

nijtmans added on 2009-12-03 16:53:06:

allow_comments - 1

nijtmans added on 2009-12-03 16:53:03:
Added TkWinChildProc to the internal stub table (HEAD and 8.5)