From: Dumas P. <du...@ce...> - 2003-06-23 17:00:20
|
Hi, I tried to compile tripwire on redhat 9.0 (with Paul patch applied). I did ./configure --enable-static --sysconfdir=/etc/tripwire And make give this: Making all in twprint make[3]: Entering directory `/cired/zeus/data/src/tripwire/src/twprint' g++ -O -pipe -Wall -static -L../../lib -o twprint stdtwprint.o twprint.o twpr intcmdline.o twprinterrors.o twprintmain.o twprintstrings.o -ltripwire -lcryptl ib -lcrypto twprintcmdline.o(.text+0x40): In function `InitCmdLineCommon(cCmdLineParser&)': : undefined reference to `cCmdLineParser::AddArg(int, std::basic_string<char, st d::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std ::char_traits<char>, std::allocator<char> > const&, cCmdLineParser::ParamCount, bool)' twprintcmdline.o(.text+0x10b): In function `InitCmdLineCommon(cCmdLineParser&)': : undefined reference to `cCmdLineParser::AddArg(int, std::basic_string<char, st d::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std ::char_traits<char>, std::allocator<char> > const&, cCmdLineParser::ParamCount, bool)' twprintcmdline.o(.text+0x1a6): In function `InitCmdLineCommon(cCmdLineParser&)':: undefined reference to `cCmdLineParser::AddArg(int, std::basic_string<char, st d::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std ::char_traits<char>, std::allocator<char> > const&, cCmdLineParser::ParamCount, bool)' twprintcmdline.o(.text+0x241): In function `InitCmdLineCommon(cCmdLineParser&)': : undefined reference to `cCmdLineParser::AddArg(int, std::basic_string<char, st d::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std ::char_traits<char>, std::allocator<char> > const&, cCmdLineParser::ParamCount, bool)' twprintcmdline.o(.text+0x2dc): In function `InitCmdLineCommon(cCmdLineParser&)': : undefined reference to `cCmdLineParser::AddArg(int, std::basic_string<char, st d::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std ::char_traits<char>, std::allocator<char> > const&, cCmdLineParser::ParamCount, bool)' twprintcmdline.o(.text+0x377): more undefined references to `cCmdLineParser::Add Arg(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > c onst&, cCmdLineParser::ParamCount, bool)' follow twprintcmdline.o(.text+0x739): In function `InitCmdLineCommon(cCmdLineParser&)': : undefined reference to `cCmdLineParser::AddMutEx(int, int)' twprintcmdline.o(.text+0x1b31): In function `cTWPrintReportMode::InitCmdLinePars er(cCmdLineParser&)': : undefined reference to `cCmdLineParser::AddArg(int, std::basic_string<char, st d::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std ::char_traits<char>, std::allocator<char> > const&, cCmdLineParser::ParamCount, bool)' twprintcmdline.o(.text+0x1bfc): In function `cTWPrintReportMode::InitCmdLinePars er(cCmdLineParser&)': : undefined reference to `cCmdLineParser::AddArg(int, std::basic_string<char, st d::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std ::char_traits<char>, std::allocator<char> > const&, cCmdLineParser::ParamCount, bool)' twprintcmdline.o(.text+0x2ca3): In function `cTWPrintDBMode::InitCmdLineParser(c CmdLineParser&)': : undefined reference to `cCmdLineParser::AddArg(int, std::basic_string<char, st d::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std ::char_traits<char>, std::allocator<char> > const&, cCmdLineParser::ParamCount, bool)' twprintcmdline.o(.text+0x2d6e): In function `cTWPrintDBMode::InitCmdLineParser(c CmdLineParser&)': : undefined reference to `cCmdLineParser::AddArg(int, std::basic_string<char, st d::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std ::char_traits<char>, std::allocator<char> > const&, cCmdLineParser::ParamCount, bool)' twprintcmdline.o(.text+0x4154): In function `cTWPrintHelpMode::InitCmdLineParser(cCmdLineParser&)': : undefined reference to `cCmdLineParser::AddArg(int, std::basic_string<char, st d::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std ::char_traits<char>, std::allocator<char> > const&, cCmdLineParser::ParamCount, bool)' twprintcmdline.o(.text+0x421f): more undefined references to `cCmdLineParser::Ad dArg(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cCmdLineParser::ParamCount, bool)' follow twprintmain.o(.text+0x43f): In function `main': : undefined reference to `cCmdLineParser::cCmdLineParser[in-charge]()' twprintmain.o(.text+0x45a): In function `main': : undefined reference to `cCmdLineParser::Parse(int, char const* const*)' twprintmain.o(.text+0x630): In function `main': : undefined reference to `cCmdLineIter::SeekToArg(int) const' twprintmain.o(.text+0xc8f): In function `main': : undefined reference to `cCmdLineParser::~cCmdLineParser [in-charge]()' twprintmain.o(.text+0xca6): In function `main': : undefined reference to `cCmdLineParser::~cCmdLineParser [in-charge]()' collect2: ld returned 1 exit status make[3]: *** [twprint] Error 1 make[3]: Leaving directory `/cired/zeus/data/src/tripwire/src/twprint' make[2]: *** [all-recursive] Error 1 If I cd in the tripwire directory and do a make, similar errors (with undefined reference to cCmdLineParser::AddArg) occur. I found that cCmdLineParser::AddArg seems to be in core/cmdlineparser.cpp. A make in this directory don't show any error and don't solve the problem. I don't know enough to help further, but i am ready to test. Pat |