Skip to content
Tcl Source Code Artifact [52329d8bc5]
Login

Artifact [52329d8bc5]

Artifact 52329d8bc50c23c58d8999d0f7f7195e2d20da03:

Ticket change [52329d8bc5] - New ticket [2651823fffffffff|2651823fff] <i>Tcl_StatBuf definition problem with VS2005 and Win XP x64</i>. by lubatti on 2009-03-01 13:49:10.
D 2009-03-01T13:49:10
J assignee stwo
J cmimetype text/plain
J comment TCL\sversion\s8.5.6\n\nI\sfound\sa\sproblem\swhen\strying\sto\sbuild\sTCL\sversion\s8.5.6\susing\sVisual\sStudio\s2005\sSP1\son\sa\sAMD64\smachine\swith\sWindows\sXP\sProfessional\sx64\sedition.\nI'm\snot\sable\sto\scompile,\ssince\swhen\s\sI\sgive\sthe\scommand:\n\nnmake\s-nologo\s-b\s-f\smakefile.vc\sMACHINE=AMD64\srelease\n\nI\sget\sthe\sfollowing\serror\s(see\sfile\serror.log):\n\nNMAKE\s:\sfatal\serror\sU1077:\s'"D:\\Program\sFiles\s(x86)\\Microsoft\sVisual\sStudio\s8\\VC\\BIN\\amd64\\cl.EXE"'\s:\sreturn\scode\s'0x2'\n\nduring\scompilation\sI\snoticed\sthe\sfollowing\sunrecoverable\serror\s(see\sfile\srun.log):\n\n..\\generic\\tclCmdAH.c(818)\s:\serror\sC2079:\s'buf'\suses\sundefined\sstruct\s'_stati64'\n..\\generic\\tclEncoding.c(3522)\s:\serror\sC2079:\s'stat'\suses\sundefined\sstruct\s'_stati64'\n..\\generic\\tclFCmd.c(113)\s:\serror\sC2079:\s'statBuf'\suses\sundefined\sstruct\s'_stati64'\n..\\generic\\tclFCmd.c(229)\s:\serror\sC2079:\s'statBuf'\suses\sundefined\sstruct\s'_stati64'\n..\\generic\\tclFCmd.c(365)\s:\serror\sC2079:\s'statBuf'\suses\sundefined\sstruct\s'_stati64'\n..\\generic\\tclFCmd.c(489)\s:\serror\sC2079:\s'sourceStatBuf'\suses\sundefined\sstruct\s'_stati64'\n..\\generic\\tclFCmd.c(489)\s:\serror\sC2079:\s'targetStatBuf'\suses\sundefined\sstruct\s'_stati64'\n..\\generic\\tclFileName.c(2525)\s:\serror\sC2027:\suse\sof\sundefined\stype\s'_stati64'\n\s\s\s\s\s\s\s\sd:\\fausto\\tcl_tk_8.5.6\\tcl8.5.6\\generic\\tcl.h(372)\s:\ssee\sdeclaration\sof\s'_stati64'\n..\\generic\\tclIOUtil.c(68)\s:\serror\sC2079:\s'buf'\suses\sundefined\sstruct\s'_stati64'\n..\\generic\\tclIOUtil.c(1748)\s:\serror\sC2079:\s'statBuf'\suses\sundefined\sstruct\s'_stati64'\n..\\generic\\tclIOUtil.c(2886)\s:\serror\sC2079:\s'buf'\suses\sundefined\sstruct\s'_stati64'\n..\\generic\\tclIOUtil.c(4130)\s:\serror\sC2079:\s'sourceStatBuf'\suses\sundefined\sstruct\s'_stati64'\n\nAll\sthose\sstructure\srefer\sto\styoe\sTcl_StatBuf\swhich\sis\sdefined\sin\sthe\stcl.h,\sso\sI\srevert\sto\sthis\sfile.\nSo\sI\slooked\sot\sthe\sfile\stcl.h\sin\sthe\sgeneric\sdirctory\sof\stcl\ssources\sand\slook\sat\sthe\soriginal\sdefinition,\swhich\sI\sreport\shere:\n\n\n#\s\s\s\s\s\s\s\s\sif\s_MSC_VER\s<\s1400\s||\s!defined(_M_IX86)\ntypedef\sstruct\s_stati64Tcl_StatBuf;\n#\s\s\s\s\s\s\s\s\selse\ntypedef\sstruct\s_stat64Tcl_StatBuf;\n#\s\s\s\s\s\s\s\s\sendif\s/*\s_MSC_VER\s<\s1400\s*/\n#\s\s\s\s\s\s\s\s\sdefine\sTCL_LL_MODIFIER"I64"\n#\s\s\s\s\s\sendif\s/*\s__BORLANDC__\s*/\n\nIt\slooks\slike\sthat\sif\syou\sare\susing\sa\sversion\sless\sthan\sVs\s2005\sor\syou\sare\snot\sbuilding\sfor\sa\sX86\s(like\sI\sam)\smachine,\sI\sget\sthe\sdefinition\n\ntypedef\sstruct\s_stati64Tcl_StatBuf;\n\nwhich\sis\snot\sgood\sfor\sthe\scompiler.\n\nI\schanged\sthe\stest\swith\sa\sslightly\sdifferent\sversion:\n\n#\s\s\s\s\s\s\s\s\sif\s_MSC_VER\s>=\s1400\s&&\sdefined(_M_X64)\ntypedef\sstruct\s_stat64Tcl_StatBuf;\n#\s\s\s\s\s\s\s\s\selif\s_MSC_VER\s<\s1400\s||\s!defined(_M_IX86)\ntypedef\sstruct\s_stati64Tcl_StatBuf;\n#\s\s\s\s\s\s\s\s\selse\ntypedef\sstruct\s_stat64Tcl_StatBuf;\n#\s\s\s\s\s\s\s\s\sendif\s/*\s_MSC_VER\s<\s1400\s*/\n#\s\s\s\s\s\s\s\s\sdefine\sTCL_LL_MODIFIER"I64"\n#\s\s\s\s\s\sendif\s/*\s__BORLANDC__\s*/\n\nso\son\smy\smachine\s(AMD64)\sand\sbuilding\sfor\san\sAMD64\swith\sVS\s2005\sI\sget\sthe\sfollowing\sdefinition:\n\ntypedef\sstruct\s_stat64Tcl_StatBuf;\n\nThe\smodification\sto\sthe\sif\sstatement\swill\sleave\sthe\soriginal\sdefinitions\sfor\sversions\sless\sthan\sVS\s2500,\sthat\sI\spresume\swas\sthe\sintent\sof\sthe\soriginal\sstatement,\s\nand\salso\sleaves\sthe\soriginal\sdefinition\swhen\sbuilding\son\sWindows\sXP\sProfessional\sEdition\sfor\sX86\s(32\sbit\sversion).\n\nAs\sa\sgeneral\ssuggestion,\sI\swould\schange\sthat\sstatement,\sand\srather\sthan\stesting\s_M_IX86\sand\s_M_X64,\swhich\sidentify\sthe\sspecific\sprocessor,\sand\sprobably\sis\snot\spertinent\ntoo\smuch\swith\sthe\sdefinition\sof\sTcl_statBuf,\si\swould\suse\sthe\svariable\s_WIN64\swhich\sidentify\sif\syou\sare\sbuilding\swor\sa\swin32\sor\swin64\ssystem,\sleaving\sthe\salternatuve\sdefinition\nonly\sfor\sold\sVisual\sStudio\sversion\sthat\sbuild\sfor\swin64\s(if\sever\ssupported...)\n\n#\s\s\s\s\s\s\s\s\sif\s_MSC_VER\s<\s1400\s&&\sdefined(_WIN64)\ntypedef\sstruct\s_stati64Tcl_StatBuf;\n#\s\s\s\s\s\s\s\s\selse\ntypedef\sstruct\s_stat64Tcl_StatBuf;\n#\s\s\s\s\s\s\s\s\sendif\s/*\s_MSC_VER\s<\s1400\s*/\n#\s\s\s\s\s\s\s\s\sdefine\sTCL_LL_MODIFIER"I64"\n#\s\s\s\s\s\sendif\s/*\s__BORLANDC__\s*/\n\n\nI\shave\sno\sother\sVisual\sStudio\sversions,\sor\sother\smachines\sto\ssee\sif\sthis\sworks\salso\son\shigher\sversion\sof\sVisual\sStudio,\sor\sdifferent\smachine\sarchitecture.\n\nI\sattach\sthe\sfollowing\sfiles:\n\nmake_amd64.bat\s\s\s(the\sbat\sthat\sI\suse\sto\srebuild\son\sWindows\sXP\sx64\sfor\sthe\sAMD64\starget\smachine\susing\sVisual\sStudio\s2005\sSP1)\nmake_win32.bat\s\s\s(the\sbat\sthat\sI\suse\sto\srebuild\son\sWindows\sXP\sfor\sthe\swin32\starget\smachine\susing\sVisual\sStudio\s2005\sSP1)\nrun.log\s\s\s\s\s\s\s\s\s\s(the\slog\sfile\sproduced\swhen\sbuilding\son\sthe\sx64\smachine\susing\sAMD64\sas\sthe\starget\smachine)\nerror.log\s\s\s\s\s\s\s\s(the\serror\slog\sfile\sproduced\swhen\sbuilding\son\sthe\sx64\smachine\susing\sAMD64\sas\sthe\starget\smachine)\ntcl.h\s\s\s\s\s\s\s\s\s\s\s\s(the\stcl.h\sfile\sthat\sbuild\scorrectly\sboth\son\sx64\sand\son\swin32\smachine)\ntcl_original.h\s\s\s(the\soriginal\s8.5.6\sdistribuited\stcl.h\sfile\sthat\sfails\son\sx64\sbuilds\scorrectly\son\swin32\smachine)\n\nHope\sthis\shelps.\n\nRegards\n\nFausto\sLubatti\[email protected]
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter lubatti
J subsystem 53.\sConfiguration\sand\sBuild\sTools
J title Tcl_StatBuf\sdefinition\sproblem\swith\sVS2005\sand\sWin\sXP\sx64
J type Bug
K 2651823fffffffffffffffffffffffffffffffff
U lubatti
Z a69cb9b54d9b6a628bcbf23e3bc0e810