Im having some problems getting XML::LibXML to build in cpan. I have decided to just download XML::LibXML::Common to try building the dependencies first and going from there. Below is the errors I am getting. I built perl from source on my box with dmake & mingw. it compiled ok and all test passed. In my path I have mingw/bin and perl/bin in my path. I got all of the binaries from Igor's site and have them in the appropriate mingw directories Does any one have any suggestions?
C:\CPAN~1\build\XML-LI~1.13>perl Makefile.PL INC=-IF:/MinGWEnv/include +/libxml LIB=-LF:/MinGWEnv/lib enable native perl UTF8 looking for -lxml2... yes Writing Makefile for XML::LibXML::Common C:\CPAN~1\build\XML-LI~1.13>dmake cp Common.pm blib\lib\XML\LibXML\Common.pm C:\perl\bin\perl.exe C:\perl\lib\ExtUtils/xsubpp -typemap C:\perl\lib +\ExtUtils\typemap -typemap typemap Common.xs > Common.xsc && C:\perl +\bin\perl.exe -MExtUtils::Command -e mv Common.xsc Common.c gcc -c -IF:/MinGWEnv/include/libxml -s -O2 -DWIN32 -DHAVE_DES_FCRY +PT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing - +DPERL_MSVCRT_READFIX -s -O2 -DV ERSION=\"0.13\" -DXS_VERSION=\"0.13\" "-IC:\perl\lib\CORE" - +DHAVE_UTF8 -DHAVE_BLANK Common.c C:\perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"XML::LibXML::Common\", 'DLBASE' => 'Commo +n', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS +' => []);" Running Mkbootstrap for XML::LibXML::Common () C:\perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Common.bs C:\perl\bin\perl.exe -MExtUtils::Command -e cp Common.bs blib\arch\aut +o\XML\LibXML\Common\Common.bs C:\perl\bin\perl.exe -MExtUtils::Command -e chmod 644 blib\arch\auto\X +ML\LibXML\Common\Common.bs dlltool --def Common.def --output-exp dll.exp g++ -o blib\arch\auto\XML\LibXML\Common\Common.dll -Wl,--base-file -Wl +,dll.base -mdll -s -L"c:\perl\lib\CORE" -L"F:\MinGWEnv\lib" Common.o +-Wl,--image-base,0x2c010000 C:\perl\lib\CORE\libperl58.a F:\MinGWEnv +\lib\libxml2.a F:\MinGWEnv\lib\zlib.a F:\MinGWEnv\lib\libmsvcrt.a F:\ +MinGWEnv\lib\libmoldname.a F:\MinGWEnv\lib\libkernel32.a F:\MinGWEnv\ +lib\libuser32.a F:\MinGWEnv\lib\libgdi32.a F:\MinGWEnv\lib\libwinspoo +l.a F:\MinGWEnv\lib\libcomdlg32.a F:\MinGWEnv\lib\libadvapi32.a F:\Mi +nGWEnv\lib\libshell32.a F:\MinGWEnv\lib\libole32.a F:\MinGWEnv\lib\li +boleaut32.a F:\MinGWEnv\lib\libnetapi32.a F:\MinGWEnv\lib\libuuid.a F:\MinGWEnv\lib\libws2_32.a F:\MinGWEnv\lib\libmpr.a F:\MinGWEnv\lib\l +ibwinmm.a F:\MinGWEnv\lib\libversion.a F:\MinGWEnv\lib\libodbc32.a dll.exp Common.o(.text+0x3bf):Common.c: undefined reference to `_imp__xmlFree' Common.o(.text+0x63f):Common.c: undefined reference to `_imp__xmlFree' collect2: ld returned 1 exit status dmake.exe: Error code 1, while making 'blib\arch\auto\XML\LibXML\Comm +on\Common.dll'

In reply to LibXML On Windows Compile Issues by joshh

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.