Hi!
My name is Ferenc Pintér,a student implementing QoS-NSLP. I have tried to compile this GIMPS NTLP code, /nsis_0.1.tar.gz/ but it had failed.Hope I did everything right (I'm quite newbie). Ping,however did a nice job afterwards. (I received no error msgs)
I try to give a detailed picture of the my config:
Fedora Core 4 with kernel 2.6.11-1.1369_FC4, g++ 4.0 GNU Make 3.80 OpenSSL 0.9.7f 22 Mar 2005
I also attach the exact commands and output I've issued and received from terminal.
Should I change some compiling parameter,the makefile or touch the code?
Thank you for your help, Ferenc Pintér
____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
[root@localhost gimps]# make g++ -I. -O2 -Wall -c socket_events.cpp -o socket_events.o g++ -I. -O2 -Wall -c Gimps.cpp -o Gimps.o g++ -I. -O2 -Wall -c GimpsException.cpp -o GimpsException.o g++ -I. -O2 -Wall -c tests/TestMessageContainer.cpp -o tests/TestMessageContaine r.o g++ -I. -O2 -Wall -c GimpsSSLException.cpp -o GimpsSSLException.o g++ -I. -O2 -Wall -c tests/NetworkEmulator/NetworkEmulator.cpp -o tests/NetworkE mulator/NetworkEmulator.o g++ -I. -O2 -Wall -c GimpsDebugSocket.cpp -o GimpsDebugSocket.o g++ -I. -O2 -Wall -c message/GimpsMessage.cpp -o message/GimpsMessage.o g++ -I. -O2 -Wall -c message/GimpsStackProposal.cpp -o message/GimpsStackProposa l.o g++ -I. -O2 -Wall -c message/GimpsNslpData.cpp -o message/GimpsNslpData.o g++ -I. -O2 -Wall -c message/GimpsStackConfigurationData.cpp -o message/GimpsSta ckConfigurationData.o g++ -I. -O2 -Wall -c message/GimpsNetworkLayerInfo.cpp -o message/GimpsNetworkLa yerInfo.o g++ -I. -O2 -Wall -c hashtable/GimpsMRSKey.cpp -o hashtable/GimpsMRSKey.o g++ -I. -O2 -Wall -c hashtable/GimpsMAEntry.cpp -o hashtable/GimpsMAEntry.o g++ -I. -O2 -Wall -c message/GimpsObject.cpp -o message/GimpsObject.o g++ -I. -O2 -Wall -c message/GimpsResponderCookie.cpp -o message/GimpsResponderC ookie.o g++ -I. -O2 -Wall -c hashtable/GimpsMRS.cpp -o hashtable/GimpsMRS.o g++ -I. -O2 -Wall -c fsm/gimps_states_receiver.cpp -o fsm/gimps_states_receiver. o g++ -I. -O2 -Wall -c fsm/gimps_states_sender.cpp -o fsm/gimps_states_sender.o g++ -I. -O2 -Wall -c fsm/fsm.cpp -o fsm/fsm.o g++ -I. -O2 -Wall -c fsm/GimpsFSM.cpp -o fsm/GimpsFSM.o g++ -I. -O2 -Wall -c fsm/GimpsMessageHandler.cpp -o fsm/GimpsMessageHandler.o g++ -I. -O2 -Wall -c ping/PingMessage.cpp -o ping/PingMessage.o g++ -I. -O2 -Wall -c ping/PingServer.cpp -o ping/PingServer.o ping/../nslp_api/daemon/NslpApiCallback.h:31: warning: ‘class NslpApiTimerCallba ckBase’ has virtual functions but non-virtual destructor ping/../nslp_api/daemon/NslpApiCallback.h:71: warning: ‘class NslpApiSocketCallb ackBase’ has virtual functions but non-virtual destructor ping/../nslp_api/daemon/NslpApiCallback.h:112: warning: ‘class NslpApiCallbackBa se’ has virtual functions but non-virtual destructor ping/../nslp_api/daemon/NslpApiCallback.h: In instantiation of ‘NslpApiSocketCal lback<PingServer>’: ping/PingServer.cpp:44: instantiated from here ping/../nslp_api/daemon/NslpApiCallback.h:78: warning: ‘class NslpApiSocketCallb ack<PingServer>’ has virtual functions but non-virtual destructor ping/../nslp_api/daemon/NslpApiCallback.h: In instantiation of ‘NslpApiCallback< PingServer>’: ping/PingServer.cpp:50: instantiated from here ping/../nslp_api/daemon/NslpApiCallback.h:121: warning: ‘class NslpApiCallback<P ingServer>’ has virtual functions but non-virtual destructor g++ -I. -O2 -Wall -c ping/EmbeddedPingDaemon.cpp -o ping/EmbeddedPingDaemon.o g++ -I. -O2 -Wall -c nslp_api/nslp_api.cpp -o nslp_api/nslp_api.o g++ -I. -O2 -Wall -c nslp_api/api_server.cpp -o nslp_api/api_server.o g++ -I. -O2 -Wall -c nslp_api/NslpApi.cpp -o nslp_api/NslpApi.o nslp_api/daemon/NslpApiCallback.h:31: warning: ‘class NslpApiTimerCallbackBase’ has virtual functions but non-virtual destructor nslp_api/daemon/NslpApiCallback.h:71: warning: ‘class NslpApiSocketCallbackBase’ has virtual functions but non-virtual destructor nslp_api/daemon/NslpApiCallback.h:112: warning: ‘class NslpApiCallbackBase’ has virtual functions but non-virtual destructor g++ -I. -O2 -Wall -c main.cpp -o main.o ping/../nslp_api/daemon/NslpApiCallback.h:31: warning: ‘class NslpApiTimerCallbackBase’ has virtual functions but non-virtual destructor ping/../nslp_api/daemon/NslpApiCallback.h:71: warning: ‘class NslpApiSocketCallbackBase’ has virtual functions but non-virtual destructor ping/../nslp_api/daemon/NslpApiCallback.h:112: warning: ‘class NslpApiCallbackBase’ has virtual functions but non-virtual destructor g++ -I. -O2 -Wall socket_events.o Gimps.o GimpsException.o tests/TestMessageContainer.o GimpsSSLException.o tests/NetworkEmulator/NetworkEmulator.o GimpsDebugSocket.o message/GimpsMessage.o message/GimpsStackProposal.o message/GimpsNslpData.o message/GimpsStackConfigurationData.o message/GimpsNetworkLayerInfo.o hashtable/GimpsMRSKey.o hashtable/GimpsMAEntry.o message/GimpsObject.o message/GimpsResponderCookie.o hashtable/GimpsMRS.o fsm/gimps_states_receiver.o fsm/gimps_states_sender.o fsm/fsm.o fsm/GimpsFSM.o fsm/GimpsMessageHandler.o libxorp/xlog.o libxorp/asyncio.o libxorp/c_format.o libxorp/callback.o libxorp/eventloop.o libxorp/heap.o libxorp/ipv4.o libxorp/ipv6.o libxorp/ipvx.o libxorp/ref_ptr.o libxorp/safe_callback_obj.o libxorp/selector.o libxorp/time_slice.o libxorp/timer.o libcomm/comm_sock.o libcomm/comm_user.o ping/PingMessage.o ping/PingServer.o ping/EmbeddedPingDaemon.o nslp_api/nslp_api.o nslp_api/api_server.o nslp_api/NslpApi.o main.o -lssl -o nsis libxorp/asyncio.o(.gnu.linkonce.t._ZNSt4listIN15AsyncFileReader10BufferInfoESaIS1_EE5eraseESt14_List_iteratorIS1_RS1_PS1_E+0x3b): In function `std::list<AsyncFileReader::BufferInfo, std::allocatorAsyncFileReader::BufferInfo >::erase(std::_List_iterator<AsyncFileReader::BufferInfo, AsyncFileReader::BufferInfo&, AsyncFileReader::BufferInfo*>)': /usr/include/c++/3.3/bits/stl_alloc.h:242: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/asyncio.o(.gnu.linkonce.t._ZNSt4listIN15AsyncFileWriter10BufferInfoESaIS1_EE5eraseESt14_List_iteratorIS1_RS1_PS1_E+0x3b): In function `std::list<AsyncFileWriter::BufferInfo, std::allocatorAsyncFileWriter::BufferInfo >::erase(std::_List_iterator<AsyncFileWriter::BufferInfo, AsyncFileWriter::BufferInfo&, AsyncFileWriter::BufferInfo*>)': /usr/include/c++/3.3/bits/stl_alloc.h:242: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/asyncio.o(.gnu.linkonce.t._ZN15AsyncFileReaderD1Ev+0x38): In function `AsyncFileReader::~AsyncFileReader()': /usr/include/c++/3.3/bits/stl_alloc.h:242: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/asyncio.o(.gnu.linkonce.t._ZN15AsyncFileReaderD1Ev+0x6d):/usr/include/c++/3.3/bits/stl_alloc.h:242: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/asyncio.o(.gnu.linkonce.t._ZN15AsyncFileReaderD0Ev+0x38): In function `AsyncFileReader::~AsyncFileReader()': /usr/include/c++/3.3/bits/stl_alloc.h:242: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/asyncio.o(.gnu.linkonce.t._ZN15AsyncFileReaderD0Ev+0x72):/usr/include/c++/3.3/bits/stl_alloc.h:242: more undefined references to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' follow libxorp/asyncio.o(.gnu.linkonce.t._ZNSt4listIN15AsyncFileReader10BufferInfoESaIS1_EE14_M_create_nodeERKS1_+0x1a): In function `std::list<AsyncFileReader::BufferInfo, std::allocatorAsyncFileReader::BufferInfo >::_M_create_node(AsyncFileReader::BufferInfo const&)': /usr/include/c++/3.3/bits/stl_alloc.h:232: undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)' libxorp/asyncio.o(.gnu.linkonce.t._ZNSt4listIN15AsyncFileReader10BufferInfoESaIS1_EE14_M_create_nodeERKS1_+0x95):/usr/include/c++/3.3/bits/stl_alloc.h:242: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/asyncio.o(.gnu.linkonce.t._ZNSt4listIN15AsyncFileWriter10BufferInfoESaIS1_EE14_M_create_nodeERKS1_+0x1a): In function `std::list<AsyncFileWriter::BufferInfo, std::allocatorAsyncFileWriter::BufferInfo >::_M_create_node(AsyncFileWriter::BufferInfo const&)': /usr/include/c++/3.3/bits/stl_alloc.h:232: undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)' libxorp/asyncio.o(.gnu.linkonce.t._ZNSt4listIN15AsyncFileWriter10BufferInfoESaIS1_EE14_M_create_nodeERKS1_+0x95):/usr/include/c++/3.3/bits/stl_alloc.h:242: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/eventloop.o(.text+0x18d): In function `EventLoop::~EventLoop()': /usr/include/c++/3.3/bits/stl_alloc.h:242: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/eventloop.o(.text+0x1f0): In function `EventLoop::~EventLoop()': libxorp/timer.hh:202: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/eventloop.o(.text+0x2ad): In function `EventLoop::~EventLoop()': /usr/include/c++/3.3/bits/stl_alloc.h:242: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/eventloop.o(.text+0x310): In function `EventLoop::~EventLoop()': libxorp/timer.hh:202: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/ref_ptr.o(.text+0x342):/usr/include/c++/3.3/bits/stl_alloc.h:242: more undefined references to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' follow libxorp/ref_ptr.o(.gnu.linkonce.t._ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEjRKi+0x1e0): In function `std::vector<int, std::allocator<int> >::_M_fill_insert(__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, unsigned int, int const&)': /usr/include/c++/3.3/bits/stl_alloc.h:232: undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)' libxorp/ref_ptr.o(.gnu.linkonce.t._ZNSt6vectorIN17cref_counter_pool9pool_itemESaIS1_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS1_S3_EEjRKS1_+0x227): In function `std::vector<cref_counter_pool::pool_item, std::allocator<cref_counter_pool::pool_item> >::_M_fill_insert(__gnu_cxx::__normal_iterator<cref_counter_pool::pool_item*, std::vector<cref_counter_pool::pool_item, std::allocator<cref_counter_pool::pool_item> > >, unsigned int, cref_counter_pool::pool_item const&)': /usr/include/c++/3.3/bits/stl_iterator.h:642: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/ref_ptr.o(.gnu.linkonce.t._ZNSt6vectorIN17cref_counter_pool9pool_itemESaIS1_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS1_S3_EEjRKS1_+0x234): In function `std::vector<cref_counter_pool::pool_item, std::allocator<cref_counter_pool::pool_item> >::_M_fill_insert(__gnu_cxx::__normal_iterator<cref_counter_pool::pool_item*, std::vector<cref_counter_pool::pool_item, std::allocator<cref_counter_pool::pool_item> > >, unsigned int, cref_counter_pool::pool_item const&)': /usr/include/c++/3.3/bits/stl_alloc.h:232: undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)' libxorp/ref_ptr.o(.gnu.linkonce.t._ZNSt6vectorIN17cref_counter_pool9pool_itemESaIS1_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS1_S3_EEjRKS1_+0x281):/usr/include/c++/3.3/bits/stl_alloc.h:242: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/safe_callback_obj.o(.text+0x235): In function `CallbackSafeObject::~CallbackSafeObject()': libxorp/safe_callback_obj.cc:65: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/safe_callback_obj.o(.text+0x265): In function `CallbackSafeObject::~CallbackSafeObject()': /usr/include/c++/3.3/bits/stl_alloc.h:242: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/safe_callback_obj.o(.text+0x2f5): In function `CallbackSafeObject::~CallbackSafeObject()': libxorp/safe_callback_obj.cc:65: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/safe_callback_obj.o(.text+0x325): In function `CallbackSafeObject::~CallbackSafeObject()': /usr/include/c++/3.3/bits/stl_alloc.h:242: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/safe_callback_obj.o(.text+0x3c0):libxorp/safe_callback_obj.cc:65: more undefined references to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' follow libxorp/safe_callback_obj.o(.gnu.linkonce.t._ZNSt6vectorIP16SafeCallbackBaseSaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_+0xfb): In function `std::vector<SafeCallbackBase*, std::allocator<SafeCallbackBase*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<SafeCallbackBase**, std::vector<SafeCallbackBase*, std::allocator<SafeCallbackBase*> > >, SafeCallbackBase* const&)': /usr/include/c++/3.3/bits/stl_alloc.h:232: undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)' libxorp/selector.o(.gnu.linkonce.t._ZNSt6vectorIN12SelectorList4NodeESaIS1_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS1_S3_EEjRKS1_+0x3fe): In function `std::vector<SelectorList::Node, std::allocatorSelectorList::Node >::_M_fill_insert(__gnu_cxx::__normal_iterator<SelectorList::Node*, std::vector<SelectorList::Node, std::allocatorSelectorList::Node > >, unsigned int, SelectorList::Node const&)': /usr/include/c++/3.3/bits/stl_iterator.h:642: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' libxorp/selector.o(.gnu.linkonce.t._ZNSt6vectorIN12SelectorList4NodeESaIS1_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS1_S3_EEjRKS1_+0x40e): In function `std::vector<SelectorList::Node, std::allocatorSelectorList::Node >::_M_fill_insert(__gnu_cxx::__normal_iterator<SelectorList::Node*, std::vector<SelectorList::Node, std::allocatorSelectorList::Node > >, unsigned int, SelectorList::Node const&)': /usr/include/c++/3.3/bits/stl_alloc.h:232: undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)' libxorp/selector.o(.gnu.linkonce.t._ZNSt6vectorIN12SelectorList4NodeESaIS1_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS1_S3_EEjRKS1_+0x588):/usr/include/c++/3.3/bits/stl_alloc.h:242: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' collect2: ld returned 1 exit status make: *** [nsis] Error 1 [root@localhost gimps]#
[root@localhost gimps]# make ping cd ping && make make[1]: Entering directory `/root/Desktop/gimps/ping' g++ -I. -g -O2 -Wall -c main.cpp -o main.o g++ -I. -g -O2 -Wall -c PingClient.cpp -o PingClient.o g++ -I. -g -O2 -Wall main.o PingMessage.o PingClient.o ../nslp_api/NslpApi.o PingServer.o ../GimpsException.o -lssl -o gimpsPing make[1]: Leaving directory `/root/Desktop/gimps/ping' cp ping/gimpsPing . [root@localhost gimps]#
Hi Ferenc,
we forgot to remove the object files in the folder libxorp. Do a 'make mr_proper' or remove them manually by 'rm libxorp/*.o'. It should work then.
Sorry for the inconvenience.
Bye, Bernd
pfer wrote:
Hi!
My name is Ferenc Pintér,a student implementing QoS-NSLP. I have tried to compile this GIMPS NTLP code, /nsis_0.1.tar.gz/ but it had failed.Hope I did everything right (I'm quite newbie). Ping,however did a nice job afterwards. (I received no error msgs)
I try to give a detailed picture of the my config:
Fedora Core 4 with kernel 2.6.11-1.1369_FC4, g++ 4.0 GNU Make 3.80 OpenSSL 0.9.7f 22 Mar 2005
I also attach the exact commands and output I've issued and received from terminal.
Should I change some compiling parameter,the makefile or touch the code?
Thank you for your help, Ferenc Pintér
nsis_imp@informatik.uni-goettingen.de