Package Details: ns 2.35-8

Git Clone URL: (read-only, click to copy)
Package Base: ns
Description: Discrete event simulator targeted at networking research
Upstream URL:
Licenses: GPL
Submitter: shaurz
Maintainer: qrwteyrutiyoup
Last Packager: qrwteyrutiyoup
Votes: 4
Popularity: 0.000000
First Submitted: 2006-03-17 01:52
Last Updated: 2016-11-08 18:16

Dependencies (5)

Required by (0)

Sources (5)

Latest Comments

shadyabhi commented on 2011-10-02 16:58

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.

crlf0710 commented on 2011-09-29 04:32

Please edit the PKGBUILD and add all the dependencies such as otcl tcl84 tk84 and so on, thanks

Anonymous comment on 2011-04-04 17:13

When I try to build, I get a compile error:

tools/ in member function `virtual double gammarandomvariable::value()':
tools/ error: cannot call constructor `GammaRandomVariable::GammaRandomVariable'
tools/ error: for a function-style cast, remove the redundant
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

Applying shadyabhi's patch solves the issue for me.

master commented on 2010-09-21 19:48

@shadyabhi Are you sure this wouldn't break the functionality?

shadyabhi commented on 2010-09-21 07:49

I successfully compiled after few changes. Author pls add this patch to PKGBIULD

shadyabhi commented on 2010-09-21 07:24

I am unable to compile NS. I get the following error.
Any idea?