Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

XML::LibXML, Windows, & Camelbox Install Problems

by boblawblah (Scribe)
on Feb 10, 2009 at 18:26 UTC ( [id://742844]=perlquestion: print w/replies, xml ) Need Help??

boblawblah has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks! Please help :-)

My ultimate goal here is to use XML::LibXML::DOM with a camelbox installation on a WindowsXP machine. I have the latest version of camelbox installed. XML::LibXML::DOM relies on XML::LibXML which relies on XML::LibXML::Common as well as libxml2. libxml2 and zlib comes compiled with camelbox, who's bin directory is in my path. So why do I get this error?
C:\Documents and Settings\JHallock\Desktop\XML-LibXML-Common-0.13>perl + makefile.pl + enable native perl UTF8 + looking for -lxml2... yes + Note (probably harmless): No library found for -llibxml2 + Note (probably harmless): No library found for -lzlib + Writing Makefile for XML::LibXML::Common
This produces the same result. I have aslo tried copying the zlib1.dll and libxml2.dll files from c:\camelbox\bin to my installation directory - but it made no difference.
C:\Documents and Settings\JHallock\Desktop\XML-LibXML-Common-0.13>perl + makefile.pl INC=-Ic:\camelbox\include LIBS=-Lc:\camelbox\lib + enable native perl UTF8 + looking for -lxml2... yes + Note (probably harmless): No library found for -llibxml2 + Note (probably harmless): No library found for -lzlib + Writing Makefile for XML::LibXML::Common
And I get this error when running dmake.
C:\Documents and Settings\JHallock\Desktop\XML-LibXML-Common-0.13>dmak +e 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:\camelbox\lib\CORE" -L"C:\camelbox\lib" Common.o -Wl,--i +mage-base, 0x2c010000 C:\camelbox\lib\CORE\libperl510.a c:\camelbox\lib\libmsvcr +t.a c:\cam elbox\lib\libmoldname.a c:\camelbox\lib\libkernel32.a c:\camelbox\lib\ +libuser32. a c:\camelbox\lib\libgdi32.a c:\camelbox\lib\libwinspool.a c:\camelbox +\lib\libco mdlg32.a c:\camelbox\lib\libadvapi32.a c:\camelbox\lib\libshell32.a c: +\camelbox\ lib\libole32.a c:\camelbox\lib\liboleaut32.a c:\camelbox\lib\libnetapi +32.a c:\ca melbox\lib\libuuid.a c:\camelbox\lib\libws2_32.a c:\camelbox\lib\libmp +r.a c:\cam elbox\lib\libwinmm.a c:\camelbox\lib\libversion.a c:\camelbox\lib\libo +dbc32.a c: \camelbox\lib\libodbccp32.a dll.exp + Common.o:Common.c:(.text+0x23a): undefined reference to `xmlParseCharE +ncoding' Common.o:Common.c:(.text+0x286): undefined reference to `xmlSetGeneric +ErrorFunc' + Common.o:Common.c:(.text+0x2a1): undefined reference to `xmlFindCharEn +codingHandler' + Common.o:Common.c:(.text+0x2b4): undefined reference to `xmlBufferCrea +te' Common.o:Common.c:(.text+0x2bb): undefined reference to `xmlBufferCrea +te' Common.o:Common.c:(.text+0x2ca): undefined reference to `xmlBufferCCat +' Common.o:Common.c:(.text+0x2e0): undefined reference to `xmlCharEncInF +unc' Common.o:Common.c:(.text+0x2f1): undefined reference to `xmlStrdup' + Common.o:Common.c:(.text+0x2fc): undefined reference to `xmlBufferFree +' Common.o:Common.c:(.text+0x307): undefined reference to `xmlBufferFree +' Common.o:Common.c:(.text+0x312): undefined reference to `xmlCharEncClo +seFunc' Common.o:Common.c:(.text+0x394): undefined reference to `xmlStrdup' + Common.o:Common.c:(.text+0x3ad): undefined reference to `xmlStrlen' + Common.o:Common.c:(.text+0x3df): undefined reference to `_imp__xmlFree +' Common.o:Common.c:(.text+0x494): undefined reference to `xmlGetCharEnc +odingHandler' + Common.o:Common.c:(.text+0x612): undefined reference to `xmlParseCharE +ncoding' Common.o:Common.c:(.text+0x629): undefined reference to `xmlStrdup' + Common.o:Common.c:(.text+0x634): undefined reference to `xmlStrlen' + Common.o:Common.c:(.text+0x65f): undefined reference to `_imp__xmlFree +' Common.o:Common.c:(.text+0x72e): undefined reference to `xmlSetGeneric +ErrorFunc' + Common.o:Common.c:(.text+0x762): undefined reference to `xmlFindCharEn +codingHandler' + Common.o:Common.c:(.text+0x775): undefined reference to `xmlBufferCrea +te' Common.o:Common.c:(.text+0x77d): undefined reference to `xmlBufferCrea +te' Common.o:Common.c:(.text+0x78f): undefined reference to `xmlBufferCCat +' Common.o:Common.c:(.text+0x7a8): undefined reference to `xmlCharEncOut +Func' Common.o:Common.c:(.text+0x7b7): undefined reference to `xmlBufferLeng +th' Common.o:Common.c:(.text+0x7c5): undefined reference to `xmlBufferCont +ent' Common.o:Common.c:(.text+0x7d4): undefined reference to `xmlCharStrndu +p' Common.o:Common.c:(.text+0x7e2): undefined reference to `xmlBufferFree +' Common.o:Common.c:(.text+0x7ed): undefined reference to `xmlBufferFree +' Common.o:Common.c:(.text+0x7f8): undefined reference to `xmlCharEncClo +seFunc' Common.o:Common.c:(.text+0x896): undefined reference to `xmlGetCharEnc +odingHandler' + collect2: ld returned 1 exit status + dmake: Error code 129, while making 'blib\arch\auto\XML\LibXML\Common +\Common.dll'
Referring to the XML::LibXML README I attempted to follow the instructions uned the "Notes for Microsoft Windows" section, but using the windows binaries available here instead of compiling my own from source. Same results.

So I figured I would try and compile libxml2 from source which I retrieved here which can be found on this page.

Attempting to compile produces this:
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI ../c14n.c ../catalog.c ../chvalid.c ../debugXML.c ../dict.c ../DOCBpar +ser.c ../e obals.c ../hash.c ../HTMLparser.c ../HTMLtree.c ../legacy.c ../list.c +../nanoftp ternals.c ../pattern.c ../relaxng.c ../SAX.c ../SAX2.c ../schematron.c + ../thread clude.c ../xlink.c ../xmlIO.c ../xmlmemory.c ../xmlreader.c ../xmlrege +xp.c ../xm ./xmlschemastypes.c ../xmlunicode.c ../xmlwriter.c ../xpath.c ../xpoin +ter.c ../x gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/c14n.o -c ../c14n.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/catalog.o -c ../catalog.c <readmore> ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/chvalid.o -c ../chvalid.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/debugXML.o -c ../debugXML.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/dict.o -c ../dict.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/DOCBparser.o -c ../DOCBparser.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/encoding.o -c ../encoding.c + ../encoding.c: In function `xmlIconvWrapper': + ../encoding.c:1706: warning: passing arg 2 of `libiconv' from incompat +ible point gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/entities.o -c ../entities.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/error.o -c ../error.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/globals.o -c ../globals.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/hash.o -c ../hash.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/HTMLparser.o -c ../HTMLparser.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/HTMLtree.o -c ../HTMLtree.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/legacy.o -c ../legacy.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/list.o -c ../list.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/nanoftp.o -c ../nanoftp.c + ../nanoftp.c:81:1: warning: "_WINSOCKAPI_" redefined + <command line>:5:1: warning: this is the location of the previous defi +nition gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/nanohttp.o -c ../nanohttp.c + ../nanohttp.c:78:1: warning: "_WINSOCKAPI_" redefined + <command line>:5:1: warning: this is the location of the previous defi +nition gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/parser.o -c ../parser.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/parserInternals.o -c ../parserInternals.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/pattern.o -c ../pattern.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/relaxng.o -c ../relaxng.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/SAX.o -c ../SAX.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/SAX2.o -c ../SAX2.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/schematron.o -c ../schematron.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/threads.o -c ../threads.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/tree.o -c ../tree.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/uri.o -c ../uri.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/valid.o -c ../valid.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/xinclude.o -c ../xinclude.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/xlink.o -c ../xlink.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/xmlIO.o -c ../xmlIO.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/xmlmemory.o -c ../xmlmemory.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/xmlreader.o -c ../xmlreader.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/xmlregexp.o -c ../xmlregexp.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/xmlmodule.o -c ../xmlmodule.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/xmlsave.o -c ../xmlsave.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/xmlschemas.o -c ../xmlschemas.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/xmlschemastypes.o -c ../xmlschemastypes.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/xmlunicode.o -c ../xmlunicode.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/xmlwriter.o -c ../xmlwriter.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/xpath.o -c ../xpath.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI int.mingw/xpointer.o -c ../xpointer.c + ../include/libxml/parserInternals.h:270: warning: array 'xmlStringText +' assumed ../include/libxml/parserInternals.h:271: warning: array 'xmlStringText +Noenc' ass ../include/libxml/parserInternals.h:272: warning: array 'xmlStringComm +ent' assum gcc.exe -Wl,--major-image-version,2 -Wl,--minor-image-version,6 -Wl,-L +,bin.mingw ll -Wl,--out-implib,bin.mingw/libxml2.lib -o bin.mingw/libxml2.dll int +.mingw/c14 d.o int.mingw/debugXML.o int.mingw/dict.o int.mingw/DOCBparser.o int.m +ingw/encod or.o int.mingw/globals.o int.mingw/hash.o int.mingw/HTMLparser.o int.m +ingw/HTMLt o int.mingw/nanoftp.o int.mingw/nanohttp.o int.mingw/parser.o int.ming +w/parserIn relaxng.o int.mingw/SAX.o int.mingw/SAX2.o int.mingw/schematron.o int. +mingw/thre nt.mingw/valid.o int.mingw/xinclude.o int.mingw/xlink.o int.mingw/xmlI +O.o int.mi t.mingw/xmlregexp.o int.mingw/xmlmodule.o int.mingw/xmlsave.o int.ming +w/xmlschem gw/xmlunicode.o int.mingw/xmlwriter.o int.mingw/xpath.o int.mingw/xpoi +nter.o int -liconv -lkernel32 + Creating library file: bin.mingw/libxml2.lib + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/c14n.o -c ../c14n.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/catalog.o -c ../catalog.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/chvalid.o -c ../chvalid.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/debugXML.o -c ../debugXML.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/dict.o -c ../dict.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/DOCBparser.o -c ../DOCBparser.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/encoding.o -c ../encoding.c + ../encoding.c: In function `xmlIconvWrapper': + ../encoding.c:1706: warning: passing arg 2 of `libiconv' from incompat +ible point gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/entities.o -c ../entities.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/error.o -c ../error.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/globals.o -c ../globals.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/hash.o -c ../hash.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/HTMLparser.o -c ../HTMLparser.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/HTMLtree.o -c ../HTMLtree.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/legacy.o -c ../legacy.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_WI IBXML_STATIC -o int.a.mingw/list.o -c ../list.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/nanoftp.o -c ../nanoftp.c + ../nanoftp.c:81:1: warning: "_WINSOCKAPI_" redefined + <command line>:5:1: warning: this is the location of the previous defi +nition gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/nanohttp.o -c ../nanohttp.c + ../nanohttp.c:78:1: warning: "_WINSOCKAPI_" redefined + <command line>:5:1: warning: this is the location of the previous defi +nition gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/parser.o -c ../parser.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/parserInternals.o -c ../parserInternals.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/pattern.o -c ../pattern.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/relaxng.o -c ../relaxng.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/SAX.o -c ../SAX.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/SAX2.o -c ../SAX2.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/schematron.o -c ../schematron.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/threads.o -c ../threads.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/tree.o -c ../tree.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/uri.o -c ../uri.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/valid.o -c ../valid.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/xinclude.o -c ../xinclude.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/xlink.o -c ../xlink.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/xmlIO.o -c ../xmlIO.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/xmlmemory.o -c ../xmlmemory.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/xmlreader.o -c ../xmlreader.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/xmlregexp.o -c ../xmlregexp.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/xmlmodule.o -c ../xmlmodule.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/xmlsave.o -c ../xmlsave.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/xmlschemas.o -c ../xmlschemas.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/xmlschemastypes.o -c ../xmlschemastypes.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/xmlunicode.o -c ../xmlunicode.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/xpath.o -c ../xpath.c + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W IBXML_STATIC -o int.a.mingw/xpointer.o -c ../xpointer.c + ar.exe -r bin.mingw\libxml2.a int.a.mingw/c14n.o int.a.mingw/catalog.o + int.a.mi a.mingw/dict.o int.a.mingw/DOCBparser.o int.a.mingw/encoding.o int.a.m +ingw/enti obals.o int.a.mingw/hash.o int.a.mingw/HTMLparser.o int.a.mingw/HTMLtr +ee.o int. .mingw/nanoftp.o int.a.mingw/nanohttp.o int.a.mingw/parser.o int.a.min +gw/parser ingw/relaxng.o int.a.mingw/SAX.o int.a.mingw/SAX2.o int.a.mingw/schema +tron.o in t.a.mingw/uri.o int.a.mingw/valid.o int.a.mingw/xinclude.o int.a.mingw +/xlink.o .o int.a.mingw/xmlreader.o int.a.mingw/xmlregexp.o int.a.mingw/xmlmodu +le.o int. o int.a.mingw/xmlschemastypes.o int.a.mingw/xmlunicode.o int.a.mingw/x +mlwriter. r.o int.a.mingw/xmlstring.o + gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -IC:/camelbox\inc +lude -D_W int.utils.mingw/xmllint.o -c ../xmllint.c + ../xmllint.c:31:1: warning: "_WINSOCKAPI_" redefined + <command line>:5:1: warning: this is the location of the previous defi +nition gcc.exe -Wl,--major-image-version,2 -Wl,--minor-image-version,6 -Wl,-L +,bin.ming llint.exe int.utils.mingw/xmllint.o -llibxml2 -lwsock32 -lwsock32 -li +conv -lker int.utils.mingw/xmllint.o: In function `xmlHTMLEncodeSend': + C:/libxml2/win32/../xmllint.c:537: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:537: undefined reference to `_imp__xmlGe +nericError int.utils.mingw/xmllint.o: In function `xmlHTMLPrintFileInfo': + C:/libxml2/win32/../xmllint.c:553: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:553: undefined reference to `_imp__xmlGe +nericError int.utils.mingw/xmllint.o: In function `xmlHTMLPrintFileContext': + C:/libxml2/win32/../xmllint.c:581: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:581: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:613: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:613: undefined reference to `_imp__xmlGe +nericError int.utils.mingw/xmllint.o: In function `xmlHTMLError': + C:/libxml2/win32/../xmllint.c:641: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:641: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:647: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:647: undefined reference to `_imp__xmlGe +nericError int.utils.mingw/xmllint.o: In function `xmlHTMLWarning': + C:/libxml2/win32/../xmllint.c:679: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:679: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:685: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:685: undefined reference to `_imp__xmlGe +nericError int.utils.mingw/xmllint.o: In function `xmlHTMLValidityError': + C:/libxml2/win32/../xmllint.c:715: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:715: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:721: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:721: undefined reference to `_imp__xmlGe +nericError int.utils.mingw/xmllint.o: In function `xmlHTMLValidityWarning': + C:/libxml2/win32/../xmllint.c:752: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:752: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:758: undefined reference to `_imp__xmlGe +nericError C:/libxml2/win32/../xmllint.c:758: undefined reference to `_imp__xmlGe +nericError int.utils.mingw/xmllint.o: In function `streamFile': + C:/libxml2/win32/../xmllint.c:1830: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:1830: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:1864: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:1864: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:1879: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:1879: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:1923: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:1923: undefined reference to `_imp__xmlG +enericErro int.utils.mingw/xmllint.o: In function `walkDoc': + C:/libxml2/win32/../xmllint.c:1988: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:1988: undefined reference to `_imp__xmlG +enericErro int.utils.mingw/xmllint.o: In function `parseAndPrintFile': + C:/libxml2/win32/../xmllint.c:2590: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:2590: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:2593: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:2593: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:2600: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:2600: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:2613: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:2613: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:2617: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:2617: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:2632: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:2632: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:2644: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:2644: undefined reference to `_imp__xmlG +enericErro int.utils.mingw/xmllint.o: In function `showVersion': + C:/libxml2/win32/../xmllint.c:2778: undefined reference to `_imp__xmlP +arserVersi int.utils.mingw/xmllint.o: In function `main': + C:/libxml2/win32/../xmllint.c:3106: undefined reference to `_imp__xmlG +etWarnings C:/libxml2/win32/../xmllint.c:3112: undefined reference to `_imp__xmlG +etWarnings C:/libxml2/win32/../xmllint.c:3120: undefined reference to `_imp__xmlP +arserDebug C:/libxml2/win32/../xmllint.c:3276: undefined reference to `_imp__xmlT +reeIndentS C:/libxml2/win32/../xmllint.c:3285: undefined reference to `_imp__xmlL +oadExtDtdD C:/libxml2/win32/../xmllint.c:3285: undefined reference to `_imp__xmlL +oadExtDtdD C:/libxml2/win32/../xmllint.c:3287: undefined reference to `_imp__xmlL +oadExtDtdD C:/libxml2/win32/../xmllint.c:3287: undefined reference to `_imp__xmlL +oadExtDtdD C:/libxml2/win32/../xmllint.c:3290: undefined reference to `_imp__xmlD +oValidityC C:/libxml2/win32/../xmllint.c:3293: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3293: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3295: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3295: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3297: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3297: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3300: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3300: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3314: undefined reference to `_imp__xmlL +oadExtDtdD C:/libxml2/win32/../xmllint.c:3314: undefined reference to `_imp__xmlL +oadExtDtdD C:/libxml2/win32/../xmllint.c:3328: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3328: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3348: undefined reference to `_imp__xmlL +oadExtDtdD C:/libxml2/win32/../xmllint.c:3348: undefined reference to `_imp__xmlL +oadExtDtdD C:/libxml2/win32/../xmllint.c:3360: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3360: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3386: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3386: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3405: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3405: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3521: undefined reference to `_imp__xmlG +enericErro C:/libxml2/win32/../xmllint.c:3521: undefined reference to `_imp__xmlG +enericErro collect2: ld returned 1 exit status + make: *** [bin.mingw/xmllint.exe] Error 1
Some one please help! I really want to be able to use this module under my current installation. I do not have much expereience with C, MinGW or compiling my own libraries, but I can usually find my way around. I'm not really sure where to even start here....

Thanks for the help!

Replies are listed 'Best First'.
Re: XML::LibXML, Windows, & Camelbox Install Problems
by spicyjack (Beadle) on Feb 16, 2009 at 21:37 UTC
    You need to do some Makefile hacking because the existing Perl module for discovering library dependencies (ExtUtils::Liblist::Kid) doesn't work that well on Windows. In all of the Makefiles for XML::LibXML* that are generated when you run perl Makefile.PL, you need to add C:\camelbox\bin\zlib1.dll and C:\camelbox\bin\libxml2.dll to the environment variables LDLOADLIBS and EXTRALIBS. So those environment variables should look something like this when you're done:
    EXTRALIBS = C:\camelbox\lib\libmsvcrt.a C:\camelbox\lib\libmoldname.a +C:\camelbox\lib\libkernel32.a C:\camelbox\lib\libuser32.a C:\camelbox +\lib\libgdi32.a C:\camelbox\lib\libwinspool.a C:\camelbox\lib\libcomd +lg32.a C:\camelbox\lib\libadvapi32.a C:\camelbox\lib\libshell32.a C:\ +camelbox\lib\libole32.a C:\camelbox\lib\liboleaut32.a C:\camelbox\lib +\libnetapi32.a C:\camelbox\lib\libuuid.a C:\camelbox\lib\libws2_32.a +C:\camelbox\lib\libmpr.a C:\camelbox\lib\libwinmm.a C:\camelbox\lib\l +ibversion.a C:\camelbox\lib\libodbc32.a C:\camelbox\lib\libodbccp32.a + C:\camelbox\bin\zlib1.dll C:\camelbox\bin\libxml2.dll LDLOADLIBS = C:\camelbox\lib\libmsvcrt.a C:\camelbox\lib\libmoldname.a + C:\camelbox\lib\libkernel32.a C:\camelbox\lib\libuser32.a C:\camelbo +x\lib\libgdi32.a C:\camelbox\lib\libwinspool.a C:\camelbox\lib\libcom +dlg32.a C:\camelbox\lib\libadvapi32.a C:\camelbox\lib\libshell32.a C: +\camelbox\lib\libole32.a C:\camelbox\lib\liboleaut32.a C:\camelbox\li +b\libnetapi32.a C:\camelbox\lib\libuuid.a C:\camelbox\lib\libws2_32.a + C:\camelbox\lib\libmpr.a C:\camelbox\lib\libwinmm.a C:\camelbox\lib\ +libversion.a C:\camelbox\lib\libodbc32.a C:\camelbox\lib\libodbccp32. +a C:\camelbox\bin\zlib1.dll C:\camelbox\bin\libxml2.dll
    You can use the 'look' command from within the CPAN shell to download the source to hack it up prior to running 'dmake'. Using the above instructions I was able to get XML::LibXML::Common and XML::LibXML to compile under Camelbox (after installing the other prerequisites of XML::SAX and XML::NamespaceSupport of course).
    C:\camelbox\.cpan\build\XML-LibXML-1.69-8uOaSj>perl -e "use XML::LibXM +L; print $XML::LibXML::VERSION . qq(\n);" 1.69 C:\camelbox\.cpan\build\XML-LibXML-1.69-8uOaSj>
    Thanks, Brian
      This worked perfectly! Thank you!
      I have found that prepending
      $config{LIBS} = ":nosearch $config{LIBS}";
      stops ExtUtils::Liblist from removing LIBS, seems kind of stupid, bug its easier than hacking Makefile.
Re: XML::LibXML, Windows, & Camelbox Install Problems
by Anonymous Monk on Feb 11, 2009 at 08:25 UTC
    Note (probably harmless): No library found for -llibxml2 + Note (probably harmless): No library found for -lzlib
    This error is most definetly not harmless.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://742844]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-16 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found