English 中文(简体)
我怎么办关于Strawberry Perl 5.10.1的签名模块?
原标题:How do I Install the signatures module on Strawberry Perl 5.10.1?

I seem to be having some issues trying to install the signatures module from CPAN using Strawberry Perl 5.10.1 on Windows XP.

I get some "undefined reference" errors during linking. I m guessing that there is something wrong with my B::Hooks::Parser module, but reinstalling that one didn t fix my problem.

这里的产出:

cpan shell -- CPAN exploration and modules installation (v1.9452) Enter
 h  for help.

cpan> install signatures Database was generated on Wed, 25 Nov 2009 20:22:23 GMT 

Running install for module  signatures  
Running make for F/FL/FLORA/signatures-0.06.tar.gz
Checksum for C:strawberrycpansourcesauthorsidFFLFLORAsignatures-0.06.tar.gz ok Scanning cache C:strawberrycpanuild for sizes
............................................................................DONE

  CPAN.pm: Going to build F/FL/FLORA/signatures-0.06.tar.gz

Cannot determine perl version info from lib/signatures.pm 
Checking if your kit is complete... 
Looks good 
Writing Makefile for signatures cp lib/signatures.pm bliblib/signatures.pm
C:strawberryperlinperl.exe "-Iinc" C:strawberryperllibExtUtilsxsubpp
-typemap C:strawberryperllibExtUtils 	ypemap  signatures.xs > signatures.xsc &&
C:strawberryperlinperl.exe "-Iinc" -MExtUtils::Command -e "mv" --
signatures.xsc signatures.c gcc -c 
-IC:strawberryperlsitelibBHooksOPCheckInstall
-IC:strawberryperlsitelibBHooksParserInstall
-IC: strawberryperlsitelibBHooksOPPPAddrInstall
-s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPL ICIT_CONTEXT -DPERL_IMPLICIT_SYS
-fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2        -DVERSION="0.06"    -DXS_VER SION="0.06" 
"-IC:strawberryperllibCORE" signatures.c 
Running Mkbootstrap for signatures ()
C:strawberryperlinperl.exe "-Iinc" -MExtUtils::Command -e "chmod"
-- 644 signatures.bs C:strawberryperlinperl.exe
"-Iinc" -MExtUtils::Mksymlists 
     -e "Mksymlists( NAME =>"signatures",
 DLBASE  =>  signatures ,  DL_FUNCS 
=> {  },  FUNCLIST  => [],  IMPORTS  =>  {  },  DL_VARS  => []);" dlltool --def signatures.def --output-exp dll.exp g++ -o
blibarchautosignaturessignatures.dll
-Wl,--base-file -Wl,dll.base -mdll -s -L"C:strawberryperllibCORE" -L "C:strawberryclib" signatures.o
-Wl,--image-base,0x121d0000  C:strawberryperllibCORElibperl510.a
C:strawberryperlsitelibautoBHooksOPCheckCheck.a
C:strawberryperlsitelibautoBHooksParserParser.a
C:strawberryperlsitelibautoBHooksOPPPAddrPPAddr.a
C:strawberrycliblibmoldname.a
C:strawberrycliblibkernel32.a
C:strawberr ycliblibuser32.a
C:strawberrycliblibgdi32.a
C:strawberrycliblibwinspool.a
C:strawberrycliblibcomdlg32.a 
C:strawberrycliblibadvapi32.a
C:strawberrycliblibshell32.a
C:strawberrycliblibole32.a
C:strawberrycliblib oleaut32.a
C:strawberrycliblibnetapi32.a
C:strawberrycliblibuuid.a
C:strawberrycliblibws2_32.a
C:strawberry cliblibmpr.a
C:strawberrycliblibwinmm.a
C:strawberrycliblibversion.a
C:strawberrycliblibodbc32.a
C:strawberrycliblibodbccp32.a
dll.exp
signatures.o:signatures.c:(.text+0x23c):undefined reference to `hook_toke_skipspace 
signatures.o:signatures.c:(.text+0x2b1):undefined reference to `hook_toke_skipspace 
signatures.o:signatures.c:(.text+0x34b):undefined reference to `hook_toke_scan_word 
signatures.o:signatures.c:(.text+0x4b9):undefined reference to `hook_toke_skipspace 
signatures.o:signatures.c:(.text+0x4e2):undefined reference to `hook_toke_scan_str 
signatures.o:signatures.c:(.text+0x4f5):undefined reference to `hook_parser_get_lex_stuff 
signatures.o:signatures.c:(.text+0x508):undefined reference to `hook_parser_clear_lex_stuff 
signatures.o:signatures.c:(.text+0x696):undefined reference to `hook_toke_skipspace 
signatures.o:signatures.c:(.text+0x6cd):undefined reference to `hook_parser_get_linestr 
signatures.o:signatures.c:(.text+0x8f2):undefined reference to `hook_toke_skipspace 
signatures.o:signatures.c:(.text+0x966):undefined reference to `hook_toke_scan_word 
signatures.o:signatures.c:(.text+0x9b3):undefined reference to `hook_toke_skipspace 
signatures.o:signatures.c:(.text+0x9f7):undefined reference to `hook_toke_scan_str 
signatures.o:signatures.c:(.text+0xa0a):undefined reference to `hook_parser_get_lex_stuff 
signatures.o:signatures.c:(.text+0xa1d):undefined reference to `hook_parser_clear_lex_stuff 
signatures.o:signatures.c:(.text+0xda4):undefined reference to `hook_parser_setup 
signatures.o:signatures.c:(.text+0xf89):undefined reference to `hook_parser_teardown  collect2: ld
returned 1 exit status dmake.EXE: 
Error code 129, while making  blibarchautosignaturessignatures.dll 
FLORA/signatures-0.06.tar.gz  
C:strawberrycindmake.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: FLORA/signatures-0.06.tar.gz          
: make NO

I also did an nm on my Parser.a library (in perl/site/auto/B/Hooks/parser) and I didn t find any symbols containing hook

Has anyone else experienced this problem? Or did anyone else succeed in installing the signatures module?

问题回答




相关问题
Why does my chdir to a filehandle not work in Perl?

When I try a "chdir" with a filehandle as argument, "chdir" returns 0 and a pwd returns still the same directory. Should that be so? I tried this, because in the documentation to chdir I found: "...

How do I use GetOptions to get the default argument?

I ve read the doc for GetOptions but I can t seem to find what I need... (maybe I am blind) What I want to do is to parse command line like this myperlscript.pl -mode [sth] [inputfile] I can use ...

Object-Oriented Perl constructor syntax and named parameters

I m a little confused about what is going on in Perl constructors. I found these two examples perldoc perlbot. package Foo; #In Perl, the constructor is just a subroutine called new. sub new { #I ...

Where can I find object-oriented Perl tutorials? [closed]

A Google search yields a number of results - but which ones are the best? The Perl site appears to contain two - perlboot and perltoot. I m reading these now, but what else is out there? Note: I ve ...

热门标签