This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Compiling Tcl8.1 using Cygwin B20 - HELP!


Hi there,

I have been trying to compile up Tcl8.1 using Cygwin, and I can't do it.
Anyone know how to do it?

Environment

1. Installed cygwin b20 from full.exe.
     In the BASH shell: gcc -v    -->  gcc version egcs-2.91.57 19980901
(egcs-1.1 release)

2. From FTP...gnuwin32/cygwin/gcc-2.95, downloaded: gcc-2.95-cygb20.tar.gz.
Untarred file in:  d:/cygnus/cygwin-b20.
     gcc -v -->  gcc version 2.95 19990728 (release)

3. Downloaded Tcl/Tk v8.1 source from scriptics FTP site, applied patches
from M.Khan's FTP...software/tcl dir.

4. Downloaded and applied patch to w32api-0.1.5 package



Tcl

1. Edited win/Makefile.gnu.   Set variables to point to correct places, I
left TARGET blank.  I have set the Makefile to compile WITHOUT -mno-cygwin.
2. Running make -f Makefile.gnu compiles away..........  Then Win95 fatal
exception error:  Last file to be created before crash is tcl.res.o
(1Kbyte).
3. Re-booting machine - try running makefile.gnu again.  This time there is
no crash.  Goes away and creates the DLLs - then fails trying to compile a
file tclwindde.c.  THIS DOES NOT HANG THE MACHINE, just a return to the
BASH shell prompt.
4. The files created by the second running of the makefile are:

     tclreg81.dll   783 kbytes
     libtclstub81.a 230 k
     tclWinReg.o    254 k
     stub16.o  3k
     tclpip81.dll   296k
     tclsh.res.o    1k
     tcl81.dll      2,416 k
     libtcl81.a     608 k

5. Running the tclsh81.exe  causes the shell to load, although there is a
message at the top of the shell:
     application-specific initialization failed: can't find a usable
init.tcl in <..... loads of paths ...>

6. Can use the strip command as you suggested to reduce the size of the
tcl81.dll file to approx 470 kbytes.

Even though this compilation is a bit dodgy, I presume the Tcl81.dll file
is usable since it has been created.


Tk

1. Edit Makefile.gnu.    Same as for Tcl GNU makefile, except need to set
pointer to Tcl directory.  Strangely this is set to tcl81b3 in the original
makefile.  I edit this to point directly to d:/tcl_on_d/tcl8.1.
2. Run makefile  ->  compilation gets so far, then fails compiling:
TkWinDialog.c - complaining about undeclared identifiers:

     FILEOPENORD
     edt10
     lst2
     edt1
     cmb2



If anyone can assist me with the compilation of any version of Tcl 8.x  I
would be grateful.


Many thanks,

Ben Wimpory
ARC Cores Ltd.
mailto: ben.wimpory@arccores.com






--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]