Overview
| Artifact ID: | d52f6b3f01e9278ddba5b070f43f9a51111e44fd |
|---|---|
| Ticket: | 1031781fffffffffffffffffffffffffffffffff
Problems building on Windows 2k with VS.NET |
| User & Date: | saurabh_b on 2005-09-13 13:42:16 |
Changes
- icomment:
Logged In: YES user_id=1343680 I am also trying to build TCL 64 bit on AMD64 machine using MS VS2005 Beta. I have a basci q'n. Do we have to use NMAKE tool? Hi There, Today I did some more research and was able to compile TCL x64!!! The issue is in LINK as I get error CVTRES : fatal error CVT1100: duplicate resource. type:VERSION, name:1, language:0x0409. I suppose this is happening because we have two .rc files in the project. tclsh.rc and tcl.rc . There seems to be a conflict in what resource to use. One is for dll and the other for application. I have a feeling that we need two modules(.dsps) for the dll and tclsh. Also, there are a couple of helper files like CAT.C and STUB16.C, each has a main() and this conflicts with the main of tclsh. I had to remove these from the project to compile. I guess that is wrong thing to do. Also, in the MSVS VC6.0 the project loads itself in the Makefile mode and builds fine. Now, I need to know which option is less time consuming and repeatable? 1.Adapt the VC6.0 Makefile.vc to VC8.0 2.Understand the dependencies of dll and tclsh and create new modules for the tcl project. I am using TCL 8.4.2. Thanks in advance, Saurabh -----Original Message----- From: [email protected] [mailto:tcl-win- [email protected]] Sent: Friday, September 09, 2005 3:45 PM To: [email protected] Cc: [email protected]; [email protected] Subject: RE: [WINTCL] Re:Compiling tcl 8.4.9 with VS.NET 2005 Beta 2 compiler? Hi Experts, The first issue is solved leading to the next! .\tclWinFile.c(1604) : error C2037: left of 'st_size' specifies undefined struct/union '_stati64' I found _stati_64 defined in <sys/stat.h>. #define _fstati64 _fstat64 Hence I have included this header(hopefully no duplicate code will result!!!) in all the code which was throwing this error. In tcl-8.4.2\generic\ tclCmdAH.c tclFCmd.c tclFileName.c tclIOUtil.c tclTest.c In c:\tcl-8.4.2\win\tclWinFile.c Moved #include <sys/stat.h> before all other includes. Previously, it was #include "tclWinInt.h" #include <winioctl.h> #include <sys/stat.h> Also, NULL was not being able to reference it's definition in stdio.h. Add #include <stdio.h> to regc_nfa.c Now, I am facing this error regarding old C way of defining functions: ..\generic\regerror.c(53) : error C2081: 'preg' : name in formal parameter list illegal ..\generic\regerror.c(53) : error C2081: 'errbuf' : name in formal parameter list illegal ..\generic\regerror.c(53) : error C2081: 'errbuf_size' : name in formal parameter list illegal - regerror - the interface to error numbers */ /* ARGSUSED */ size_t/* actual space needed (including NUL) */ regerror(errcode, preg, errbuf, errbuf_size) int errcode;/* error code, or REG_ATOI or REG_ITOA */ CONST regex_t *preg;/* associated regex_t (unused at present) */ char *errbuf;/* result buffer (unless errbuf_size==0) */ size_t errbuf_size;/* available space in errbuf, can be 0 */ { ..... ... } I can see #define regerror TclReError in regex.h as: extern size_t regerror _ANSI_ARGS_((int, __REG_CONST regex_t *, char *, size_t)); To me the declaration and usage seems alright!  Any clues? Should I be writing to the TCL developers list? Saurabh -----Original Message----- From: [email protected] [mailto:tcl-win- [email protected]] On Behalf Of Saurabh Bhatnagar Sent: Tuesday, September 06, 2005 10:56 AM To: 'David Gravereaux'; [email protected] Subject: RE: [WINTCL] Re:Compiling tcl 8.4.9 with VS.NET 2005 Beta 2 compiler? Okay! I take this up. I am less into applications so it may take me some time... Attached is my build log. The first issue to handle is this: .\tclWinFile.c(1604) : error C2037: left of 'st_size' specifies undefined struct/union '_stati64' If anyone is working on this, your comments are welcome! Saurabh -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of David Gravereaux Sent: Friday, September 02, 2005 12:03 PM To: [email protected] Subject: Re: [WINTCL] Re:Compiling tcl 8.4.9 with VS.NET 2005 Beta 2 compiler? Saurabh Bhatnagar wrote: > Hi Jeff, > Saw your email on VS.NET 2005 Beta 2 compiler. > > I have similar issues. > > I am building TCL 8.4.2 using x64(AMD64) compiler of VS 2005 Beta. > > Somehow there are too many conflicts with the VS header files for trivial > functions like sprintf etc. > > I wonder weather this version supports 64 bit at all. > > I am able to build TCL8.4.2 for 32 bit using MSVC++ 6.0 compiler. > > Can anyone confirm which version of TCL supports x64 configuration? > > Thanks > Saurabh > How about fixing it and submitting a patch? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Tcl-win mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tcl-win
- login: "saurabh_b"
- mimetype: "text/plain"
- username: "saurabh_b"