Skip to content
Tcl Source Code History Of Ticket 533862ffffffffff
Login

History Of Ticket 533862ffffffffff

Artifacts Associated With Ticket 533862ffffffffff

  1. Ticket change [a9b260da22] (rid 99189) by mefy on 2002-03-23 01:33:15:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
    4. foundin initialized to: "obsolete: 8.4a4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "mefy"
    9. subsystem initialized to: "53. Configuration and Build Tools"
    10. title initialized to: "VC6 Makefile doesn't work for Win98"
    11. type initialized to: "Bug"
  2. Ticket change [4a883d9477] (rid 126549) by davygrvy on 2002-03-23 08:41:51:

    1. assignee changed to: "davygrvy"
  3. Ticket change [3142e42126] (rid 93393) by davygrvy on 2002-03-23 08:56:17:

    1. title changed to: "VC Makefile doesn't work for Win98"
  4. Ticket change [81129ea71d] (rid 116977) by mefy on 2002-03-23 09:35:07:

    1. 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
      
      
      
    2. login: "mefy"
    3. mimetype: "text/plain"
    4. username: "mefy"
  5. Ticket change [a82381792b] (rid 98924) by davygrvy on 2002-03-23 09:48:40:

    1. 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.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  6. Ticket change [40ab4149b2] (rid 116056) by davygrvy on 2002-03-23 10:10:03:

    1. 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.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  7. Ticket change [e9242dba82] (rid 104762) by mefy on 2002-03-23 11:38:21:

    1. 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
      
      
      
    2. login: "mefy"
    3. mimetype: "text/plain"
    4. username: "mefy"
  8. Ticket change [cbdbac27fc] (rid 95592) by davygrvy on 2002-03-23 12:30:16:

    1. 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?
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  9. Ticket change [a87b296931] (rid 98999) by mefy on 2002-03-23 13:01:38:

    1. 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
      
      
    2. login: "mefy"
    3. mimetype: "text/plain"
    4. username: "mefy"
  10. Ticket change [909da1df5d] (rid 120480) by mefy on 2002-03-23 13:37:37:

    1. 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
      
      
      
    2. login: "mefy"
    3. mimetype: "text/plain"
    4. username: "mefy"
  11. Ticket change [e90e90d24c] (rid 104748) by mefy on 2002-03-23 14:02:57:

    1. 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
      
      
    2. login: "mefy"
    3. mimetype: "text/plain"
    4. username: "mefy"
  12. Ticket change [f2881dec77] (rid 109558) by dkf on 2002-03-25 17:56:16:

    1. 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... :^(
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  13. Ticket change [0f13389028] (rid 94730) by mefy on 2002-03-26 13:26:39:

    1. icomment:
      
      
      File Added - 20050: vcbuild.patch
      
      
      
    2. login: "mefy"
    3. mimetype: "text/plain"
    4. username: "mefy"
  14. Add attachment "vcbuild.patch" [70b09a6216] (rid 100528) by mefy on 2002-03-26 13:26:39.

  15. Ticket change [55a8bfb511] (rid 94181) by mefy on 2002-03-26 14:24:55:

    1. 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
      
      
      
    2. login: "mefy"
    3. mimetype: "text/plain"
    4. username: "mefy"
  16. Ticket change [de367158ae] (rid 114806) by davygrvy on 2002-03-26 16:51:19:

    1. 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..
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  17. Ticket change [3f87144f2f] (rid 121473) by davygrvy on 2002-03-27 08:45:50:

    1. 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.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  18. Ticket change [7787f9bf79] (rid 89791) by davygrvy on 2002-03-27 17:22:31:

    1. 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.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  19. Add attachment "patch.txt" [fa462b7538] (rid 91841) by davygrvy on 2002-03-27 17:22:31.

  20. Ticket change [8adee3bd17] (rid 127461) by davygrvy on 2002-03-28 06:01:06:

    1. 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.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  21. Ticket change [ff15e04436] (rid 108701) by mefy on 2002-03-28 08:33:40:

    1. 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
      
      
      
    2. login: "mefy"
    3. mimetype: "text/plain"
    4. username: "mefy"
  22. Ticket change [3281da29bb] (rid 93625) by davygrvy on 2002-03-29 06:37:47:

    1. 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.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  23. Ticket change [9e8aa50e4c] (rid 96487) by davygrvy on 2002-03-29 08:21:53:

    1. closedate changed to: "2002-03-29T01:21:53"
    2. closer changed to: "davygrvy"
    3. icomment:
      Logged In: YES 
      user_id=7549
      
      Let me know how things are working. thanks.
      
      
    4. login: "davygrvy"
    5. mimetype: "text/plain"
    6. status changed to: "Pending"
    7. username: "davygrvy"
  24. Ticket change [d6e9b80465] (rid 123889) by mefy on 2002-03-30 12:51:38:

    1. icomment:
      Logged In: YES 
      user_id=209568
      
      Both Tcl and Tk build now on Win98. Thanks.
      
      
      
    2. login: "mefy"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "mefy"
  25. Ticket change [e73d258859] (rid 104415) by mefy on 2002-03-30 12:51:58:

    1. closedate changed to: "2002-03-30T05:51:58"
    2. closer changed to: "mefy"
    3. icomment:
      Logged In: YES 
      user_id=209568
      
      Both Tcl and Tk build now on Win98. Thanks.
      
      
      
    4. login: "mefy"
    5. mimetype: "text/plain"
    6. status changed to: "Pending"
    7. username: "mefy"
  26. Ticket change [e7fd2524b0] (rid 104568) by davygrvy on 2002-03-30 13:20:23:

    1. closedate changed to: "2002-03-30T06:20:23"
    2. closer changed to: "davygrvy"
    3. icomment:
      Logged In: YES 
      user_id=7549
      
      Great news.  On to feature enhancements...
      
      
    4. login: "davygrvy"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "davygrvy"