Subject: | Win32 Build Error |
I am unable to build XML-LibXML-Common-0.13 and subsequently XML-LibXML on my win32 box.
Heres my vitals
Perl Version: v5.8.7 built for MSWin32-x86-multi-thread
OS Version: Windows 2000 sp4
Compiler: Mingw 4.1.1 (gcc 3.4.2)
Make Util: dmake-4.1pl1
Im running through makefile.pl with the following command
perl Makefile.PL INC=-IF:/MinGWEnv/include/libxml LIB=-LF:/MinGWEnv/lib
Build fails when creating Common.dll. Below is my output
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\li
b\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\libuse
r32.a F:\MinGWEnv\lib\libgdi32.a F:\MinGWEnv\lib\libwinspool.a F:\MinGWEnv\lib\libcomdlg32.a F:\MinGWEnv\lib\libadvapi32.a F:\MinGWEnv\lib\libshell32.a F:\MinGWEnv\lib\libole32.a
F:\MinGWEnv\lib\liboleaut32.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\libwinmm.a F:\MinGWEnv
\lib\libversion.a F:\MinGWEnv\lib\libodbc32.a dll.exp
Common.o(.text+0x3c0):Common.c: undefined reference to `xmlFree'
Common.o(.text+0x640):Common.c: undefined reference to `xmlFree'
collect2: ld returned 1 exit status
dmake.exe: Error code 1, while making 'blib\arch\auto\XML\LibXML\Common\Common.dll'