the general way to resolve this kind of build warning/error(assume on centOS) :
#yum search libxml2
....
libxml2.i386 : Library providing XML and HTML support
libxml2.x86_64 : Library providing XML and HTML support
libxml2-devel.i386 : Libraries, includes, etc. to develop XML and HTML...