Linking error: ../Control/MessagingSystem/libMessagingSystem.so: undefined reference to `opencog::messaging::MessageCogServer::getID()'

Bug #1069620 reported by David Hart
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenCog
Fix Released
High
linas

Bug Description

Linking CXX executable pbTest
libPBTester.a(PBTester.cc.o): In function `~PBTester':
/home/dhart/opencog_trunk/src/opencog/embodiment/AutomatedSystemTest/PBTester.cc:52: undefined reference to `opencog::messaging::MessageCogServer::~MessageCogServer()'
/home/dhart/opencog_trunk/src/opencog/embodiment/AutomatedSystemTest/PBTester.cc:52: undefined reference to `opencog::messaging::MessageCogServer::~MessageCogServer()'
libPBTester.a(PBTester.cc.o): In function `PBTester':
/home/dhart/opencog_trunk/src/opencog/embodiment/AutomatedSystemTest/PBTester.cc:48: undefined reference to `opencog::messaging::MessageCogServer::MessageCogServer()'
libPBTester.a(PBTester.cc.o): In function `AutomatedSystemTest::PBTester::init(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)':
/home/dhart/opencog_trunk/src/opencog/embodiment/AutomatedSystemTest/PBTester.cc:66: undefined reference to `opencog::messaging::MessageCogServer::setNetworkElement(opencog::messaging::NetworkElement*)'
libPBTester.a(PBTester.cc.o):(.data.rel.ro._ZTIN19AutomatedSystemTest8PBTesterE[typeinfo for AutomatedSystemTest::PBTester]+0x10): undefined reference to `typeinfo for opencog::messaging::MessageCogServer'
libPBTester.a(PBTester.cc.o):(.data.rel.ro._ZTVN19AutomatedSystemTest8PBTesterE[vtable for AutomatedSystemTest::PBTester]+0x38): undefined reference to `opencog::messaging::MessageCogServer::customLoopRun()'
libPBTester.a(PBTester.cc.o):(.data.rel.ro._ZTVN19AutomatedSystemTest8PBTesterE[vtable for AutomatedSystemTest::PBTester]+0x148): undefined reference to `opencog::messaging::MessageCogServer::sendMessage(opencog::messaging::Message&)'
libPBTester.a(PBTester.cc.o):(.data.rel.ro._ZTVN19AutomatedSystemTest8PBTesterE[vtable for AutomatedSystemTest::PBTester]+0x150): undefined reference to `opencog::messaging::MessageCogServer::sendCommandToRouter(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../Control/MessagingSystem/libMessagingSystem.so: undefined reference to `opencog::messaging::MessageCogServer::getID()'
collect2: ld returned 1 exit status
make[2]: *** [opencog/embodiment/AutomatedSystemTest/pbTest] Error 1
make[1]: *** [opencog/embodiment/AutomatedSystemTest/CMakeFiles/pbTest.dir/all] Error 2
make: *** [all] Error 2

Seeing this error on Shujing's machine, and mine.

Revision history for this message
David Hart (dhart) wrote :

Also (I can open a new bug for this if requested)

Linking CXX executable msgtester
libMessagingSystem.so: undefined reference to
`boost::gregorian::greg_month::as_short_string() const'
libMessagingSystem.so: undefined reference to
`boost::gregorian::greg_month::as_long_string() const'
collect2: ld returned 1 exit status
make[2]: *** [opencog/embodiment/Control/MessagingSystem/msgtester] Error 1
make[1]: *** [opencog/embodiment/Control/MessagingSystem/CMakeFiles/msgtester.dir/all]
Error 2
make: *** [all] Error 2

Revision history for this message
David Hart (dhart) wrote :

boost::gregorian::greg_month::as_short_string() const error appears only when

SET(CMAKE_BUILD_TYPE Debug)

Revision history for this message
linas (linasvepstas) wrote :

I am guessing that the following will fix it; I'm pre-emptively pushing this as bzr rev

=== modified file 'opencog/embodiment/AutomatedSystemTest/CMakeLists.txt'
--- opencog/embodiment/AutomatedSystemTest/CMakeLists.txt 2012-10-18 15:58:26 +0000
+++ opencog/embodiment/AutomatedSystemTest/CMakeLists.txt 2012-10-22 15:39:04 +0000
@@ -6,10 +6,9 @@
  GoldStdMessage
 )

-# MessagingSystem
-
 TARGET_LINK_LIBRARIES (PBTester
  PAI
+ MessagingSystem
  Control
  util
 )

Changed in opencog:
assignee: nobody → linas (linasvepstas)
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
linas (linasvepstas) wrote :

bzr rev 7884

linas (linasvepstas)
Changed in opencog:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.