Search code examples
validationns2ubuntu-13.10

ns-2 - ./validate fails in Ubuntu 13.10


I was able to make ns-2 (ns-allinone-2.35) install on Ubuntu 13.10 successfully by modifying linkstate/ls.h, but one test case in the validation suite always seems to fail - tcpLinux. This bothers me because validation works properly in Ubuntu 12. Would you know how to fix this or if this is an issue at all?

Thanks in advance!


Solution

  • So it looks like ns-2 doesn't play nice with the newer versions of gcc.

    Before installing, do

    export CC=gcc-4.4 CXX=g++-4.4
    

    If you don't have these older versions, use

    sudo apt-get install gcc-4.4 g++-4.4
    

    Using this method, I didn't have to modify any source code before building.