http://www.perlmonks.org?node_id=1014228

ilkerozturk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,
When I try to install Tcl module I am receiving the following error (I'm on Windows and using Strawberry perl 5.14.3.1 and using CPAN to install the module)
Do you have any idea why this is happening?


Tcl.o:Tcl.c:(.text+0x16b): undefined reference to `__imp_Tcl_NewDoubleObj'
Tcl.o:Tcl.c:(.text+0x195): undefined reference to `__imp_Tcl_NewStringObj'
Tcl.o:Tcl.c:(.text+0x1d5): undefined reference to `__imp_Tcl_NewIntObj'
Tcl.o:Tcl.c:(.text+0x21c): undefined reference to `__imp_Tcl_NewListObj'
Tcl.o:Tcl.c:(.text+0x22f): undefined reference to `__imp_Tcl_ListObjAppendElement'
Tcl.o:Tcl.c:(.text+0x29b): undefined reference to `__imp_Tcl_NewObj'
Tcl.o:Tcl.c:(.text+0x2f7): undefined reference to `__imp_Tcl_NewByteArrayObj'
Tcl.o:Tcl.c:(.text+0x356): undefined reference to `__imp_Tcl_NewByteArrayObj'
Tcl.o:Tcl.c:(.text+0x36c): undefined reference to `__imp_Tcl_NewStringObj'
Tcl.o:Tcl.c:(.text+0x528): undefined reference to `__imp_Tcl_SetVar2Ex'
Tcl.o:Tcl.c:(.text+0x68e): undefined reference to `__imp_Tcl_SetVar2Ex'
Tcl.o:Tcl.c:(.text+0x765): undefined reference to `__imp_Tcl_GetStringFromObj'
Tcl.o:Tcl.c:(.text+0x890): undefined reference to `__imp_Tcl_GetStringFromObj'
Tcl.o:Tcl.c:(.text+0x8ce): undefined reference to `__imp_Tcl_ListObjGetElements'
Tcl.o:Tcl.c:(.text+0xa17): undefined reference to `__imp_Tcl_GetByteArrayFromObj'
Tcl.o:Tcl.c:(.text+0xba3): undefined reference to `__imp_Tcl_GetVar2Ex'
Tcl.o:Tcl.c:(.text+0xe34): undefined reference to `__imp_Tcl_GetVar2Ex'
Tcl.o:Tcl.c:(.text+0xfff): undefined reference to `__imp_Tcl_GetVar2Ex'
Tcl.o:Tcl.c:(.text+0x11e8): undefined reference to `__imp_Tcl_SetVar2Ex'
Tcl.o:Tcl.c:(.text+0x13db): undefined reference to `__imp_Tcl_SetVar2Ex'
Tcl.o:Tcl.c:(.text+0x1522): undefined reference to `__imp_Tcl_GetStringFromObj'
Tcl.o:Tcl.c:(.text+0x15cc): undefined reference to `__imp_TclFreeObj'
Tcl.o:Tcl.c:(.text+0x16d4): undefined reference to `__imp_Tcl_UnsetVar2'
Tcl.o:Tcl.c:(.text+0x18af): undefined reference to `__imp_Tcl_UnsetVar2'
Tcl.o:Tcl.c:(.text+0x1a3e): undefined reference to `__imp_Tcl_SplitList'
Tcl.o:Tcl.c:(.text+0x1abf): undefined reference to `__imp_Tcl_Free'
Tcl.o:Tcl.c:(.text+0x1c0c): undefined reference to `__imp_Tcl_DeleteCommand'
Tcl.o:Tcl.c:(.text+0x1da0): undefined reference to `__imp_Tcl_GetObjResult'
Tcl.o:Tcl.c:(.text+0x1ee0): undefined reference to `__imp_Tcl_GetObjResult'
Tcl.o:Tcl.c:(.text+0x1eff): undefined reference to `__imp_Tcl_AppendObjToObj'
Tcl.o:Tcl.c:(.text+0x1ff4): undefined reference to `__imp_Tcl_ResetResult'
Tcl.o:Tcl.c:(.text+0x20eb): undefined reference to `__imp_Tcl_AppendElement'
Tcl.o:Tcl.c:(.text+0x2229): undefined reference to `__imp_Tcl_SetObjResult'
Tcl.o:Tcl.c:(.text+0x23d3): undefined reference to `__imp_Tcl_CreateCommand'
Tcl.o:Tcl.c:(.text+0x253f): undefined reference to `__imp_Tcl_CreateObjCommand'
Tcl.o:Tcl.c:(.text+0x2765): undefined reference to `__imp_Tcl_DoOneEvent'
Tcl.o:Tcl.c:(.text+0x2855): undefined reference to `__imp_Tcl_Init'
Tcl.o:Tcl.c:(.text+0x2880): undefined reference to `__imp_Tcl_CreateObjCommand'
Tcl.o:Tcl.c:(.text+0x28f3): undefined reference to `__imp_Tcl_GetStringResult'
Tcl.o:Tcl.c:(.text+0x29d9): undefined reference to `__imp_Tcl_DeleteInterp'
Tcl.o:Tcl.c:(.text+0x2a29): undefined reference to `__imp_Tcl_Finalize'
Tcl.o:Tcl.c:(.text+0x2b25): undefined reference to `__imp_Tcl_DeleteInterp'
Tcl.o:Tcl.c:(.text+0x2c52): undefined reference to `__imp_Tcl_CreateInterp'
Tcl.o:Tcl.c:(.text+0x307f): undefined reference to `__imp_Tcl_SetResult'
Tcl.o:Tcl.c:(.text+0x3202): undefined reference to `__imp_Tcl_SetObjResult'
Tcl.o:Tcl.c:(.text+0x3559): undefined reference to `__imp_Tcl_WrongNumArgs'
Tcl.o:Tcl.c:(.text+0x3668): undefined reference to `__imp_Tcl_SetResult'
Tcl.o:Tcl.c:(.text+0x370d): undefined reference to `__imp_Tcl_SetObjResult'
Tcl.o:Tcl.c:(.text+0x39db): undefined reference to `__imp_Tcl_GetObjResult'
Tcl.o:Tcl.c:(.text+0x3a37): undefined reference to `__imp_Tcl_ListObjGetElements'
Tcl.o:Tcl.c:(.text+0x3c6b): undefined reference to `__imp_Tcl_ResetResult'
Tcl.o:Tcl.c:(.text+0x3c7c): undefined reference to `__imp_Tcl_EvalObjv'
Tcl.o:Tcl.c:(.text+0x3c83): undefined reference to `__imp_TclFreeObj'
Tcl.o:Tcl.c:(.text+0x3d90): undefined reference to `__imp_Tcl_GetStringResult'
Tcl.o:Tcl.c:(.text+0x3edd): undefined reference to `__imp_Tcl_GetCommandInfo'
Tcl.o:Tcl.c:(.text+0x3f87): undefined reference to `__imp_Tcl_ResetResult'
Tcl.o:Tcl.c:(.text+0x4037): undefined reference to `__imp_Tcl_GetString'
Tcl.o:Tcl.c:(.text+0x40b5): undefined reference to `__imp_Tcl_ResetResult'
Tcl.o:Tcl.c:(.text+0x4104): undefined reference to `__imp_TclFreeObj'
Tcl.o:Tcl.c:(.text+0x416e): undefined reference to `__imp_Tcl_NewStringObj'
Tcl.o:Tcl.c:(.text+0x41df): undefined reference to `__imp_Tcl_ResetResult'
Tcl.o:Tcl.c:(.text+0x4219): undefined reference to `__imp_TclFreeObj'
Tcl.o:Tcl.c:(.text+0x42c1): undefined reference to `__imp_Tcl_GetStringResult'
Tcl.o:Tcl.c:(.text+0x43c0): undefined reference to `__imp_Tcl_CommandComplete'
Tcl.o:Tcl.c:(.text+0x43c7): undefined reference to `__imp_Tcl_ResetResult'
Tcl.o:Tcl.c:(.text+0x440b): undefined reference to `__imp_Tcl_Eval'
Tcl.o:Tcl.c:(.text+0x4418): undefined reference to `__imp_Tcl_GetStringResult'
Tcl.o:Tcl.c:(.text+0x4586): undefined reference to `__imp_Tcl_ResetResult'
Tcl.o:Tcl.c:(.text+0x4592): undefined reference to `__imp_Tcl_EvalFile'
Tcl.o:Tcl.c:(.text+0x4646): undefined reference to `__imp_Tcl_GetStringResult'
Tcl.o:Tcl.c:(.text+0x4735): undefined reference to `__imp_Tcl_ResetResult'
Tcl.o:Tcl.c:(.text+0x477d): undefined reference to `__imp_Tcl_EvalEx'
Tcl.o:Tcl.c:(.text+0x4866): undefined reference to `__imp_Tcl_GetStringResult'
Tcl.o:Tcl.c:(.text+0x4c81): undefined reference to `__imp_Tcl_FindExecutable'
Tcl.o:Tcl.c:(.text+0x4ca0): undefined reference to `__imp_Tcl_GetObjType'
c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: Tcl.o: bad reloc addr
ess 0x0 in section `.pdata'
c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: final link failed: In
valid operation
collect2: ld returned 1 exit status
dmake.exe: Error code 129, while making 'blib\arch\auto\Tcl\Tcl.dll'
VKON/Tcl-1.02.tar.gz
C:\strawberry\c\bin\dmake.exe -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Stopping: 'install' failed for 'Tcl'.

Replies are listed 'Best First'.
Re: Tcl installation problem
by Athanasius (Archbishop) on Jan 20, 2013 at 04:25 UTC

      Sorry, no. But if you look at the CPAN Testers Matrix for Tcl 1.02 you will see that there are no reports of a successful installation of this module under Windows.

      Which only means windows machines typically don't have Tcl installed, so you can't link to it

Re: Tcl installation problem
by Anonymous Monk on Jan 20, 2013 at 06:03 UTC