VarolOkan / libAIML

libaiml
GNU General Public License v2.0
11 stars 7 forks source link

rebuild errors: undefined xml* function #1

Open KISSMonX opened 8 years ago

KISSMonX commented 8 years ago

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 for all'. 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 forall'. 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 for all'. 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 -pedantic xml2-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 function aiml::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 toxmlStopParser' /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:305: undefined reference to xmlStopParser' /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:346: undefined reference toxmlStopParser' ../src/libaiml.a(aiml_parser.o): In function aiml::AIMLparser::parse(std::string const&, bool, bool)': /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:99: undefined reference toxmlCreateFileParserCtxt' /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:113: undefined reference to xmlParseDocument' /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:121: undefined reference toxmlFreeDoc' /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:122: undefined reference to xmlFreeParserCtxt' /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:102: undefined reference toxmlCtxtGetLastError' ../src/libaiml.a(aiml_parser.o): In function aiml::AIMLparser::onError()': /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:144: undefined reference toxmlCtxtGetLastError' /home/mingh/robosys/AIML/libAIML/src/aiml_parser.cpp:154: undefined reference to xmlStopParser' ../src/libaiml.a(user_manager.o): In functionaiml::cUserManager::cUserManager(aiml::cCore&)': /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:32: undefined reference to xmlNewParserCtxt' ../src/libaiml.a(user_manager.o): In functionaiml::cUserManager::~cUserManager()': /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:36: undefined reference to xmlFreeParserCtxt' ../src/libaiml.a(user_manager.o): In functionaiml::cUserManager::save(std::string const&)': /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:101: undefined reference to xmlNewTextWriterFilename' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:104: undefined reference toxmlTextWriterSetIndent' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:105: undefined reference to xmlTextWriterSetIndentString' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:108: undefined reference toxmlTextWriterStartDocument' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:109: undefined reference to xmlTextWriterStartElement' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:113: undefined reference toxmlTextWriterStartElement' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:114: undefined reference to xmlTextWriterWriteAttribute' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:118: undefined reference toxmlTextWriterStartElement' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:119: undefined reference to xmlTextWriterWriteAttribute' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:120: undefined reference toxmlTextWriterWriteCDATA' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:121: undefined reference to xmlTextWriterEndElement' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:123: undefined reference toxmlTextWriterEndElement' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:126: undefined reference to xmlTextWriterEndElement' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:127: undefined reference toxmlTextWriterEndDocument' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:138: undefined reference to xmlFreeTextWriter' ../src/libaiml.a(user_manager.o): In functionaiml::cUserManager::load(std::string const&)': /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:51: undefined reference to xmlCtxtReadFile' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:55: undefined reference toxmlDocGetRootElement' /home/mingh/robosys/AIML/libAIML/src/user_manager.cpp:93: undefined reference to xmlFreeDoc' ../src/libaiml.a(config_parser.o): In functionaiml::cConfigParser::cConfigParser(aiml::cCore&)': /home/mingh/robosys/AIML/libAIML/src/config_parser.cpp:39: undefined reference to xmlNewParserCtxt' ../src/libaiml.a(config_parser.o): In functionaiml::cConfigParser::~cConfigParser()': /home/mingh/robosys/AIML/libAIML/src/config_parser.cpp:43: undefined reference to xmlFreeParserCtxt' ../src/libaiml.a(config_parser.o): In functionaiml::cConfigParser::load(std::string const&, bool)': /home/mingh/robosys/AIML/libAIML/src/config_parser.cpp:52: undefined reference to xmlCtxtReadFile' /home/mingh/robosys/AIML/libAIML/src/config_parser.cpp:56: undefined reference toxmlDocGetRootElement' /home/mingh/robosys/AIML/libAIML/src/config_parser.cpp:79: undefined reference to xmlFreeDoc' 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

KISSMonX commented 8 years ago

libxml2`s version 2.9.3

VarolOkan commented 8 years ago

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 ?