Open KISSMonX opened 8 years ago
libxml2`s version 2.9.3
Thanks for the feedback. It compiles on my system just fine. Looking at my linking stage
libtool: link: g++ -Wall -Werror -ansi -pedantic -I/usr/include/libxml2 -g -O2 -o test_app main.o /usr/lib64/libxml2.so -llzma -lz -lm -ldl -L/home/varol/AI/libAIML/js/v8//out/x64.release/obj.target/tools/gyp/ -L/home/varol/AI/libAIML/js/v8//out/x64.release/obj.target/third_party/icu/ ../src/libaiml.a -lpcrecpp -lpthread -lrt -lv8_base -lv8_snapshot -licuuc -licui18n -licudata -lv8_libbase.x64 -L../std_utils/src -lstd_utils -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath -Wl,/usr/lib64
I see that autotools are linking against /usr/lib64/libxml2.so
can you let me know how you used configure ?
mingh@ubuntu:~/robosys/AIML/libAIML$ make make all-recursive make[1]: Entering directory
/home/mingh/robosys/AIML/libAIML' Making all in std_utils make[2]: Entering directory
/home/mingh/robosys/AIML/libAIML/std_utils' make all-recursive make[3]: Entering directory/home/mingh/robosys/AIML/libAIML/std_utils' Making all in src make[4]: Entering directory
/home/mingh/robosys/AIML/libAIML/std_utils/src' make[4]: Nothing to be done forall'. make[4]: Leaving directory
/home/mingh/robosys/AIML/libAIML/std_utils/src' Making all in stdutil_test make[4]: Entering directory/home/mingh/robosys/AIML/libAIML/std_utils/stdutil_test' make[4]: Nothing to be done for
all'. make[4]: Leaving directory/home/mingh/robosys/AIML/libAIML/std_utils/stdutil_test' make[4]: Entering directory
/home/mingh/robosys/AIML/libAIML/std_utils' make[4]: Leaving directory/home/mingh/robosys/AIML/libAIML/std_utils' make[3]: Leaving directory
/home/mingh/robosys/AIML/libAIML/std_utils' make[2]: Leaving directory/home/mingh/robosys/AIML/libAIML/std_utils' Making all in src make[2]: Entering directory
/home/mingh/robosys/AIML/libAIML/src' make[2]: Nothing to be done forall'. make[2]: Leaving directory
/home/mingh/robosys/AIML/libAIML/src' Making all in util make[2]: Entering directory/home/mingh/robosys/AIML/libAIML/util' make[3]: Entering directory
/home/mingh/robosys/AIML/libAIML' make[3]: Leaving directory/home/mingh/robosys/AIML/libAIML' make[3]: Entering directory
/home/mingh/robosys/AIML/libAIML/util' make[4]: Entering directory/home/mingh/robosys/AIML/libAIML' make[4]: Leaving directory
/home/mingh/robosys/AIML/libAIML' /bin/bash ../libtool --tag=CXX --mode=link g++ -Wall -Werror -ansi -pedanticxml2-config --cflags
-g -O2 -L/usr/local/lib -lxml2 -lz -lm -ldl -o aiml_util parser.o main.o ../src/libaiml.a -L../std_utils/src -lstd_utils libtool: link: g++ -Wall -Werror -ansi -pedantic -I/usr/local/include/libxml2 -g -O2 -o aiml_util parser.o main.o -L/usr/local/lib -lxml2 -lz -lm -ldl ../src/libaiml.a -L../std_utils/src -lstd_utils ../src/libaiml.a(aiml_parser.o): In functionaiml::AIMLparser::startElement(std::string const&, std::list<std::string, std::allocator<std::string> > const&)': /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:219: undefined reference to
xmlStopParser' /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:305: undefined reference toxmlStopParser' /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:346: undefined reference to
xmlStopParser' ../src/libaiml.a(aiml_parser.o): In functionaiml::AIMLparser::parse(std::string const&, bool, bool)': /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:99: undefined reference to
xmlCreateFileParserCtxt' /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:113: undefined reference toxmlParseDocument' /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:121: undefined reference to
xmlFreeDoc' /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:122: undefined reference toxmlFreeParserCtxt' /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:102: undefined reference to
xmlCtxtGetLastError' ../src/libaiml.a(aiml_parser.o): In functionaiml::AIMLparser::onError()': /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:144: undefined reference to
xmlCtxtGetLastError' /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:154: undefined reference toxmlStopParser' ../src/libaiml.a(user_manager.o): In function
aiml::cUserManager::cUserManager(aiml::cCore&)': /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:32: undefined reference toxmlNewParserCtxt' ../src/libaiml.a(user_manager.o): In function
aiml::cUserManager::~cUserManager()': /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:36: undefined reference toxmlFreeParserCtxt' ../src/libaiml.a(user_manager.o): In function
aiml::cUserManager::save(std::string const&)': /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:101: undefined reference toxmlNewTextWriterFilename' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:104: undefined reference to
xmlTextWriterSetIndent' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:105: undefined reference toxmlTextWriterSetIndentString' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:108: undefined reference to
xmlTextWriterStartDocument' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:109: undefined reference toxmlTextWriterStartElement' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:113: undefined reference to
xmlTextWriterStartElement' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:114: undefined reference toxmlTextWriterWriteAttribute' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:118: undefined reference to
xmlTextWriterStartElement' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:119: undefined reference toxmlTextWriterWriteAttribute' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:120: undefined reference to
xmlTextWriterWriteCDATA' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:121: undefined reference toxmlTextWriterEndElement' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:123: undefined reference to
xmlTextWriterEndElement' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:126: undefined reference toxmlTextWriterEndElement' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:127: undefined reference to
xmlTextWriterEndDocument' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:138: undefined reference toxmlFreeTextWriter' ../src/libaiml.a(user_manager.o): In function
aiml::cUserManager::load(std::string const&)': /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:51: undefined reference toxmlCtxtReadFile' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:55: undefined reference to
xmlDocGetRootElement' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:93: undefined reference toxmlFreeDoc' ../src/libaiml.a(config_parser.o): In function
aiml::cConfigParser::cConfigParser(aiml::cCore&)': /home/mingh/robosys/AIML/libAIML/src/config_parser.cpp:39: undefined reference toxmlNewParserCtxt' ../src/libaiml.a(config_parser.o): In function
aiml::cConfigParser::~cConfigParser()': /home/mingh/robosys/AIML/libAIML/src/config_parser.cpp:43: undefined reference toxmlFreeParserCtxt' ../src/libaiml.a(config_parser.o): In function
aiml::cConfigParser::load(std::string const&, bool)': /home/mingh/robosys/AIML/libAIML/src/config_parser.cpp:52: undefined reference toxmlCtxtReadFile' /home/mingh/robosys/AIML/libAIML/src/config_parser.cpp:56: undefined reference to
xmlDocGetRootElement' /home/mingh/robosys/AIML/libAIML/src/config_parser.cpp:79: undefined reference toxmlFreeDoc' collect2: error: ld returned 1 exit status make[3]: *** [aiml_util] Error 1 make[3]: Leaving directory
/home/mingh/robosys/AIML/libAIML/util' make[2]: * [all-recursive] Error 1 make[2]: Leaving directory `/home/mingh/robosys/AIML/libAIML/util' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory`/home/mingh/robosys/AIML/libAIML' make: *\ [all] Error 2