Artifacts Associated With Ticket 533862ffffffffff
Ticket change [a9b260da22] (rid 99189) by mefy on 2002-03-23 01:33:15:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The current makefile for building Tcl 8.4a4 on Windows depends on exotic features of the Windows NT shell, making it unusable for people trying to build with Windows 95/98. I will try to list all the problems in this bug report. makefile.vc and rules.vc are the files that need to be fixed. This also applies to the makefile.vc and rules.vc for Tk. Mark Follett
- foundin initialized to: "obsolete: 8.4a4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "mefy"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "VC6 Makefile doesn't work for Win98"
- type initialized to: "Bug"
Ticket change [4a883d9477] (rid 126549) by davygrvy on 2002-03-23 08:41:51:
- assignee changed to: "davygrvy"
Ticket change [3142e42126] (rid 93393) by davygrvy on 2002-03-23 08:56:17:
- title changed to: "VC Makefile doesn't work for Win98"
Ticket change [81129ea71d] (rid 116977) by mefy on 2002-03-23 09:35:07:
- icomment:
Logged In: YES user_id=209568 Rules.vc does some compiler tests which try to redirect stderr to stdin. After doing some searching on the net I've concluded that this is impossible to do with the Windows 95/98 command.com. Possible solutions would be: 1) Figure out a way to do the compiler tests without redirecting stderr. From David G's comments on comp.lang.tcl this doesn't appear to be possible. 2) Distribute a tiny executable with Tcl which will redirect stderr. DJGPP has a tool called redir.exe that will do this. It is described in the FAQ here: http://www.delorie.com/djgpp/v2faq/faq6_15.html Mark Follett
- login: "mefy"
- mimetype: "text/plain"
- username: "mefy"
- icomment:
Ticket change [a82381792b] (rid 98924) by davygrvy on 2002-03-23 09:48:40:
- icomment:
Logged In: YES user_id=7549 A helper app is a good idea. redirecting is easily done from C and we don't to look much farther than Tcl's own cat.c and stub16.c for examples.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [40ab4149b2] (rid 116056) by davygrvy on 2002-03-23 10:10:03:
- icomment:
Logged In: YES user_id=7549 cl.exe runs happily detached, so we can do this no problem. I'll work on the c code for this. It won't take too much work for me to do it.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [e9242dba82] (rid 104762) by mefy on 2002-03-23 11:38:21:
- icomment:
Logged In: YES user_id=209568 Ok, on to the next problem: All of the !if directives that use the exit code of find are broken. It appears that the exit code it gets is always zero. This is why it would always do a release build: it always takes the first !if branch which sets all the options to 0. I wrote a batch file to test the output of find and got strange results. Test.bat: echo "abc" | find "abc" if errorlevel 1 echo didn't find it. if errorlevel 0 echo found it. echo "abc" | find "123" if errorlevel 1 echo didn't find it. if errorlevel 0 echo found it. Result: >echo "abc" | find "abc" "abc" >if errorlevel 1 echo didn't find it. >if errorlevel 0 echo found it. found it. >echo "abc" | find "123" >if errorlevel 1 echo didn't find it. didn't find it. >if errorlevel 0 echo found it. found it. In the second case errorlevel is 0 and 1 at the same time! Dave, please try this out and let me know if you get the same output. I don't know if the problem is with find, nmake, or command.com. Mark Follett
- login: "mefy"
- mimetype: "text/plain"
- username: "mefy"
- icomment:
Ticket change [cbdbac27fc] (rid 95592) by davygrvy on 2002-03-23 12:30:16:
- icomment:
Logged In: YES user_id=7549 probably command.com. At least on NT, cmd.exe is well hosed in numerous areas. How can MS get away with this stuff?
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [a87b296931] (rid 98999) by mefy on 2002-03-23 13:01:38:
- icomment:
Logged In: YES user_id=209568 Nevermind about the batch file. The output is correct. "if errorlevel N" will be true if the exit code is greater than or equal to N. I wrote a little app (A) that would return the exit code and tried it out with nmake and had the same problem-- nmake would always get 0. I then tried (B) and it worked. In both situations the batch file test would give me the same output. I guess find is just returning the code instead of calling exit(). A: int main () {return 1;} B: int main () {exit (1);} Mark Follett - login: "mefy"
- mimetype: "text/plain"
- username: "mefy"
- icomment:
Ticket change [909da1df5d] (rid 120480) by mefy on 2002-03-23 13:37:37:
- icomment:
Logged In: YES user_id=209568 Ack, the last post is nonsense. I must have been seeing things because 'return 1' works fine. I think the problem is with piping echo to find. I tried: echo 123 | find "abc" and find "123" words.txt where words.txt contains "abc" The first one will return 0, whereas the second will return 1. I think it may be returning the exit status of echo in the first one. Mark Follett
- login: "mefy"
- mimetype: "text/plain"
- username: "mefy"
- icomment:
Ticket change [e90e90d24c] (rid 104748) by mefy on 2002-03-23 14:02:57:
- icomment:
Logged In: YES user_id=209568 An ugly solution to this problem: !if [echo "$(OPTS)" > options.txt] !endif .......code........... !if ![find /i "static" options.txt > nul] .......more code...... !if [del options.txt] !endif This will spit out some of find's output to the console even though we got " > nul" in there. Mark Follett
- login: "mefy"
- mimetype: "text/plain"
- username: "mefy"
- icomment:
Ticket change [f2881dec77] (rid 109558) by dkf on 2002-03-25 17:56:16:
- icomment:
Logged In: YES user_id=79902 Note re Test.bat behaviour described below: memories of my DOS programming days say that "if errorlevel n" is defined as behaving as "if errorlevel >= n"; I remember this, because it made writing complex batch scripts an interesting challenge... :^(
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [0f13389028] (rid 94730) by mefy on 2002-03-26 13:26:39:
- icomment:
File Added - 20050: vcbuild.patch
- login: "mefy"
- mimetype: "text/plain"
- username: "mefy"
- icomment:
Add attachment "vcbuild.patch" [70b09a6216] (rid 100528) by mefy on 2002-03-26 13:26:39.
Ticket change [55a8bfb511] (rid 94181) by mefy on 2002-03-26 14:24:55:
- icomment:
Logged In: YES user_id=209568 Submitted a patch for makefile.vc and rules.vc which uses the DJGPP redir program. In addition to the changes for redirecting stderr and using a temporary text file to hold the input for find, I had to remove the use of '&' in makefile.vc for chaining multiple commands together. I also had to change the use of @if in the following code: !if [@for %d in (temp.idb temp.pdb) do @if exist %d del %d] You can only use '@' at the beginning of a line so I've just expanded it to: !if [@if exist temp.idb del temp.idb] !endif !if [@if exist temp.pdb del temp.pdb] !endif Mark Follett
- login: "mefy"
- mimetype: "text/plain"
- username: "mefy"
- icomment:
Ticket change [de367158ae] (rid 114806) by davygrvy on 2002-03-26 16:51:19:
- icomment:
Logged In: YES user_id=7549 I'm working on an all-in-one helper app, so we can stop hacking at the batch oddites for the moment. I hope to alleviate all the funny stuff. I'll be a few more days on it. I had no idea how different Win9x was..
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [3f87144f2f] (rid 121473) by davygrvy on 2002-03-27 08:45:50:
- icomment:
Logged In: YES user_id=7549 Q: When does 152 lines of C equal a one liner from the shell? A: doesn't work that way on Win9x, sorry. Use the C instead. I got the compiler test working: D:\>nmakehlp -QQ D:\>echo %errorlevel% 1 D:\>nmakehlp -MD D:\>echo %errorlevel% 0 (-QQ is a non-existent option) Next to add is the find command, give it a switch to tell the difference, and integrate it into rules.vc for a single pass build. The nasty part is that I don't yet know where the intermediate directory is yet.. it's in the options I can't read because of the find.exe problem... chicken/egg fun. So this will have to build itself in the windows source directory.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [7787f9bf79] (rid 89791) by davygrvy on 2002-03-27 17:22:31:
- icomment:
File Added - 20121: patch.txt Logged In: YES user_id=7549 Attached is a new patch that should fix everything. If possible please test it. Or I could just commit it, and try it from an update. Let me know if you want me to just commit it.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Add attachment "patch.txt" [fa462b7538] (rid 91841) by davygrvy on 2002-03-27 17:22:31.
Ticket change [8adee3bd17] (rid 127461) by davygrvy on 2002-03-28 06:01:06:
- icomment:
Logged In: YES user_id=7549 I decided to commit the changes anyways. do an update and let me know how things are doing. We're getting closer -- I'm sure of it.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [ff15e04436] (rid 108701) by mefy on 2002-03-28 08:33:40:
- icomment:
Logged In: YES user_id=209568 Thanks David, works good. I see two more things that need to be done: 1) fix rules.vc for Tk-- it's pretty much the same as the Tcl one except it doesn't have the compiler tests. 2) fix makefile.bc for Tcl. It is using '&' for combining multiple commands. I was browsing through the Borland makefile and it looks fairly similar to the VC one. I wonder if the VC and Borland makefiles could be combined into one.... Mark Follett
- login: "mefy"
- mimetype: "text/plain"
- username: "mefy"
- icomment:
Ticket change [3281da29bb] (rid 93625) by davygrvy on 2002-03-29 06:37:47:
- icomment:
Logged In: YES user_id=7549 changes committed to Tk now. There's still some NT cruft left, but we're closer. rules.vc is now an exact copy of the one from Tcl. This is by design, actually.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [9e8aa50e4c] (rid 96487) by davygrvy on 2002-03-29 08:21:53:
- closedate changed to: "2002-03-29T01:21:53"
- closer changed to: "davygrvy"
- icomment:
Logged In: YES user_id=7549 Let me know how things are working. thanks.
- login: "davygrvy"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "davygrvy"
Ticket change [d6e9b80465] (rid 123889) by mefy on 2002-03-30 12:51:38:
- icomment:
Logged In: YES user_id=209568 Both Tcl and Tk build now on Win98. Thanks.
- login: "mefy"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "mefy"
- icomment:
Ticket change [e73d258859] (rid 104415) by mefy on 2002-03-30 12:51:58:
- closedate changed to: "2002-03-30T05:51:58"
- closer changed to: "mefy"
- icomment:
Logged In: YES user_id=209568 Both Tcl and Tk build now on Win98. Thanks.
- login: "mefy"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "mefy"
Ticket change [e7fd2524b0] (rid 104568) by davygrvy on 2002-03-30 13:20:23:
- closedate changed to: "2002-03-30T06:20:23"
- closer changed to: "davygrvy"
- icomment:
Logged In: YES user_id=7549 Great news. On to feature enhancements...
- login: "davygrvy"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "davygrvy"