Sorry to bother you with this but i am hitting a brick wall and cant realy figure it out and was told you guys are the best around and if anyone can help me it would be on linuxQ.
i am running rhl e5 which comes with gcc4.1 and gcc++4.1. i am trying to compile an application that needs gcc-3.2, i have installed compat.gcc32 and compat-gcc-g++32. when typing gcc -v and g++ -v i get;
[ns219a@localhost ns-allinone-2.1b9a]$ gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --enable-languages=c,c++,f77 --disable-libgcj --host=i386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-56.fc5)
and
[ns219a@localhost ns-allinone-2.1b9a]$ g++ -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --enable-languages=c,c++,f77 --disable-libgcj --host=i386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-56.fc5)
but when i try to compile the application it looks like it is sing gcc4.1 as you can see from teh error;
autoconf.h is unchanged
c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG
c++ -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
c++ -DHAVE_LIBOTCL1_0A8 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H
c++ -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION
c++ -DSMAC_NO_SYNC -DSTL_NAMESPACE=std -I.
c++ -I/home/ns219a/ns-allinone-2.1b9a/tclcl-1.0b12
c++ -I/home/ns219a/ns-allinone-2.1b9a/otcl-1.0a8
c++ -I/home/ns219a/ns-allinone-2.1b9a/include
c++ -I/home/ns219a/ns-allinone-2.1b9a/include -I/usr/include/pcap
c++ -I./tcp -I./common -I./link -I./queue -I./adc -I./apps -I./mac
c++ -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast
c++ -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr
c++ -I./diffusion3/ns -I./diffusion3/diffusion -I./asim/ -o
c++ diffusion3/ns/difftimer.o diffusion3/ns/difftimer.cc
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.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/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_bvector.h:542: error: expected unqualified-id before '(' token
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_bvector.h: In member function 'void std::vector<bool, _Alloc>::_M_fill_insert(std::_Bit_iterator, size_t, bool)':
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_bvector.h:897: error: expected unqualified-id before '(' token
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.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:
ointer, std::vector<_Tp, _Alloc> >, size_t, const _Tp&)':
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/vector.tcc:353: error: expected unqualified-id before '(' token
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.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:
ointer, std::vector<_Tp, _Alloc> >, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)':
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/vector.tcc:452: error: expected unqualified-id before '(' token
make: *** [diffusion3/ns/difftimer.o] Error 1 Ns make failed!
the application is a free source netwrok simulator. the version i am installing is a bit outdated but it is the only one that has an ATM module and wont install without gcc32. i have already modified some of the c++ code to resolve some compatibility issues but this one beats me.
any help would be much apreciated.
Regards,
Munder