[ndnSIM] ndnSim build failed

Alex Afanasyev alexander.afanasyev at ucla.edu
Wed Jan 22 23:39:57 PST 2014


Hi Muhammad,

You need to remove -Werror flag (treating warnings as errors) from CXXFLAGS (which NS-3 adds by default).  For example you can do the following for the debug mode:

CXXFLAGS="-O0 -g" ./waf configure
./waf

---
Alex

On Jan 22, 2014, at 11:37 PM, Muhammad Bilal <engr.mbilal at yahoo.com> wrote:

> 
> Hello Alex and everyone,
> Hope you are in best of your health.
> I am stuck with ndnSim installation. I followed the step given at http://ndnsim.net/getting-started.html . Configuration also went fine and showing ndnSim is enabled but in  final step to build NS3 with ndnSIM (./waf) I receive following failure:
> 
> ../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;
> ^
> cc1plus: all warnings being treated as errors
> Waf: Leaving directory `/home/mbilal/ndnSIM/ns-3/build'
> Build failed
> -> task in 'ns3-ndnSIM' failed (exit status 1): 
> {task 44914384: cxx ndn-global-routing-helper.cc -> ndn-global-routing-helper.cc.1.o}
> ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-I.', '-I..', '-I/usr/local/include', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '../src/ndnSIM/helper/ndn-global-routing-helper.cc', '-c', '-o', 'src/ndnSIM/helper/ndn-global-routing-helper.cc.1.o']
> 
> Please let me know how to fix this problem. I also tried to configure ndnSIM with NS3.17 but I faced same problem. 
> Best Regards,
> Muhammad Bilal
>  
> _______________________________________________
> 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/20140122/5e13e45e/attachment.html>


More information about the ndnSIM mailing list