This is a problem with the gcc version. I had a lot of problems recently when I tried to install the NRL extensions with the ns 2.27 version. Downgrading gcc is not actually an easy task (as I discovered). Google up some gcc forums and follow steps provided there. I will look again for the link I used and let you know if I find it.
Simple solution to the problem though - Use fedora 2. The whole sensor net extension and ns installation gets done without problems in 15 mins. Just a quick hack to your problem .. :) Zubair On 3/23/07, Martin Dario Pereyra <[EMAIL PROTECTED]> wrote: > > > Hi all, I have a problem when installing old gcc version. I use > ns-allinone-2.27 with NRLSensorSim extension (2.27 is the most recent > version for this extension) in Fedora Core 6 with gcc 4.1. I have a patch > for this version of ns to work with gcc 4.1 but for the extensions added > doesn't work. > So I want to install an alternate gcc compiler on my fedora (gcc 2.95) > like > a solution. This two packages: > > gcc-core-2.95.tar.gz > gcc-g++-2.95.tar.gz > > i do gcc configure: > > /home/mpereyra/gcc/gcc-2.95/configure \ > --prefix=/opt/gcc295 \ > --program-suffix=295 \ > --enable-languages=c,c++ \ > --enable-shared --enable-threads=posix --disable-cheking \ > --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions > > and when i do 'make' this is the error: > > /home/mpereyra/gcc/gcc-2.95/gcc/frame.c:55: extra brace group at end of > initializer > /home/mpereyra/gcc/gcc-2.95/gcc/frame.c:55: (near initialization for > `object_mutex.__data') > /home/mpereyra/gcc/gcc-2.95/gcc/frame.c:55: warning: excess elements in > struct initializer > /home/mpereyra/gcc/gcc-2.95/gcc/frame.c:55: warning: (near initialization > for `object_mutex.__data') > make[1]: *** [libgcc2.a ] Error 1 > make[1]: se sale del directorio `/home/mpereyra/gcc/build/gcc' > make: *** [all-gcc] Error 2 > > ("se sale del directorio" means 'leaving directory') > > Another relevant information: > > [EMAIL PROTECTED] build]# uname -a > Linux localhost.localdomain 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32 > EDT > 2006 i686 i686 i386 GNU/Linux > [EMAIL PROTECTED] build]# rpm -q gcc > gcc-4.1.1-30 > > I Think that some paremeters of gcc configure are not ok. What do you > think? > -- Mohammad Zubair Ahmad PhD Student, Computer Engineering University of Central Florida, Orlando, FL 32826 Cell:(407)-435-9070