从CPAN(Strawberry Perl)安装Data :: Alias包时出现gcc编译错误

时间:2010-06-08 18:18:27

标签: perl cpan strawberry-perl

  

可能重复:
  How can I get a working Data::Alias in Perl 5.12?

我正在尝试从CPAN安装Data :: Alias包,我从gcc收到编译错误。我在Windows Server 2008上:

Writing Makefile for Data::Alias
cp lib/Data/Alias.pm blib\lib\Data\Alias.pm
C:\strawberry\perl\bin\perl.exe "-Iinc" C:\strawberry\perl\lib\ExtUtils\xsubpp
-typemap C:\strawberry\perl\lib\ExtUtils\typemap  Alias.xs > Alias.xsc && C:\str
awberry\perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e "mv" -- Alias.xsc Alias
.c
gcc -c          -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPL
ICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -DPERL_MSVC
RT_READFIX -s -O2         -DVERSION=\"1.07\"    -DXS_VERSION=\"1.07\"  "-IC:\str
awberry\perl\lib\CORE"   Alias.c
Alias.xs: In function 'da_localize_gvar':
Alias.xs:369: error: 'Nullsv' undeclared (first use in this function)
Alias.xs:369: error: (Each undeclared identifier is reported only once
Alias.xs:369: error: for each function it appears in.)
Alias.xs: In function 'da_refgen':
Alias.xs:376: error: 'SVt_RV' undeclared (first use in this function)
Alias.xs: In function 'DataAlias_pp_rv2sv':
Alias.xs:690: warning: 'PL_no_symref' is deprecated (declared at C:\strawberry\p
erl\lib\CORE/perl.h:4241)
Alias.xs: In function 'DataAlias_pp_rv2gv':
Alias.xs:747: warning: 'PL_no_symref' is deprecated (declared at C:\strawberry\p
erl\lib\CORE/perl.h:4241)
Alias.xs: In function 'DataAlias_pp_return':
Alias.xs:1251: error: 'Nullsv' undeclared (first use in this function)
Alias.xs: In function 'da_transform':
Alias.xs:1436: error: 'Nullop' undeclared (first use in this function)
Alias.xs:1450: error: 'OP_SETSTATE' undeclared (first use in this function)
Alias.xs: In function 'da_peep2':
Alias.xs:1589: error: 'OP_SETSTATE' undeclared (first use in this function)
Alias.xs: In function 'da_ck_entersub':
Alias.xs:1767: error: 'Nullop' undeclared (first use in this function)
dmake.EXE:  Error code 129, while making 'Alias.o'
  XMATH/Data-Alias-1.07.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

0 个答案:

没有答案