I’m trying to build the latest version 2.9.7 using msys2. I am getting 2 
problems.


1.     I need to export LIBS="-lws2_32 -lgdi32 -lkernel32" before running 
./configure. Otherwise I will get lots of linkage errors.

2.     After adding the above libraries, I get the following error:
make[2]: Entering directory '/c/Build/libxml2-2.9.7'
  CCLD     xmllint.exe
xmllint.o: In function `xmllintExternalEntityLoader':
C:\Build\libxml2-2.9.7/xmllint.c:310: undefined reference to `_imp__xmlFree'
C:\Build\libxml2-2.9.7/xmllint.c:307: undefined reference to `_imp__xmlFree'
xmllint.o: In function `myStrdupFunc':
C:\Build\libxml2-2.9.7/xmllint.c:381: undefined reference to `_imp__xmlFree'
xmllint.o: In function `processNode':
C:\Build\libxml2-2.9.7/xmllint.c:1805: undefined reference to `_imp__xmlFree'
xmllint.o: In function `xmlHTMLEncodeSend':
C:\Build\libxml2-2.9.7/xmllint.c:534: undefined reference to `_imp__xmlFree'
xmllint.o:C:\Build\libxml2-2.9.7/xmllint.c:2598: more undefined references to 
`_imp__xmlFree' follow
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile:1119: xmllint.exe] Error 1
make[2]: Leaving directory '/c/Build/libxml2-2.9.7'
make[1]: *** [Makefile:1441: all-recursive] Error 1
make[1]: Leaving directory '/c/Build/libxml2-2.9.7'
make: *** [Makefile:860: all] Error 2

I checked .libs directory and found:
libtestdso.a  libxml2.a  libxml2.la  libxml2.lai  testdso.la  testdso.lai

It seems the build did not build dll library even though it should do (by 
default).

I’m not familiar with Bash script or makefile syntax, so I am not able to find 
the cause. Help needed. Thanks.
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
https://mail.gnome.org/mailman/listinfo/xml

Reply via email to