Bugzilla – Bug 1825
IpL4Protocol not declared in this scope in ipv6-linux.cc
Last modified: 2014-04-15 09:43:51 EDT
Created attachment 1753 [details] Fix for "IpL4Protocol not declared in this scope" error in ipv6-linux.cc Building the latest version of ns-3-dce (changeset: de7335a01743) from scratch I get the following error: [ 76/304] cxx: model/linux/ipv6-linux.cc -> build/model/linux/ipv6-linux.cc.6.o In file included from ../model/linux/ipv6-linux.cc:21:0: ../model/linux/ipv6-linux.h:257:15: error: ‘IpL4Protocol’ was not declared in this scope virtual Ptr<IpL4Protocol> GetProtocol (int protocolNumber) const ; ^ ../model/linux/ipv6-linux.h:257:27: error: template argument 1 is invalid virtual Ptr<IpL4Protocol> GetProtocol (int protocolNumber) const ; ^ ../model/linux/ipv6-linux.cc:430:5: error: ‘IpL4Protocol’ was not declared in this scope Ptr<IpL4Protocol> ^ ../model/linux/ipv6-linux.cc:430:17: error: template argument 1 is invalid Ptr<IpL4Protocol> ^ Waf: Leaving directory `/home/alina/repos/ns-3-dce/build' Steps to reproduce: $ clone http://code.nsnam.org/ns-3-dce $ ./waf configure --with-ns3=$HOME/repos/ns-3-dce/build --enable-opt --prefix=$HOME/repos/ns-3-dce $ ./waf build Suggesting attached patch, though probably not optimal fix.
thanks for the feedback. (In reply to alina from comment #0) > Steps to reproduce: > > $ clone http://code.nsnam.org/ns-3-dce > $ ./waf configure --with-ns3=$HOME/repos/ns-3-dce/build --enable-opt > --prefix=$HOME/repos/ns-3-dce > $ ./waf build you may need to patch ns-3-dce/utils/ipv6-linux-stack.patch to ns-3-dev. if you built with bake, it should be fine. http://code.nsnam.org/bake/file/9ea7415bf105/bakeconf.xml#l280
(In reply to Hajime Tazaki from comment #1) > thanks for the feedback. > > (In reply to alina from comment #0) > > > Steps to reproduce: > > > > $ clone http://code.nsnam.org/ns-3-dce > > $ ./waf configure --with-ns3=$HOME/repos/ns-3-dce/build --enable-opt > > --prefix=$HOME/repos/ns-3-dce > > $ ./waf build > > you may need to patch ns-3-dce/utils/ipv6-linux-stack.patch to ns-3-dev. > > if you built with bake, it should be fine. > http://code.nsnam.org/bake/file/9ea7415bf105/bakeconf.xml#l280 Thank you. I didn't build ns-3 with bake, so I will apply the patch manually.
changeset 549 28471949ecd1