[ns] Patched NS Make error
kogirri at googlemail.com
Thu Jan 13 15:42:30 PST 2011
> I have currently successfully installed ns2.1b9 on my CentOS 5 machine.
> After installation, I implemented the patch listed here<http://www.cs.unh.edu/cnrg/people/sowmyam/ns-atm/>
> Following the readme instructions( also found on that page) I was able to
> apply the patch and ./configure.
> I however encountered an error trying to run make.
> The error is listed below:
> g++-3.3.6 -c -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR
> -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL
> -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A8 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H
> -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -DPGM -DPGM_DEBUG
> -DNS_DIFFUSION -I.
> -I/home/ktofa/ns_atm/ns2.1b9/ns-allinone-2.1b9/include -I/usr/include/pcap
> -I./tcp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile
> -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/main
> -I./diffusion3/lib -I./diffusion3/nr -I./diffusion3/ns -I./asim/ -o
> trace/trace.o trace/trace.cc
> In file included from trace/trace.cc:55:
> atm/atm.h:66: error: syntax error before `*' token
> make: *** [trace/trace.o] Error 1
> In the file its complainig, there is a śtring'declaration before the *
> character. I fear this is the problem.
> I should note now that in order to install ns2.1b9 I had to basically
> install a much older version of gcc, precisely gcc 3.3.6.
> I have searched the mailing lists but have found nothing. I have attached
> the file so that anyone can go through it.
> Any help would be greatly appreciated.
More information about the Ns-users