<![CDATA[Latest posts for the topic "Biên dịch xmlstarlet bị lỗi"]]> /hvaonline/posts/list/24.html JForum - http://www.jforum.net Biên dịch xmlstarlet bị lỗi http://xmlstar.sourceforge.net/ bị lỗi, không biết phải xử thế nào, tìm cũng chưa được gì, mong các anh chỉ giúp :D. Em configure bình thường, nhưng make thì bị lỗi, trong config.log nó ghi như vầy:
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:586: checking for a BSD compatible install configure:639: checking whether build environment is sane configure:696: checking whether make sets ${MAKE} configure:742: checking for working aclocal-1.4 configure:755: checking for working autoconf configure:768: checking for working automake-1.4 configure:781: checking for working autoheader configure:794: checking for working makeinfo configure:808: checking whether to enable maintainer-specific portions of Makefiles configure:837: checking host system type configure:860: checking for gcc configure:973: checking whether the C compiler (gcc -L/opt/gtk/lib:/usr/local/lib) works configure:989: gcc -o conftest -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:1015: checking whether the C compiler (gcc -L/opt/gtk/lib:/usr/local/lib) is a cross-compiler configure:1020: checking whether we are using GNU C configure:1029: gcc -E conftest.c configure:1048: checking whether gcc accepts -g configure:1219: checking for strerror in -lcposix configure:1238: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c -lcposix 1>&5 /usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld: cannot find -lcposix collect2: ld returned 1 exit status configure: failed program was: #line 1227 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strerror(); int main() { strerror() ; return 0; } configure:1263: checking for gcc configure:1376: checking whether the C compiler (gcc -Wall -g -pedantic -L/opt/gtk/lib:/usr/local/lib) works configure:1392: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:1389: warning: return type defaults to 'int' configure:1418: checking whether the C compiler (gcc -Wall -g -pedantic -L/opt/gtk/lib:/usr/local/lib) is a cross-compiler configure:1423: checking whether we are using GNU C configure:1451: checking whether gcc accepts -g configure:1483: checking how to run the C preprocessor configure:1504: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1563: checking for ANSI C header files configure:1576: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1643: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure: In function 'main': configure:1638: warning: implicit declaration of function 'exit' configure:1638: warning: incompatible implicit declaration of built-in function 'exit' configure:1691: checking for sys/types.h configure:1701: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1691: checking for sys/time.h configure:1701: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1691: checking for stdlib.h configure:1701: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1691: checking for unistd.h configure:1701: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1691: checking for string.h configure:1701: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1731: checking for ieeefp.h configure:1741: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1737:20: error: ieeefp.h: No such file or directory configure: failed program was: #line 1736 "configure" #include "confdefs.h" #include <ieeefp.h> configure:1731: checking for nan.h configure:1741: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1737:17: error: nan.h: No such file or directory configure: failed program was: #line 1736 "configure" #include "confdefs.h" #include <nan.h> configure:1731: checking for math.h configure:1741: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1731: checking for fp_class.h configure:1741: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1737:22: error: fp_class.h: No such file or directory configure: failed program was: #line 1736 "configure" #include "confdefs.h" #include <fp_class.h> configure:1731: checking for float.h configure:1741: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1731: checking for ansidecl.h configure:1741: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1771: checking for sys/timeb.h configure:1781: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1771: checking for time.h configure:1781: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1771: checking for sys/stat.h configure:1781: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1771: checking for stdarg.h configure:1781: gcc -E -I/opt/gtk/include:/usr/local/include conftest.c >/dev/null 2>conftest.out configure:1810: checking for stat configure:1838: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:1810: checking for _stat configure:1838: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 /tmp/cc0EbF0i.o: In function `main': /home/luannt/Install/Programming/xml/xmlstarlet-1.0.1/configure:1832: undefined reference to `_stat' collect2: ld returned 1 exit status configure: failed program was: #line 1815 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char _stat(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char _stat(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub__stat) || defined (__stub____stat) choke me #else _stat(); #endif ; return 0; } configure:1869: checking for gettimeofday configure:1897: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:1924: checking for mktime configure:1952: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:1924: checking for localtime configure:1952: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:1924: checking for asctime configure:1952: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:1924: checking for time configure:1952: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:1924: checking for gmtime configure:1952: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:1924: checking for ftime configure:1952: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:1979: checking for strdup configure:2007: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:1991: warning: conflicting types for built-in function 'strdup' configure:2035: checking for printf configure:2063: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:2047: warning: conflicting types for built-in function 'printf' configure:2035: checking for sprintf configure:2063: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:2047: warning: conflicting types for built-in function 'sprintf' configure:2035: checking for fprintf configure:2063: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:2047: warning: conflicting types for built-in function 'fprintf' configure:2035: checking for snprintf configure:2063: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:2047: warning: conflicting types for built-in function 'snprintf' configure:2035: checking for vfprintf configure:2063: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:2047: warning: conflicting types for built-in function 'vfprintf' configure:2035: checking for vsprintf configure:2063: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:2047: warning: conflicting types for built-in function 'vsprintf' configure:2035: checking for vsnprintf configure:2063: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:2047: warning: conflicting types for built-in function 'vsnprintf' configure:2035: checking for sscanf configure:2063: gcc -o conftest -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -L/opt/gtk/lib:/usr/local/lib conftest.c 1>&5 configure:2047: warning: conflicting types for built-in function 'sscanf' 
]]>
/hvaonline/posts/list/15974.html#95586 /hvaonline/posts/list/15974.html#95586 GMT
Re: Biên dịch xmlstarlet bị lỗi /hvaonline/posts/list/15974.html#95665 /hvaonline/posts/list/15974.html#95665 GMT Re: Biên dịch xmlstarlet bị lỗi make make all-recursive make[1]: Entering directory `/home/luannt/Install/Programming/xml/xmlstarlet-1.0.1' Making all in src make[2]: Entering directory `/home/luannt/Install/Programming/xml/xmlstarlet-1.0.1/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c xml.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c xml_edit.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c xml_ls.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c xml_escape.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c xml_pyx.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c xml_depyx.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c xml_select.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c xml_trans.c xml_trans.c: In function ‘trParseParams’: xml_trans.c:251: warning: passing argument 1 of ‘xmlFree’ discards qualifiers from pointer target type gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c xml_validate.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c xml_format.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c xml_elem.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opgcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c trans.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c binsert.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c stack.c t/gtk/include:/usr/local/include -Wall -g -pedantic -c xml_C14N.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I.. -I../src -I/usr/include/libxml2 -I/usr/include/libxslt -I/usr/include/libexslt -I/usr/include -Wall -g -pedantic -I/opt/gtk/include:/usr/local/include -Wall -g -pedantic -c strdup.c gcc -Wall -g -pedantic -L/opt/gtk/lib:/usr/local/lib -o xml xml.o xml_edit.o xml_ls.o xml_escape.o xml_pyx.o xml_depyx.o xml_select.o xml_trans.o xml_validate.o xml_format.o xml_elem.o xml_C14N.o trans.o binsert.o stack.o strdup.o /usr/lib/libxslt.a /usr/lib/libexslt.a -lz -lm -lpthread /usr/lib/libxml2.a -lz -lm -lpthread -ldl -L/usr/lib /usr/lib/libexslt.a(crypto.o): In function `exsltCryptoGcryptInit': crypto.c:(.text+0x1dc): undefined reference to `gcry_check_version' /usr/lib/libexslt.a(crypto.o): In function `exsltCryptoRc4DecryptFunction': crypto.c:(.text+0x36a): undefined reference to `gcry_cipher_open' crypto.c:(.text+0x396): undefined reference to `gcry_cipher_ctl' crypto.c:(.text+0x3c2): undefined reference to `gcry_cipher_decrypt' crypto.c:(.text+0x3d5): undefined reference to `gcry_cipher_close' crypto.c:(.text+0x4d2): undefined reference to `gcry_strerror' crypto.c:(.text+0x50d): undefined reference to `gcry_strerror' crypto.c:(.text+0x548): undefined reference to `gcry_strerror' /usr/lib/libexslt.a(crypto.o): In function `exsltCryptoRc4EncryptFunction': crypto.c:(.text+0x698): undefined reference to `gcry_cipher_open' crypto.c:(.text+0x6c4): undefined reference to `gcry_cipher_ctl' crypto.c:(.text+0x6ed): undefined reference to `gcry_cipher_encrypt' crypto.c:(.text+0x700): undefined reference to `gcry_cipher_close' crypto.c:(.text+0x819): undefined reference to `gcry_strerror' crypto.c:(.text+0x856): undefined reference to `gcry_strerror' crypto.c:(.text+0x88f): undefined reference to `gcry_strerror' /usr/lib/libexslt.a(crypto.o): In function `exsltCryptoGcryptHash': crypto.c:(.text+0x8fb): undefined reference to `gcry_md_hash_buffer' collect2: ld returned 1 exit status make[2]: *** [xml] Error 1 make[2]: Leaving directory `/home/luannt/Install/Programming/xml/xmlstarlet-1.0.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/luannt/Install/Programming/xml/xmlstarlet-1.0.1' make: *** [all-recursive-am] Error 2   ]]> /hvaonline/posts/list/15974.html#96397 /hvaonline/posts/list/15974.html#96397 GMT