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

Having migrated to Windows 7 has left me without one of my favorite Perl Modules - Tk When attempting to install Tk under CPAN, I get the following, note we ran out of room to have the complete listing. I appologize, in advanced for the lack of completeness. Initial commands:
cpan C:\Users\charlers\Desktop>cpan Set up gcc environment - gcc.exe (gcc-4.6.3 release with patches [buil +d 20121012 by perlmingw.sf.net]) 4.6.3 cpan shell -- CPAN exploration and modules installation (v1.9456) Enter 'h' for help. cpan> install Tk
... lots of the install process...
C:\Perl64\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 X.bs C:\Perl64\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Tk::X\", 'DLBASE' => 'X', 'DL_FUNCS' => +{ }, 'FUN CLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" Set up gcc environment - gcc.exe (gcc-4.6.3 release with patches [buil +d 20121012 by perlmingw.sf.net]) 4.6.3 dlltool --def X.def --output-exp dll.exp C:\STRAWB~1\c\bin\g++.exe -o ..\..\blib\arch\auto\Tk\X\X.dll -Wl,--bas +e-file -Wl ,dll.base -mdll -L"C:\Perl64\lib\CORE" X.o -Wl,--image-base,0x342e0000 + C:\Perl6 4\lib\CORE\perl512.lib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg +32 -ladvap i32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwi +nmm -lvers ion -lodbc32 -lodbccp32 -lcomctl32 -lbufferoverflowU -lmsvcrt dll.exp c:/strawb~1/c/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w +64-mingw32 /bin/ld.exe: cannot find -lbufferoverflowU collect2: ld returned 1 exit status dmake.exe: Error code 129, while making '..\..\blib\arch\auto\Tk\X\X. +dll' dmake.exe: Error code 255, while making 'subdirs' dmake.exe: Error code 255, while making 'subdirs' SREZIC/Tk-804.031.tar.gz C:\STRAWB~1\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 Failed during this command: SREZIC/Tk-804.031.tar.gz : make NO

Replies are listed 'Best First'.
Re: Installing Tk problems with Active State on Windows (ppm)
by Anonymous Monk on Aug 26, 2013 at 01:49 UTC
Re: Installing Tk problems with Active State on Windows
by syphilis (Archbishop) on Aug 26, 2013 at 13:56 UTC
    PPM packages for Tk-804.031 (for both 32-bit and 64-bit builds of Win32 perl) have now been added to the sisyphusion repo.
    ppm install http://www.sisyphusion.tk/ppm/Tk.ppd --force
    The 32-bit builds passed all tests, but the 64-bit builds failed (with segfaults) on 2 of the test programs:
    t\create.t (Wstat: 65280 Tests: 271 Failed: 1) Failed test: 270 Non-zero exit status: 255 Parse errors: Bad plan. You planned 543 tests but ran 271. t\zzTixGrid.t (Wstat: 768 Tests: 33 Failed: 0) Non-zero exit status: 3
    (Same result when building with Strawberry Perl.)

    Ray Smith, if you want to build Tk yourself for ActivePerl, you can do it with Strawberry Perl - but only if your Strawberry Perl and ActivePerl have the same perl version number and archname (perl -V:archname).
    If they match on both counts, then the Tk-804.031 that you build with Strawberry Perl, will work quite well with ActivePerl - though it will probably require that strawberry/c/bin is in your path.

    Cheers,
    Rob
Re: Installing Tk problems with Active State on Windows
by Anonymous Monk on Aug 26, 2013 at 01:53 UTC
      Or delete all that bufferoverlowU stuff from Makefile.PL.

        Or delete all that bufferoverflowU stuff from Makefile.PL.

        But there is no bufferoverflowU stuff in Makefile.PL :)