[ndnSIM] ndnSIM 2.0 compiling error

marco.ulgelmo at aol.com marco.ulgelmo at aol.com
Thu Jan 15 00:43:30 PST 2015


Thank you,

Shall i just keep an eye on Redmine to get notified about when you solve it?

Regards,
Marco

> Il giorno 15/gen/2015, alle ore 03:25, Spyridon (Spyros) Mastorakis <spiros.mastorakis at gmail.com> ha scritto:
> 
> Marco thank you for the report. I was able to reproduce the error.
> 
> We will come up with a fix as soon as possible.
> 
> Thank you.
> 
> --
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> PhD Computer Science
> UCLA
> 
> 
> 
> 
>> On Jan 14, 2015, at 6:23 PM, marco.ulgelmo at aol.com wrote:
>> 
>> I've tried in Ubuntu 12.04 clean install. I followed all the steps here http://named-data.net/doc/ndn-cxx/current/INSTALL.html
>> 
>> I get the same error. I've tried with both gcc 4.4 and 4.6. Boost library version is 1.48.
>> 
>> Complete error message (already opened a ticket in redmine):
>> 
>> In file included from ../src/ndnSIM/model/ndn-ns3.cpp:20:0:
>> ../src/ndnSIM/model/ndn-ns3.hpp:32:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a type
>> ../src/ndnSIM/model/ndn-ns3.cpp:34:39: error: no ‘std::shared_ptr<const _Tp> ns3::ndn::Convert::FromPacket(ns3::Ptr<ns3::Packet>)’ member function declared in class ‘ns3::ndn::Convert’
>> ../src/ndnSIM/model/ndn-ns3.cpp:46:10: error: no matching template for ‘ns3::ndn::Convert::FromPacket’ found
>> ../src/ndnSIM/model/ndn-ns3.cpp:46:20: error: expected ‘;’ before ‘<’ token
>> ../src/ndnSIM/model/ndn-ns3.cpp:49:10: error: no matching template for ‘ns3::ndn::Convert::FromPacket’ found
>> ../src/ndnSIM/model/ndn-ns3.cpp:49:20: error: expected ‘;’ before ‘<’ token
>> 
>> Regards,
>> 
>> Marco
>> 
>> 
>> 
>> -----Original Message-----
>> From: Spiros Mastorakis <spiros.mastorakis at gmail.com>
>> To: marco.ulgelmo <marco.ulgelmo at aol.com>
>> CC: ndnsim <ndnsim at lists.cs.ucla.edu>
>> Sent: Thu, 15 Jan 2015 1:18
>> Subject: [ndnSIM] ndnSIM 2.0 compiling error
>> 
>> Hello Marco,
>> 
>> If you cloned the NS-3 repo before the update, then probably you are pulling the old version of NS-3, where c++11 is not enabled. 
>> 
>> Please start over with cloning the new version of the NS-3 repo and try to compile again. Please let us about the result. 
>> 
>> Thank you,
>> Spyros
>> 
>>> On Wednesday, January 14, 2015, <marco.ulgelmo at aol.com> wrote:
>>> Thanks for your fast reply,
>>> 
>>> i'm currently working on Ubuntu 14.04, i've seen in the website that even if it's not officialy supported, developers could compile successfully.
>>> 
>>> To answer your second question, i pulled from  git clone https://github.com/cawka/ns-3-dev-ndnSIM.git
>>> 
>>> Thanks a lot,
>>> 
>>> Marco
>>> 
>>> 
>>> 
>>> -----Original Message-----
>>> From: Spyridon (Spyros) Mastorakis <spiros.mastorakis at gmail.com>
>>> To: marco.ulgelmo <marco.ulgelmo at aol.com>
>>> CC: ndnsim <ndnsim at lists.cs.ucla.edu>
>>> Sent: Thu, 15 Jan 2015 0:50
>>> Subject: Re: [ndnSIM] ndnSIM 2.0 compiling error
>>> 
>>> Hello Marco,
>>> 
>>> First of all, I would like to ask which is the operating system that you are using. Secondly, I would also like to ask whether you downloaded the new NS-3 version that is uploaded in the “ndnSIM" branch here: 
>>> 
>>> https://github.com/cawka/ns-3-dev-ndnSIM
>>> 
>>> Thank you very much in advance for your answer.
>>> 
>>> --
>>> Spyridon (Spyros) Mastorakis
>>> Personal Website: http://cs.ucla.edu/~mastorakis/
>>> Internet Research Laboratory
>>> PhD Computer Science
>>> UCLA
>>> 
>>> 
>>> 
>>> 
>>>> On Jan 14, 2015, at 3:36 PM, marco.ulgelmo at aol.com wrote:
>>>> 
>>>> I've tried to compile the ns-3 module in ndnSIM for some hours.
>>>> 
>>>> I keep getting the error:
>>>> 
>>>> In file included from ../src/ndnSIM/model/ndn-ns3.cpp:20:0:
>>>> ../src/ndnSIM/model/ndn-ns3.hpp:32:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a type
>>>>    static std::shared_ptr<const T>
>>>>           ^
>>>> ../src/ndnSIM/model/ndn-ns3.cpp:34:39: error: no ‘std::shared_ptr<const _Tp> ns3::ndn::Convert::FromPacket(ns3::Ptr<ns3::Packet>)’ member function declared in class ‘ns3::ndn::Convert’
>>>>  Convert::FromPacket(Ptr<Packet> packet)
>>>>                                        ^af 
>>>> ../src/ndnSIM/model/ndn-ns3.cpp:46:10: error: no matching template for ‘ns3::ndn::Convert::FromPacket’ found
>>>>  Convert::FromPacket<Interest>(Ptr<Packet> packet);
>>>>           ^
>>>> ../src/ndnSIM/model/ndn-ns3.cpp:46:20: error: expected ‘;’ before ‘<’ token
>>>>  Convert::FromPacket<Interest>(Ptr<Packet> packet);
>>>>                     ^
>>>> ../src/ndnSIM/model/ndn-ns3.cpp:49:10: error: no matching template for ‘ns3::ndn::Convert::FromPacket’ found
>>>>  Convert::FromPacket<Data>(Ptr<Packet> packet);
>>>>           ^
>>>> ../src/ndnSIM/model/ndn-ns3.cpp:49:20: error: expected ‘;’ before ‘<’ token
>>>>  Convert::FromPacket<Data>(Ptr<Packet> packet);
>>>> 
>>>> I am using compiler version 4.8.2, boost library version 1.54. I tried both ./waf configure with -d optimization and without.
>>>> I've seen that this error is due to c++ not compiling c++11 statement but compiler flags in ./waf configure are correct and both -std=c++0x and -std=c++11x are set. I tried also with gcc and g++ version 4.4, 4.6 and 4.7 but i keep getting other errors (different than that).
>>>> 
>>>> Thanks,
>>>> Marco
>>>> _______________________________________________
>>>> ndnSIM mailing list
>>>> ndnSIM at lists.cs.ucla.edu
>>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150115/56c920cc/attachment.html>


More information about the ndnSIM mailing list