On Thu, Sep 20, 2012 at 5:16 PM, Tony Cook <t...@develop-help.com> wrote:
> Are these 64-bit libraries?  Though that doesn't seem to be the
> problem in this case.
>
>> C:\CPANTE~1\PERL51~1.0_6\site\bin\g++.exe -o 
>> blib\arch\auto\XML\LibXML\LibXML.dll -Wl,--base-file -Wl,dll.base -mdll 
>> -L"C:\CPANTesters\Perl5.16.0_64\lib\CORE" Av_CharPtrPtr.o        Devel.o     
>>     LibXML.o        dom.o   perl-libxml-mm.o        perl-libxml-sax.o       
>> xpath.o   C:\CPANTesters\Perl5.16.0_64\lib\CORE\perl516.lib -lkernel32 
>> -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 
>> -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 
>> -lodbccp32 -lcomctl32 -lmsvcrt dll.exp
>
> I don't see -lxml or libxml in this link command.
>
> I suspect EU::MM is stripping out the -lxml2 (or -llibxml2 because it
> can't find it, while perhaps the test links Makefile.PL does can.
>
> Running Makefile.PL with LIBS:
>
>   perl Makefile.PL LIBS=-Lc:/whereever/the/libraries/are
>
> may fix that.
>
Those are 32 bits libxml2.

I fetch XML-LibXML-2.0004 (so Shlomi won't rattle my cage :)

> perl Makefile.PL INC=-IC:\CPANTesters\bin\XML-LibXML\include 
> LIBS=-LC:\CPANTesters\bin\XML-LibXML\lib
...
looking for -lxml2... yes
...

> dmake
...
C:\CPANTE~1\PERL51~1.0_6\site\bin\g++.exe -o
blib\arch\auto\XML\LibXML\LibXML.dll -Wl,--base-file -Wl,dll.base
-mdll -L"C:\CPANTesters\Perl5.16.0_64\lib\CORE" Av_CharPtrPtr.o
        Devel.o         LibXML.o        dom.o   perl-libxml-mm.o        
perl-libxml-sax.o
        xpath.o   C:\CPANTesters\Perl5.16.0_64\lib\CORE\perl516.lib
C:\CPANTesters\bin\XML-LibXML\lib\libxml2.lib
C:\CPANTesters\bin\XML-LibXML\lib\zlib.lib
C:\CPANTesters\bin\XML-LibXML\lib\zlib.lib dll.exp
Devel.o:Devel.c:(.text+0x9a): undefined reference to `xmlMemUsed'

Do you think I have to recompile libxml2 from source using MinGW64?

Reply via email to