Subject: | Tcl.xs error w/dmake on strawberry perl |
I'm using Strawberry Perl to install the Tcl module (having installed
ActiveTcl), and am running into an XS compilation problem. Searching
briefly on Google makes it seem that it might be a gcc problem, but
wanted to report it here to make sure it's something that can't be fixed
in Tcl.xs. Here's the relevant output and any pointers would be appreciated:
C:\DOCUME~1\Owner\LOCALS~1\Temp\cpan\build\Tcl-0.95>perl -v
This is perl, v5.8.8 built for MSWin32-x86-multi-thread
Copyright 1987-2006, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the GNU General Public License, which may be found in the Perl 5
source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to
the Internet, point your browser at http://www.perl.org/, the Perl Home
Page.
C:\DOCUME~1\Owner\LOCALS~1\Temp\cpan\build\Tcl-0.95>perl Makefile.PL
tclsh=C:/Tcl/bin/tclsh.exe
tclConfig.sh=C:/Tcl/lib/tclConfig.sh
tcl_library=C:/Tcl/lib/tcl8.4
tcl_version=8.4
LIBS = -LC:/Tcl/lib -ltcl84
INC = -IC:/Tcl/include
DEFINE =
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -ltcl84
Writing Makefile for Tcl
C:\DOCUME~1\Owner\LOCALS~1\Temp\cpan\build\Tcl-0.95>dmake
cp Tcl.pm blib\lib\Tcl.pm
C:\strawberry-perl\perl\bin\perl.exe
C:\strawberry-perl\perl\lib\ExtUtils\xsubpp -typemap
C:\strawberry-perl\perl\lib\ExtUtils\typemap -typemap typemap Tcl.xs >
Tcl.xsc && C:\strawberry-perl\perl\bin\perl.exe -MExtUtils::Command -e
mv Tcl.xsc Tcl.c
Please specify prototyping behavior for Tcl.xs (see perlxs manual)
gcc -c -IC:/Tcl/include -s -O2 -DWIN32 -DHAVE_DES_FCRYPT
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing
-DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"0.95\" -DXS_VERSION=\"0.95\"
"-IC:\strawberry-perl\perl\lib\CORE" Tcl.c
Tcl.xs:127: error: initializer element is not constant
dmake: Error code 129, while making 'Tcl.o'