Hi all,
   I have NS version 2.26 installed on Linux (Mandrake 10 distribution) since 
some years. During these years the original version of NS2 was developed with 
new modules and stuffs needed for work, so I have to use that version of NS2 
and all the modified things. Now I need to export NS2 2.26 to another Linux 
distribution (Open Suse 10.3), that uses GCC version 4.2.1.
I made a backup of NS2 modified version and I tried, together witm some 
collegues, to run the NS2 installer. We had some compatibility problems with 
GCC 4.2.1 and we modified the code where needed. One of the last problems we 
had is a problem concerning some standard libreries header files. Here attached 
you can find the installer output.
Is there someone that can help us to export NS2 2.26 using the GCC 4.2.1 ??
Is it possible? Or do we need to use another version of GCC ?
Can someone tell us please which is the latest version of CGG compatible with 
NS2 2.26?

Thank you in advance for your kind answers.
 
============================================================
* Build ns-2.26
============================================================
loading cache ./config.cache
No .configure file found in current directory
Continuing with default options...
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for main in -lXbsd... (cached) no
checking for socket in -lsocket... (cached) no
checking for gethostbyname in -lnsl... (cached) yes
checking for dcgettext in -lintl... (cached) no
checking for getnodebyname in -ldnet_stub... (cached) no
checking that c++ can handle -O2... no
checking if STL works without any namespace... no
checking if STL works with namespace std... yes
checking will use STL... yes
checking for tcl.h... -I../include
checking for libtcl8.3... -L../lib -ltcl8.3
checking for init.tcl... ../lib/tcl8.3
checking for tclsh8.3.2... (cached) ../bin/tclsh8.3
checking for tk.h... -I../include
checking for libtk8.3... -L../lib -ltk8.3
checking for tk.tcl... ../lib/tk8.3
checking for otcl.h... -I../otcl-1.0a8
checking for libotcl1.0a8... -L../otcl-1.0a8 -lotcl
checking for tclcl.h... -I../tclcl-1.0b13
checking for libtclcl... -L../tclcl-1.0b13 -ltclcl
checking for tcl2c++... ../tclcl-1.0b13
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... (cached) yes
checking for XShmAttach in -lXext... (cached) yes
checking for libtcldbg... no
checking dmalloc... not requested with --with-dmalloc
checking for perl... /usr/bin
checking for ANSI C header files... (cached) yes
checking for bcopy... (cached) yes
checking for bzero... (cached) yes
checking for fesetprecision... (cached) no
checking for getrusage... (cached) yes
checking for sbrk... (cached) yes
checking for snprintf... (cached) yes
checking for arpa/inet.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for net/ethernet.h... (cached) yes
checking return type of random... long
checking for int8_t... (cached) yes
checking for int16_t... (cached) yes
checking for int32_t... (cached) yes
checking for u_int8_t... (cached) yes
checking for u_int16_t... (cached) yes
checking for u_int32_t... (cached) yes
checking for u_char... (cached) yes
checking for u_int... (cached) yes
checking for strtoq... (cached) yes
checking for strtoll... (cached) yes
checking size of long... (cached) 4
checking for __int64_t... no
checking for long long... yes
checking for int64_t... (cached) yes
checking which kind of 64-bit int to use... int64_t
checking for struct ether_header... found
checking for struct ether_addr... found
checking for addr2ascii... (cached) no
checking for Linux compliant tcphdr... found
checking for BSD compliant tcphdr... not found
checking for socklen_t... (cached) yes
checking for main in -lpcap... (cached) no
checking to make nse... no
Explicitly disabling static compilation
checking for dlopen in -ldl... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
creating ./config.status
creating Makefile
creating tcl/lib/ns-autoconf.tcl
creating indep-utils/webtrace-conv/ucb/Makefile
creating indep-utils/webtrace-conv/dec/Makefile
creating indep-utils/webtrace-conv/nlanr/Makefile
creating indep-utils/webtrace-conv/epa/Makefile
creating indep-utils/cmu-scen-gen/setdest/Makefile
creating autoconf.h
autoconf.h is unchanged
c++ -c  -DTCP_DELAY_BIND_ALL -DNO_TK -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 -DNS_DIFFUSION -DSMAC_NO_SYNC -DSTL_NAMESPACE=std 
-DUSE_SINGLE_ADDRESS_SPACE -I. 
-I/home/nsuser/backup_ns/giuseppe/Desktop/ns-allinone-2.26_prova/tclcl-1.0b13 
-I/home/nsuser/backup_ns/giuseppe/Desktop/ns-allinone-2.26_prova/otcl-1.0a8 
-I/home/nsuser/backup_ns/giuseppe/Desktop/ns-allinone-2.26_prova/include 
-I/home/nsuser/backup_ns/giuseppe/Desktop/ns-allinone-2.26_prova/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/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr 
-I./diffusion3/ns -I./diffusion3/diffusion -I./asim/ -I./qs -o 
diffusion3/ns/diffagent.o diffusion3/ns/diffagent.cc
In file included from /usr/include/c++/4.2.1/list:66,
                 from ./diffusion3/ns/difftimer.h:39,
                 from ./diffusion3/lib/main/timers.hh:42,
                 from ./diffusion3/lib/dr.hh:40,
                 from diffusion3/ns/diffagent.h:38,
                 from diffusion3/ns/diffagent.cc:33:
/usr/include/c++/4.2.1/bits/stl_algobase.h:226:56: error: macro "min" passed 3 
arguments, but takes just 2
/usr/include/c++/4.2.1/bits/stl_algobase.h:246:56: error: macro "max" passed 3 
arguments, but takes just 2
In file included from ./common/agent.h:41,
                 from diffusion3/ns/diffagent.h:36,
                 from diffusion3/ns/diffagent.cc:33:
./common/packet.h: In constructor ‘p_info::p_info()’:
./common/packet.h:176: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:177: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:178: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:179: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:180: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:181: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:182: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:183: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:184: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:185: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:186: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:187: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:188: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:189: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:190: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:191: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:192: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:193: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:194: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:195: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:197: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:198: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:199: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:200: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:201: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:202: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:204: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:205: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:206: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:207: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:208: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:209: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:210: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:211: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:212: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:213: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:214: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:215: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:216: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:217: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:219: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:220: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:222: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:223: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:224: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:227: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:230: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:233: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:236: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:239: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:242: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:246: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:250: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:251: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:254: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:255: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:256: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:257: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:258: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:259: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:260: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:261: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:264: warning: deprecated conversion from string constant to 
‘char*’
./common/packet.h:266: warning: deprecated conversion from string constant to 
‘char*’
In file included from /usr/include/c++/4.2.1/list:66,
                 from ./diffusion3/ns/difftimer.h:39,
                 from ./diffusion3/lib/main/timers.hh:42,
                 from ./diffusion3/lib/dr.hh:40,
                 from diffusion3/ns/diffagent.h:38,
                 from diffusion3/ns/diffagent.cc:33:
/usr/include/c++/4.2.1/bits/stl_algobase.h: At global scope:
/usr/include/c++/4.2.1/bits/stl_algobase.h:182: error: expected unqualified-id 
before ‘const’
/usr/include/c++/4.2.1/bits/stl_algobase.h:182: error: expected `)' before 
‘const’
/usr/include/c++/4.2.1/bits/stl_algobase.h:182: error: expected `)' before 
‘const’
/usr/include/c++/4.2.1/bits/stl_algobase.h:182: error: expected `)' before 
‘const’
/usr/include/c++/4.2.1/bits/stl_algobase.h:182: error: expected initializer 
before ‘const’
/usr/include/c++/4.2.1/bits/stl_algobase.h:204: error: expected unqualified-id 
before ‘const’
/usr/include/c++/4.2.1/bits/stl_algobase.h:204: error: expected `)' before 
‘const’
/usr/include/c++/4.2.1/bits/stl_algobase.h:204: error: expected `)' before 
‘const’
/usr/include/c++/4.2.1/bits/stl_algobase.h:204: error: expected `)' before 
‘const’
/usr/include/c++/4.2.1/bits/stl_algobase.h:204: error: expected initializer 
before ‘const’
/usr/include/c++/4.2.1/bits/stl_algobase.h:226: error: function definition does 
not declare parameters
/usr/include/c++/4.2.1/bits/stl_algobase.h:246: error: function definition does 
not declare parameters
/usr/include/c++/4.2.1/bits/stl_algobase.h: In function ‘bool 
std::lexicographical_compare(const unsigned char*, const unsigned char*, const 
unsigned char*, const unsigned char*)’:
/usr/include/c++/4.2.1/bits/stl_algobase.h:909: error: expected unqualified-id 
before ‘(’ token
In file included from /usr/include/c++/4.2.1/vector:71,
                 from ./diffusion3/lib/nr/nr.hh:34,
                 from ./diffusion3/lib/main/message.hh:48,
                 from ./diffusion3/lib/main/filter.hh:41,
                 from ./diffusion3/lib/dr.hh:41,
                 from diffusion3/ns/diffagent.h:38,
                 from diffusion3/ns/diffagent.cc:33:
/usr/include/c++/4.2.1/bits/stl_bvector.h: In member function ‘void 
std::vector<bool, _Alloc>::_M_fill_insert(std::_Bit_iterator, size_t, bool)’:
/usr/include/c++/4.2.1/bits/stl_bvector.h:916: error: expected unqualified-id 
before ‘(’ token
/usr/include/c++/4.2.1/bits/stl_bvector.h: In member function ‘void 
std::vector<bool, _Alloc>::_M_insert_range(std::_Bit_iterator, 
_ForwardIterator, _ForwardIterator, std::forward_iterator_tag)’:
/usr/include/c++/4.2.1/bits/stl_bvector.h:961: error: expected unqualified-id 
before ‘(’ token
In file included from /usr/include/c++/4.2.1/vector:74,
                 from ./diffusion3/lib/nr/nr.hh:34,
                 from ./diffusion3/lib/main/message.hh:48,
                 from ./diffusion3/lib/main/filter.hh:41,
                 from ./diffusion3/lib/dr.hh:41,
                 from diffusion3/ns/diffagent.h:38,
                 from diffusion3/ns/diffagent.cc:33:
/usr/include/c++/4.2.1/bits/vector.tcc: In member function ‘void 
std::vector<_Tp, _Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<typename 
std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, 
_Alloc> >, size_t, const _Tp&)’:
/usr/include/c++/4.2.1/bits/vector.tcc:350: error: expected unqualified-id 
before ‘(’ token
/usr/include/c++/4.2.1/bits/vector.tcc: In member function ‘void 
std::vector<_Tp, _Alloc>::_M_range_insert(__gnu_cxx::__normal_iterator<typename 
std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, 
_Alloc> >, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)’:
/usr/include/c++/4.2.1/bits/vector.tcc:453: error: expected unqualified-id 
before ‘(’ token
In file included from diffusion3/ns/diffrtg.h:37,
                 from diffusion3/ns/diffagent.cc:34:
./diffusion3/diffusion/diffusion.hh: At global scope:
./diffusion3/diffusion/diffusion.hh:103: error: expected `)' before ‘*’ 
token
make: *** [diffusion3/ns/diffagent.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

Reply via email to