Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-18
06:58 • Ticket [218753ffff] winDumpExts.c does not declare LIBRARY status still Clos... artifact: 40cd2907f2 user: dgp
2000-10-26
08:28 • Closed ticket [218753ffff]. artifact: bd80f1e2b7 user: welch
01:04 • New ticket [218753ffff]. artifact: 2ffde51c3b user: nobody

winDumpExts.c does not declare LIBRARY

Closed / Fixed218753ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:04:58
OriginalBugID: 1998 Bug
Version: 8.1
SubmitDate: '1999-05-06'
LastModified: '1999-05-07'
Severity: MED
Status: Released
Submitter: pat
ChangedBy: stanton
OS: Windows NT
Machine: X86
FixedDate: '1999-05-07'
FixedInVersion: 8.1.1
ClosedDate: '2000-10-25'


Name:
Petteri Kettunen

CVS:
May 5, 1999

Extensions:
None

CustomShell:
None (source from Scriptics CVS).

Comments:
With this patch there is less error marginal for mixing up exes and
    dlls.

ReproducibleScript:
Build tcl81.lib using "lib.exe" (not the way it is done in makefile.vc),
    then link tcl81.lib and tclAppInit.obj to tclsh81.exe:

            "link.exe -nologo" -debug:full -debugtype:cv /NODEFAULTLIB
    /RELEASE /NOL
    OGO /MACHINE:IX86 -subsystem:console -entry:mainCRTStartup
    .\..\obj\tcl\tclsh
    .res -stack:2300000  -out:..\..\bin\tclsh81.exe msvcrt.lib oldnames.lib
    kerne
    l32.lib  advapi32.lib user32.lib ..\lib32i\tcl81.lib
    .\..\obj32i\tcl\tclAppInit.
    obj

ObservedBehavior:
When you start tclsh81.exe, the run stops when tclsh81.exe can not find
    tcl.dll.

DesiredBehavior:
tclsh81.exe started ok.

Patch:
C:\oke\src\tcl>diff winDumpExts.c  winDumpExts.c.old
477d476
<       fprintf(fout, "LIBRARY TCL%d\n", TCL_LIB_VERSION);

Modify also makefile.vc in order to get the version info:

$(DUMPEXTS): $(WINDIR)\winDumpExts.c
$(cc32) $(CON_CFLAGS) -DTCL_LIB_VERSION=$(VERSION) -Fo$(TMPDIR)\ $?
$(link32) $(ldebug) $(conlflags) $(guilibs) -out:$@  $(TMPDIR)\winDumpExts.obj 

With these modifications, the tcl.def looks like:

LIBRARY TCL81
EXPORTS
    ....

PatchFiles:
winDumpExts.c
    makefile.vc
welch Closed ticket [218753ffff]. [History diff]2000-10-26 08:28:13
dgp Ticket [218753ffff]: 3 changes [History diff]2001-04-18 06:58:07
Log in (anonymous is fine) to add a comment.