Error in building libxml2 [cross compiling] [xmlIO.c:1450:52: error: ‘LZMA_OKâ €™ undeclared (first use in this funct ion)]

Ravi chandra reddy <[email protected]>
Newsgroups gmane.comp.gnome.lib.xml.general
Message-ID <CAGQ4JX39Es_9g+Gc5dkvzjfUmz1EJ0cRH=3Ry1hawgCvGKe0XA@mail.gmail.com>
Hi All,
         with AARCH64 [ARM64 compiler] compiler, i am running into this
error.

i believe this should have been solved by the team here.

============================
config.status: executing libtool commands
Done configuring
make  all-recursive
make[1]: Entering directory `/home/polar/libiio/libxml2/libxml2-2.9.3'
Making all in include
make[2]: Entering directory
`/home/polar/libiio/libxml2/libxml2-2.9.3/include'
Making all in libxml
make[3]: Entering directory
`/home/polar/libiio/libxml2/libxml2-2.9.3/include/libxml'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/polar/libiio/libxml2/libxml2-2.9.3/include/libxml'
make[3]: Entering directory
`/home/polar/libiio/libxml2/libxml2-2.9.3/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory
`/home/polar/libiio/libxml2/libxml2-2.9.3/include'
make[2]: Leaving directory
`/home/polar/libiio/libxml2/libxml2-2.9.3/include'
Making all in .
make[2]: Entering directory `/home/polar/libiio/libxml2/libxml2-2.9.3'
  CC       SAX.lo
  CC       entities.lo
  CC       encoding.lo
  CC       error.lo
  CC       parserInternals.lo
  CC       parser.lo
  CC       tree.lo
  CC       hash.lo
  CC       list.lo
  CC       xmlIO.lo
xmlIO.c: In function ‘xmlXzfileClose’:
xmlIO.c:1450:52: error: ‘LZMA_OK’ undeclared (first use in this
function)
     ret =  (__libxml2_xzclose((xzFile) context) == LZMA_OK ) ? 0 : -1;
                                                    ^
xmlIO.c:1450:52: note: each undeclared identifier is reported only once for
each function it appears in
xmlIO.c: In function ‘xmlIOHTTPOpenW__internal_alias’:
xmlIO.c:1879:42: warning: unused parameter ‘compression’
[-Wunused-parameter]
 xmlIOHTTPOpenW(const char *post_uri, int compression)
                                          ^
make[2]: *** [xmlIO.lo] Error 1
make[2]: Leaving directory `/home/polar/libiio/libxml2/libxml2-2.9.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/polar/libiio/libxml2/libxml2-2.9.3'
make: *** [all] Error 2
*root@polar:~/libiio/libxml2/libxml2-2.9.3# cat build.sh *
*./configure --build=x86_64-linux-gnu --host=aarch64-linux-gnu*

*make CROSS_COMIPLE=aarch64-linux-gnu-*

*root@polar:~/libiio/libxml2/libxml2-2.9.3#*
============================

Thanks

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
https://mail.gnome.org/mailman/listinfo/xml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.