[xml] Error in building libxml2 [cross compiling] [xmlIO.c:1450:52: error: ‘LZMA_OK’ undeclared (first use in this function)]



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



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