[ndnSIM] a bug in the ndnSIM source code

Alex Afanasyev alexander.afanasyev at ucla.edu
Mon Apr 28 15:40:12 PDT 2014


Hi guys,

This specific problem doesn't seem to be boost-related.  It is just new compilers are more verbose in reporting various harmless warnings and they are treated (unless CXXFLAGS is overriden) as errors in NS-3.

I have used Zongyi's suggestion and commented out those unnecessary variables (applied in commit c837263e082983a28d4b695d577fedf5ac7707ef).

---
Alex

On Apr 27, 2014, at 10:58 AM, L.Zeynalvand <zeynalvand at ce.sharif.edu> wrote:

> hi Zongyi,
> NdnSIM requires boost version at least 1.48.  Ubuntu 12.04 ships with two versions of boost libraries and it is known that if both are installed, then compilation of ndnSIM will most likely fail.
> maybe that's your problem, but I'm afraid commenting out a line or two wont really solve your problem.
> 
> Regards.
> -- 
> Leonid Zeynalvand
> M.Sc Information Technology
> Sharif University of Technology
> 
> 
> On 27.04.2014 07:04, Zongyi Zhao wrote:
>> Hi, all,
>> I have just installed the ndnSIM in my ubuntu. In the process I have
>> encountered some difficulty. Fortunately I have solved most of them.
>> So here I want to report my discovery about the bug in the source code
>> of ndnSIM.
>> When I executed the flowing command:
>> ./waf configure --boost-includes=/usr/local/include
>> --boost-libs=/usr/local/lib --enable-examples
>> ./waf
>> The compiler told me the flowing message:
>> 
>> "../src/ndnSIM/helper/ndn-global-routing-helper.cc: In static member
>> function ‘static void
>> ns3::ndn::GlobalRoutingHelper::CalculateRoutes(bool)’:
>> ../src/ndnSIM/helper/ndn-global-routing-helper.cc:248:68: error:
>> typedef ‘vertex_descriptor’ locally defined but not used
>> [-Werror=unused-local-typedefs]
>> typedef graph_traits < NdnGlobalRouterGraph >::vertex_descriptor
>> vertex_descriptor;
>> ^
>> ../src/ndnSIM/helper/ndn-global-routing-helper.cc: In static member
>> function ‘static void
>> ns3::ndn::GlobalRoutingHelper::CalculateAllPossibleRoutes(bool)’:
>> ../src/ndnSIM/helper/ndn-global-routing-helper.cc:341:68: error:
>> typedef ‘vertex_descriptor’ locally defined but not used
>> [-Werror=unused-local-typedefs]
>> typedef graph_traits < NdnGlobalRouterGraph >::vertex_descriptor
>> vertex_descriptor;"
>> 
>> So I commented out the line 248 and line 341 in file
>> /src/ndnSIM/helper/ndn-global-routing-helper.cc, then it worked well.






More information about the ndnSIM mailing list