lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] Upgrading libxml2 and libxslt [Was: Do we have zlib already?]


From: Greg Chicares
Subject: [lmi] Upgrading libxml2 and libxslt [Was: Do we have zlib already?]
Date: Wed, 13 Jul 2016 18:05:17 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.8.0

On 2016-07-12 17:47, Greg Chicares wrote:
> On 2016-07-12 16:27, Greg Chicares wrote:
[...]
> On second thought, let me try modifying 'install_libxml2_libxslt.make'
> myself, and then ask for your review.

I just pushed commit b6cbdeeeb406727ae96c2d28a5a137e9b1bf341c, which is
a refactoring that leaves the library versions unchanged. I've tested
it, and it appears to work as well as its preceding version.

However, I run into difficulty with the following patch, which updates
the libraries (causing '--without-threads' and '--without-zlib' to be
suppressed in the makefile's 'configure' options).

--------8<--------8<--------8<--------8<--------8<--------8<--------

diff --git a/install_libxml2_libxslt.make b/install_libxml2_libxslt.make
index 89a9c80..b1b65b1 100644
--- a/install_libxml2_libxslt.make
+++ b/install_libxml2_libxslt.make
@@ -23,10 +23,10 @@

 # Archives and their md5sums

-libxml2_version = libxml2-2.6.26
-libxslt_version = libxslt-1.1.17
-#libxml2_version = libxml2-2.9.4
-#libxslt_version = libxslt-1.1.29
+#libxml2_version = libxml2-2.6.26
+#libxslt_version = libxslt-1.1.17
+libxml2_version = libxml2-2.9.4
+libxslt_version = libxslt-1.1.29

 libxml2_archive := $(libxml2_version).tar.gz
 libxslt_archive := $(libxslt_version).tar.gz

-------->8-------->8-------->8-------->8-------->8-------->8--------

Here's the problem AFAICT:

*** Warning: linker path does not have real file for library -lz.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libz and none of the candidates passed a file format test
*** using a file magic. Last file checked: 
C:/opt/lmi/MinGW-4_9_1/i686-w64-mingw32/lib/libz.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.
  CCLD     xmllint.exe
xmllint.o: In function `xmllintExternalEntityLoader':
C:\opt\lmi\xml-scratch\libxml2-2.9.4/xmllint.c:326: undefined reference to 
`_imp__xmlFree'
C:\opt\lmi\xml-scratch\libxml2-2.9.4/xmllint.c:323: undefined reference to 
`_imp__xmlFree'
xmllint.o: In function `myStrdupFunc':
C:\opt\lmi\xml-scratch\libxml2-2.9.4/xmllint.c:397: undefined reference to 
`_imp__xmlFree'
xmllint.o: In function `processNode':
C:\opt\lmi\xml-scratch\libxml2-2.9.4/xmllint.c:1821: undefined reference to 
`_imp__xmlFree'
xmllint.o: In function `xmlHTMLEncodeSend':
C:\opt\lmi\xml-scratch\libxml2-2.9.4/xmllint.c:550: undefined reference to 
`_imp__xmlFree'
xmllint.o:C:\opt\lmi\xml-scratch\libxml2-2.9.4/xmllint.c:2614: more undefined 
references to `_imp__xmlFree' follow
collect2.exe: error: ld returned 1 exit status
Makefile:1117: recipe for target 'xmllint.exe' failed

If I instead apply the following patch (which builds the new libraries
using '--without-threads' and '--without-zlib'), then everything seems
to work just fine.

--------8<--------8<--------8<--------8<--------8<--------8<--------
diff --git a/install_libxml2_libxslt.make b/install_libxml2_libxslt.make
index 89a9c80..aa40709 100644
--- a/install_libxml2_libxslt.make
+++ b/install_libxml2_libxslt.make
@@ -23,10 +23,10 @@

 # Archives and their md5sums

-libxml2_version = libxml2-2.6.26
-libxslt_version = libxslt-1.1.17
-#libxml2_version = libxml2-2.9.4
-#libxslt_version = libxslt-1.1.29
+#libxml2_version = libxml2-2.6.26
+#libxslt_version = libxslt-1.1.17
+libxml2_version = libxml2-2.9.4
+libxslt_version = libxslt-1.1.29

 libxml2_archive := $(libxml2_version).tar.gz
 libxslt_archive := $(libxslt_version).tar.gz
@@ -107,6 +107,8 @@ $(libxml2_version)_options := \
   --without-iconv \
   --without-modules \
   --without-schematron \
+  --without-threads \
+  --without-zlib \

 # Expunge this workaround soon.
 libxml2-2.6.26: $(libxml2_version)_options := \

-------->8-------->8-------->8-------->8-------->8-------->8--------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]