If you get error like:
mac/mac-802_11Ext.h: In member function ‘u_int32_t PHY_MIBExt::getHdrLen11()’:
mac/mac-802_11Ext.h:176:19: error: expected primary-expression before ‘struct’
mac/mac-802_11Ext.h:176:41: error: ‘dh_body’ was not declared in this scope
mac/mac-802_11Ext.h:176:51: error: ‘offsetof’ was not declared in this scope
open that file and add
#include <cstddef>
to the header files.
Search Criteria
Package Details: ns 2.35-4
Package Actions
| Package Base: | ns |
|---|---|
| Description: | Discrete event simulator targeted at networking research |
| Upstream URL: | http://www.isi.edu/nsnam/ns/ |
| Category: | science |
| Licenses: | |
| Submitter: | shaurz |
| Maintainer: | sergio.correia |
| Last Packager: | None |
| Votes: | 3 |
| First Submitted: | 2006-03-17 01:52 |
| Last Updated: | 2014-01-27 18:30 |
Required by (0)
Sources
- http://downloads.sourceforge.net/sourceforge/nsnam/ns-2/2.35/ns-src-2.35.tar.gz
- ns-2.35-getopts.patch
- ns-2.35-linkstate-erase.fix
- ns-2.35-tcl86.patch
Latest Comments
Comment by shadyabhi
Comment by crlf0710
Please edit the PKGBUILD and add all the dependencies such as otcl tcl84 tk84 and so on, thanks
Anonymous comment
When I try to build, I get a compile error:
tools/ranvar.cc: in member function `virtual double gammarandomvariable::value()':
tools/ranvar.cc:219:70: error: cannot call constructor `GammaRandomVariable::GammaRandomVariable'
tools/ranvar.cc:219:70: error: for a function-style cast, remove the redundant
`::GaammaRandomVariable'
make: *** [tools/ranvar.o] Error 1
ns make failed
This is because GCC 4.5 does not like the X::X() style construct used in the NS2 source code and instead prefers the X() construct (according to http://forums.fedoraforum.org/archive/index.php/t-254937.html).
Applying shadyabhi's patch solves the issue for me.
Comment by master
@shadyabhi Are you sure this wouldn't break the functionality?
Comment by shadyabhi
I successfully compiled after few changes. Author pls add this patch to PKGBIULD http://dl.dropbox.com/u/7728421/ns2.patch