[Xotcl] NX on windows

Gustaf Neumann neumann at wu.ac.at
Mon Jul 30 09:59:01 CEST 2012


The problem with the compile below is very wierd. The key is 
in the following line where cpp (the c pre-processor) 
complains about an invalid argument

../../sources/tcl8.5/win/../generic/regcustom.h:33:20: 
error: ../../sources/tcl8.5/win/../generic/tclInt.h: Invalid 
argument

The "invalid argument" is strange, because it does not say 
at all, what the problem is (gcc is normally more specific). 
This message is a generic error message from c-library. Some 
more investigation revealed that the problem has to do with 
the size (!!!) of tclInt.h. Shortening it to e.g. 126785 
bytes lets cpp process it (but of course, later other 
problems occurred). I had the sources on the host and 
mounted it from the windows environment in the vbox, and 
assigned it to the drive letter "y:".

Copying the full tree to "c:" solved this issue. Very weird. 
After digging into tcl's platform specific defines it took 
me quite a while to start to distrust cpp. Not sure, whether 
this is a bug in cpp, win7 or vbox, but i am posting it here 
in the hope, that maybe someone who runs into the same 
problem might google it and save some time.

On drive c, compilation of tcl and tk worked perfectly 
(tried tcl 8.5.12).

-gustaf neumann



On 27.07.12 12:32, Gustaf Neumann wrote:
>
> Y:\win\kbs\MINGW32_NT-6.1\tcl>make
> gcc -c -O2 -fomit-frame-pointer -Wall 
> -I"../../sources/tcl8.5/win/../generic" -DTCL_TOMMATH 
> -DMP_PREC=4 -I"../../sources/tcl8.5/win/../libtommath"
> -I"../../sources/tcl8.5/win" -pipe -DPACKAGE_NAME=\"\" 
> -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
> -DSTDC_HEADERS=1 -DHAVE_NO_SEH=1 
> -DEXCEPTION_DISPOSITION=int -DHAVE_WINNT_IGNORE_VOID=1 
> -DHAVE_ALLOCA_GCC_INLINE=1 -DHAVE_CAST_TO_UNION=1 
> -DHAVE_NO_STRUCT_STAT32I64=1 
> -DTCL_CFGVAL_ENCODING=\"cp1252\" -DSTATIC_BUILD=1 
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
> -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DTCL_CFG_OPTIMIZED=1 
> -DTCL_CFG_DEBUG=1   -DBUILD_tcl 
> "../../sources/tcl8.5/win/../generic/regcomp.c" -o regcomp.o
> In file included from 
> ../../sources/tcl8.5/win/../generic/regguts.h:36:0,
>                  from 
> ../../sources/tcl8.5/win/../generic/regcomp.c:33:
> ../../sources/tcl8.5/win/../generic/regcustom.h:33:20: 
> error: ../../sources/tcl8.5/win/../generic/tclInt.h: 
> Invalid argument
> ../../sources/tcl8.5/win/../generic/regcustom.h:93:1: 
> error: unknown type name 'Tcl_UniChar'
> In file included from 
> ../../sources/tcl8.5/win/../generic/regcustom.h:161:0,
>                  from 
> ../../sources/tcl8.5/win/../generic/regguts.h:36,
>                  from 
> ../../sources/tcl8.5/win/../generic/regcomp.c:33:
> ../../sources/tcl8.5/win/../generic/regex.h:138:1: error: 
> unknown type name 'VOID'
> ../../sources/tcl8.5/win/../generic/regex.h:160:5: error: 
> unknown type name 'size_t'
> ../../sources/tcl8.5/win/../generic/regex.h:298:14: error: 
> expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
>
> _______________________________________________
> Xotcl mailing list
> Xotcl at alice.wu-wien.ac.at
> http://alice.wu-wien.ac.at/mailman/listinfo/xotcl



More information about the Xotcl mailing list