Subject: | Won't link against hook_op_check on Strawberry 5.10 |
On Strawberry 5.10 Devel::Declare fails to link with hook_op_check.
Here's the paste of the build.
C:\strawberry\cpan\build\Devel-Declare-0.003003-Eta_53>perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Devel::Declare
C:\strawberry\cpan\build\Devel-Declare-0.003003-Eta_53>dmake
cp lib/Devel/Declare/Context/Simple.pm
blib\lib\Devel\Declare\Context\Simple.pm
cp lib/Devel/Declare.pm blib\lib\Devel\Declare.pm
cp lib/Devel/Declare/MethodInstaller/Simple.pm
blib\lib\Devel\Declare\MethodInst
aller\Simple.pm
C:\strawberry\perl\bin\perl.exe "-Iinc"
C:\strawberry\perl\lib\ExtUtils\xsubpp
-typemap C:\strawberry\perl\lib\ExtUtils\typemap Declare.xs >
Declare.xsc && C:
\strawberry\perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e mv
Declare.xsc Decl
are.c
gcc -c -IC:\strawberry\perl\site\lib\B\Hooks\OP\Check\Install -s -O2
-DWIN32 -
DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-fno-strict-aliasin
g -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"0.003003\"
-DXS_VERSION=\"0
.003003\" "-IC:\strawberry\perl\lib\CORE" Declare.c
gcc -c -IC:\strawberry\perl\site\lib\B\Hooks\OP\Check\Install -s -O2
-DWIN32 -
DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-fno-strict-aliasin
g -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"0.003003\"
-DXS_VERSION=\"0
.003003\" "-IC:\strawberry\perl\lib\CORE" Declare.c
Running Mkbootstrap for Devel::Declare ()
C:\strawberry\perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e chmod 644
Declare
.bs
C:\strawberry\perl\bin\perl.exe "-Iinc" -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"Devel::Declare\", 'DLBASE' => 'Declare',
'DL_FUNCS
' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
dlltool --def Declare.def --output-exp dll.exp
g++ -o blib\arch\auto\Devel\Declare\Declare.dll -Wl,--base-file
-Wl,dll.base -md
ll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" Declare.o
-Wl,--im
age-base,0x25170000 C:\strawberry\perl\lib\CORE\libperl510.a -lmsvcrt
-lmoldnam
e -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32
-lole32
-loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32
-lodbccp
32 dll.exp
Declare.o:Declare.c:(.text+0x32de): undefined reference to `hook_op_check'
Declare.o:Declare.c:(.text+0x32f9): undefined reference to `hook_op_check'
Declare.o:Declare.c:(.text+0x330f): undefined reference to `hook_op_check'
collect2: ld returned 1 exit status
dmake: Error code 129, while making
'blib\arch\auto\Devel\Declare\Declare.dll'