Compiler errors with MSVC version 6
Deleted218631ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:03:23
OriginalBugID: 1518 Bug
Version: 8.1b2
SubmitDate: '1999-03-18'
LastModified: '1999-04-05'
Severity: SER
Status: Released
Submitter: pat
ChangedBy: stanton
RelatedBugIDs: 1323 1324
OS: Windows NT
Machine: X86
FixedDate: '2019-04-01'
FixedInVersion: 8.1b3
ClosedDate: '2000-10-25'
Name:
Petteri Kettunen
Extensions:
N/A
CustomShell:
N/A
ReproducibleScript:
1) Download tcl81b2.zip from Scriptics FTP.
2) Unpack the sources.
3) cd tcl/win.
4) copy makefile.vc makefile and edit paths.
5) nmake.
ObservedBehavior:
case #1:
"c:\visualstudio\vc98\bin\cl.exe" -DBUILD_tcl -Z7 -Od -WX -c -W3
-nologo
-YX -Fp.\Debug\ -Dtry=__try -Dexcept=__except -D_X86_=1 -DWIN32
-D_WIN32 -MDd -
I"c:\visualstudio\vc98\include" -I..\win -I..\generic -D__WIN32__
-DTCL_MEM_DEB
UG -Fo.\Debug\ ..\generic\tclProc.c
tclProc.c
..\generic\tclProc.c(1375) : error C2220: warning treated as error - no
object f
ile generated
..\generic\tclProc.c(1375) : warning C4550: expression evaluates to a
function w
hich is missing an argument list
..\generic\tclProc.c(1400) : warning C4550: expression evaluates to a
function w
hich is missing an argument list
NMAKE : fatal error U1077: '"c:\visualstudio\vc98\bin\cl.exe"' : return
code '0x
2'
Stop.
case #2:
"c:\visualstudio\vc98\bin\cl.exe" -DBUILD_tcl -Z7 -Od -WX -c -W3
-nologo
-YX -Fp.\Debug\ -Dtry=__try -Dexcept=__except -D_X86_=1 -DWIN32
-D_WIN32 -MDd -
I"c:\visualstudio\vc98\include" -I..\win -I..\generic -D__WIN32__
-DTCL_MEM_DEB
UG -Fo.\Debug\ ..\win\tclWinSerial.c
tclWinSerial.c
..\win\tclWinSerial.c(519) : warning C4700: local variable 'result' used
without
having been initialized
..\win\tclWinSerial.c(519) : error C2220: warning treated as error - no
object f
ile generated
NMAKE : fatal error U1077: '"c:\visualstudio\vc98\bin\cl.exe"' : return
code '0x
2'
Stop.
DesiredBehavior:
Successful compilation without errors.
Patch:
(I don't have proper diff in NT - sorry for the inconvenience)
case #1:
E:\ngs\devtools\tcl\tcl\generic>cvs diff -r 1.1 -r 1.2 tclProc.c
Index: tclProc.c
===================================================================
RCS file: /home/cvs/cvsroot/ngs/devtools/tcl/tcl/generic/tclProc.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -r1.1 -r1.2
13c13
< * RCS: @(#) $Id: tclProc.c,v 1.1 1999/03/17 09:13:43 PetteriK Exp $
---
> * RCS: @(#) $Id: tclProc.c,v 1.2 1999/03/17 12:51:21 PetteriK Exp $
1375c1375
< return TclProcInterpProc;
---
> return (TclCmdProcType)TclProcInterpProc;
1400c1400
< return TclObjInterpProc;
---
> return (TclObjCmdProcType)TclObjInterpProc;
case #2:
E:\ngs\devtools\tcl\tcl\win>cvs diff -r 1.1 -r 1.2 tclWinSerial.c
Index: tclWinSerial.c
===================================================================
RCS file: /home/cvs/cvsroot/ngs/devtools/tcl/tcl/win/tclWinSerial.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -r1.1 -r1.2
12c12
< * RCS: @(#) $Id: tclWinSerial.c,v 1.1 1999/03/17 09:13:54 PetteriK Exp $
---
> * RCS: @(#) $Id: tclWinSerial.c,v 1.2 1999/03/17 12:33:19 PetteriK Exp $
453a454
> result = 0;
PatchFiles:
case #1: generic\tclProc.c
case #2: win\tclWinSerial.c
03/24/1999 16:40 - redman - Fixed, I applied the patch manually to both files.
After these modifications the compilation is successful. I used
-DTCL_MEM_DEBUG. The "log" from running the tests is below.
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
if exist "c:\msvc\bin\cl.exe" "c:\msvc\bin\cl.exe"
@C:\TEMP\nma00175.
----
Related bug IDs 1323 & 1324.
if exist "c:\msvc\bin\cl.exe" "c:\msvc\bin\link.exe" /NOLOGO
/ONERROR:NO
EXE /NOE @C:\TEMP\nmc00175.
if exist "c:\msvc\bin\cl.exe" "c:\msvc\bin\rc.exe" -i ..\generic
-D__WIN
32__ -DTCL_MEM_DEBUG ..\win\tcl16.rc .\Debug\tcl1681d.dll
if exist "c:\msvc\bin\cl.exe" "c:\msvc\bin\cl.exe" -Z7 -Od -WX
-c -W3 -n
ologo -YX -Fp.\Debug\ -Dtry=__try -Dexcept=__except -D_X86_=1
-I"c:\msvc\include
" -AL -Fo.\Debug\ ..\win\cat.c
set LIB=c:\msvc\lib
if exist "c:\msvc\bin\cl.exe" "c:\msvc\bin\link.exe" /NOLOGO
/ONERROR:NO
EXE /NOI /STACK:16384
.\Debug\cat.obj,.\Debug\cat16.exe,nul,llibce.lib,nul
copy ..\win\pkgIndex.tcl .\Debug
1 file(s) copied.
set TCL_LIBRARY=../library
.\Debug\tcltest.exe C:\TEMP\nmd00175. ".\Debug\tclreg81d.dll"
(will skip non-portable tests)
(will skip tests that depend on the "e" format of floating-point
numbers)
(will skip tests that depend on Unix-style executables)
Tcl 8.1 tests running in interp:
E:/ngs/devtools/tcl/tcl/win/Debug/tcltest.exe
Tests running in working dir: E:/ngs/devtools/tcl/tcl/win
Tests began at Wed Mar 17 14:23:31 GTB Standard Time 1999
append.test
assocd.test
async.test
autoMkindex.test
basic.test
binary.test
case.test
clock.test
cmdAH.test
cmdIL.test
cmdInfo.test
cmdMZ.test
compExpr-old.test
compExpr.test
compile.test
concat.test
dcall.test
dstring.test
encoding.test
==== encoding-4.1 Tcl_GetEncodingNames FAILED
==== Contents of test case:
file mkdir tmp/encoding
close [open tmp/encoding/junk.enc w]
close [open tmp/encoding/junk2.enc w]
cd tmp
set path [testencoding path]
testencoding path .
set x [encoding names]
testencoding path $path
cd ..
file delete -force tmp
set x
---- Result was:
junk utf-8 cp437 cp1252 junk2 identity unicode iso8859-1
---- Result should have been:
junk utf-8 cp1252 junk2 identity unicode iso8859-1
==== encoding-4.1 FAILED
env.test
error.test
eval.test
event.test
exec.test
execute.test
expr-old.test
expr.test
fCmd.test
fileName.test
==== filename-16.1 windows specific globbing FAILED
==== Contents of test case:
lsort [glob globTest/*.bat]
---- Result was:
globTest/z1.bat
---- Result should have been:
globTest/x1.BAT globTest/y1.Bat globTest/z1.bat
==== filename-16.1 FAILED
==== filename-16.8 windows specific globbing FAILED
==== Contents of test case:
lsort [glob c:globTest/*.bat]
---- Result was:
c:globTest/z1.bat
---- Result should have been:
c:globTest/x1.BAT c:globTest/y1.Bat c:globTest/z1.bat
==== filename-16.8 FAILED
==== filename-16.9 windows specific globbing FAILED
==== Contents of test case:
lsort [glob c:/globTest/*.bat]
---- Result was:
c:/globTest/z1.bat
---- Result should have been:
c:/globTest/x1.BAT c:/globTest/y1.Bat c:/globTest/z1.bat
==== filename-16.9 FAILED
==== filename-16.10 windows specific globbing FAILED
==== Contents of test case:
lsort [glob c:globTest\\\\*.bat]
---- Result was:
c:globTest/z1.bat
---- Result should have been:
c:globTest/x1.BAT c:globTest/y1.Bat c:globTest/z1.bat
==== filename-16.10 FAILED
==== filename-16.11 windows specific globbing FAILED
==== Contents of test case:
lsort [glob c:\\\\globTest\\\\*.bat]
---- Result was:
c:/globTest/z1.bat
---- Result should have been:
c:/globTest/x1.BAT c:/globTest/y1.Bat c:/globTest/z1.bat
==== filename-16.11 FAILED
for-old.test
for.test
foreach.test
format.test
get.test
history.test
http.test
Cannot read httpd script, http test skipped
httpold.test
Running http 1.0 tests in slave interp
(will skip non-portable tests)
(will skip tests that depend on the "e" format of floating-point
numbers)
(will skip tests that depend on Unix-style executables)
httpold.test: Total 31 Passed 31 Skipped 0 Failed
0
if-old.test
if.test
incr-old.test
incr.test
indexObj.test
info.test
init.test
(will skip non-portable tests)
(will skip tests that depend on the "e" format of floating-point
numbers)
(will skip tests that depend on Unix-style executables)
interp.test
io.test
==== io-13.6 TranslateInputEOL: auto mode: saw cr in last segment
FAILED
==== Contents of test case:
# (chanPtr->flags & INPUT_SAW_CR)
set f [open "|[list $tcltest cat]" w+]
fconfigure $f -blocking 0 -buffering none -translation {auto lf}
fileevent $f read "ready $f"
proc ready {f} {
lappend ::x [read $f] [testchannel queuedcr $f]
}
set x {}
puts -nonewline $f "abcdefghj\r"
after 100 {set y ok}
vwait y
puts -nonewline $f "\n01234"
after 100 {set y ok}
vwait y
close $f
set x
---- Result was:
{abcdefghj
01234} 0
---- Result should have been:
{abcdefghj
} 1 01234 0
==== io-13.6 FAILED
==== io-52.8 TclCopyChannel FAILED
==== Contents of test case:
removeFile test1
removeFile pipe
set f1 [open pipe w]
fconfigure $f1 -translation lf
puts $f1 {
puts ready
gets stdin
set f1 [open $thisScript r]
fconfigure $f1 -translation lf
puts [read $f1 100]
close $f1
}
close $f1
set f1 [open "|[list $tcltest pipe]" r+]
fconfigure $f1 -translation lf
gets $f1
puts $f1 ready
flush $f1
set f2 [open test1 w]
fconfigure $f2 -translation lf
set s0 [fcopy $f1 $f2 -size 40]
catch {close $f1}
close $f2
list $s0 [file size test1]
---- Result was:
0 0
---- Result should have been:
40 40
==== io-52.8 FAILED
ioCmd.test
ioUtil.test
join.test
lindex.test
link.test
linsert.test
list.test
listObj.test
llength.test
load.test
libraries in E:/ngs/devtools/tcl/tcl/win/Debug/dltest haven't been
compiled: ski
pping tests
lrange.test
lreplace.test
lsearch.test
macFCmd.test
skipping: Mac only tests...
misc.test
msgcat.test
namespace-old.test
namespace.test
obj.test
opt.test
osa.test
skipping: Mac only tests...
parse.test
parseExpr.test
parseOld.test
pid.test
pkg.test
(will skip non-portable tests)
(will skip tests that depend on the "e" format of floating-point
numbers)
(will skip tests that depend on Unix-style executables)
pkgMkIndex.test
Skipping pkgMkIndex-10.1 (index of DLL and script)
platform.test
==== platform-1.1 TclpSetVariables: tcl_platform FAILED
==== Contents of test case:
lsort [array names tcl_platform]
---- Result was:
byteOrder debug machine os osVersion platform user
---- Result should have been:
byteOrder machine os osVersion platform user
==== platform-1.1 FAILED
proc-old.test
proc.test
pwd.test
reg.test
!!! bypassed 22 tests in reg-23, `reg multicharacter collating
elements'
!!! bypassed 2 tests in reg-26, `reg mixed quantifiers'
regexp.test
registry.test
rename.test
resource.test
skipping: Mac only tests...
result.test
safe.test
scan.test
security.test
set-old.test
set.test
socket.test
Skipping tests with remote server. See tests/socket.test for
information on how to run remote server.
Reason for not doing remote tests: couldn't open socket: connection
refused
source.test
split.test
stack.test
string.test
stringObj.test
subst.test
switch.test
thread.test
skipping: tests require the testthread command
timer.test
trace.test
unixFCmd.test
skipping: Unix only tests...
unixFile.test
skipping: Unix only tests...
unixInit.test
skipping: Unix only tests...
unixNotfy.test
skipping: Unix only tests...
unknown.test
uplevel.test
upvar.test
utf.test
util.test
var.test
while-old.test
while.test
winFCmd.test
winFile.test
winNotify.test
winPipe.test
You should see this
Tests ended at Wed Mar 17 14:28:02 GTB Standard Time 1999
all.tcl: Total 8057 Passed 7723 Skipped 325 Failed
9
Sourced 103 Test Files.
Files with failing tests: encoding.test fileName.test io.test
platform.test
welch Deleted ticket [218631ffff].
[History diff]2000-10-26 08:26:09
dgp Ticket [218631ffff]: 3 changes
[History diff]2001-04-05 08:22:17
Log in (anonymous is fine) to add a comment.