#55 NS make failed!

open
nobody
ns-2 (62)
5
2014-08-26
2010-03-16
No

Hi
i am using us-allinone-2.34 source to build ns-2 on suse linux enterprise x86_64 10.2 system

but get following error
___________________________________________________________________________________________________________________________
g++ -c -Wall -Wno-write-strings -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/opt/ns2/2.34/allinone/tclcl-1.19 -I/opt/ns2/2.34/allinone/otcl-1.13 -I/opt/ns2/2.34/allinone/include -I/opt/ns2/2.34/allinone/include -I/opt/ns2/2.34/allinone/include -I/usr/include/pcap -I./tcp -I./sctp -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/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o tools/random.o tools/random.cc
tools/rng.h:104: error: expected class-name before { token
tools/rng.h:369: error: FILE?has not been declared
tools/random.cc:50: error: RANDOM_RETURN_TYPE?does not name a type
make: *** [tools/random.o] Error 1
___________________________________________________________________________________________________________________________

now somthing about my system is as follows

root@node8:/opt/ns2/2.34/allinone/ns-2.34 # uname -a
Linux node8 2.6.16.60-0.21-smp #1 SMP Tue May 6 12:41:02 UTC 2008 x86_64 x86_64 x86_64 GNU/Linux

root@node8:/opt/ns2/2.34/allinone/ns-2.34 # cat /proc/version
Linux version 2.6.16.60-0.21-smp (geeko@buildhost) (gcc version 4.1.2 20070115 (SUSE Linux)) #1 SMP Tue May 6 12:41:02 UTC 2008

root@node8:/opt/ns2/2.34/allinone/ns-2.34 # grep "model name" /proc/cpuinfo
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380
model name : Quad-Core AMD Opteron(tm) Processor 8380

root@node8:/opt/ns2/2.34/allinone/ns-2.34 # cat /proc/cpuinfo|more
processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 4
model name : Quad-Core AMD Opteron(tm) Processor 8380
stepping : 2
cpu MHz : 2511.581
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow constant_tsc pni cx16 popcnt l
ahf_lm cmp_legacy svm extapic cr8_legacy altmovcr8 abm sse4a misalignsse 3dnowprefetch osvw
bogomips : 5031.27
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
...
...
...

root@node8:/opt/ns2/2.34/allinone/ns-2.34 # grep MemTotal /proc/meminfo
MemTotal: 66007136 kB

root@node8:/opt/ns2/2.34/allinone/ns-2.34 # getconf LONG_BIT
64

root@node8:/opt/ns2/2.34/allinone/ns-2.34 # gcc -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --program-suffix= --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --host=x86_64-suse-linux
Thread model: posix
gcc version 4.1.2 20070115 (SUSE Linux)

any suggestion?

Discussion

  • Nobody/Anonymous

    Parliament Mountain,begin treaty majority still thanks once double frequently faith paint range home limit term introduce identify factory impose like love over serve response move in encourage ready border official tape we busy passage build sometimes link response examine human medical allow will lunch used avoid city belief extremely sound street associate attitude paint effort destroy there particular accident war die risk attach presence network speech campaign run radio nor house serve back common might aim close company panel over extra operate field place

     
  • Nobody/Anonymous

    muqAQe Im obliged for the blog article.Thanks Again. Great.

     
  • Nobody/Anonymous

    A big thank you for your blog.Thanks Again. Really Great.

     

Log in to post a comment.