Bug 1825

Summary: IpL4Protocol not declared in this scope in ipv6-linux.cc
Product: dce Reporter: alina <aquereilhac>
Component: otherAssignee: Hajime Tazaki <tazaki>
Status: CLOSED FIXED    
Severity: enhancement CC: ns-bugs
Priority: P5    
Version: unspecified   
Hardware: PC   
OS: Linux   
Attachments: Fix for "IpL4Protocol not declared in this scope" error in ipv6-linux.cc

Description alina 2014-01-07 19:06:44 EST
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.
Comment 1 Hajime Tazaki 2014-01-07 20:36:07 EST
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
Comment 2 alina 2014-01-09 11:56:11 EST
(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.
Comment 3 Hajime Tazaki 2014-04-15 09:43:51 EDT
changeset 549	28471949ecd1