http://qs321.pair.com?node_id=1214486


in reply to Install module Tcl Strawberryperl

It seems your errors are in the linking. See your "mostly harmless" warning - it actually is pretty harmful. You need libtcl86.a to be found somewhere on your system. Assuming it's not there, you can create it from tcl86.dll which I'm assuming must be there somewhere in your Tcl install directory. Example code below assumes it's in C:\ActiveTcl\bin\tcl86.dll

cd C:\ActiveTcl\bin pexports tcl86.dll > tcl86.def dlltool --as-flags=--64 -m i386:x86-64 -k --output-lib libtcl86.a --in +put-def tcl86.def

Then...

perl Makefile.PL "LIBS=-LC:/ActiveTcl/bin -ltcl86" dmake

Replies are listed 'Best First'.
Re^2: Install module Tcl Strawberryperl
by Anonymous Monk on May 14, 2018 at 19:25 UTC

    Hi,

    ActiveTcl comes with a .lib

     C:\Tcl8.6/lib/tcl86.lib

    And  strawberry-perl-5.20.3.3-32bit-portable finds it no problem using ExtUtils::MakeMaker version 7.10 and 7.34 (latest).

    ... g++.exe -o blib\arch\auto\Tcl\Tcl.xs.dll -Wl,--base-file -Wl,dll.base +-mdll -s -L"C:\strawberry-perl-5.20.3.3-32bit-portable\perl\lib\CORE" -L"C:\strawberry-perl-5.20.3.3-32bit-portable\c\lib" Tcl.o "C:\strawberry-perl-5.20.3.3-32bit-portable\perl\lib\CORE\libperl520.a +" "C:\Tcl8.6\lib\tcl86.lib" ....

    I think OP should verify .lib file exists, then get latest ExtUtils::MakeMaker and try again

      Hi

      My ActiveTcl installation has a tcl86t.lib (note the t). I'll need to first understand ExtUtils::MakeMaker as I do not know this module and I am not quite sure what do I have to do with it.

        Hi,

        Try calling  perl Makefile.PL -DTCL_LIB_FILE=tcl86t.lib

        While this is not an issue with ExtUtils::MakeMaker itself, still a good idea to keep it current

        This is a bug in VKON/Tcl-1.05/Makefile.PL , it is not retrieving TCL_LIB_FILE= value from C:/ActiveTcl/lib/tclConfig.sh , which ought to be tcl86t.lib

        Maybe TCL_LIB_FILE value wasn't available before , but its available know. You should report this bug to VKON ( bug-Tcl@rt.cpan.org ) and reference this thread