[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help needed for compiling ns-2
Hi,
Thanks all folks for your valuable suggestions. I can not find IP_MULTICAST_LOOP in my department by using all methods mentioned in the emails. Finally
what I do is adding
#ifndef IP_MULTICAST_LOOP
#define IP_MULTICAST_LOOP 0x12
#endif
to all files using IP_MULTICAST_LOOP.
It works.
However, at almost the final compiling step, I run into a problem again.
The following is the error message:
c++ -o gen/ns_tcl.o -c -I/homes/chensg/ns-2.0b17/../Tcl -I/usr/openwin/include -I/homes/chensg/ns-2.0b17/../otcl-0.96 -I/homes/chensg/ns-2.0b17/../tk4.2/generic -I/homes/chensg/ns-2.0b17/../tcl7.6/generic -I. -DNEED_SUNOS_PROTOS -DUSE_SHM -DHAVE_LIBOTCL0_96 -DHAVE_OTCL_H -DHAVE_LIBTK4_2 -DHAVE_TK_H -DHAVE_LIBTCL7_6 -DHAVE_TCL_H -DNO_TK -Dabort=_ABORT -O2 gen/ns_tcl.cc
gcc: Internal compiler error: program cc1plus got fatal signal 4
*** Error code 1
make: Fatal error: Command failed for target `gen/ns_tcl.o'
In the console, there is error messges too:
sendsig: bad signal stack pid=3841, sig=4
sigsp = 0xf7ffd268, action = 0xf7732ba0, upc = 0xf778d424
I suspect my computer does not have enough memory to compile ns_tcl.cc.
Any suggestion is welcome.
-SHaogang
>
> Hi,
>
> see if you can find IP_MULTICAST_LOOP in
>
> /usr/include/netinet/in.h:#define IP_MULTICAST_LOOP 0x12 /*
> set/get IP multicast loopback */
>
> If nothing else helps, you might want to try the biggest hack ever and
> replace the constant in net-ip.cc with 0x12 (ughh!)
>
> -Chris.
>
>
> ----------
> > From: Shaogang Chen <[email protected]>
> > To: Steven McCanne <[email protected]>
> > Cc: [email protected]
> > Subject: Help needed for compiling ns-2
> > Date: Monday, September 08, 1997 5:50 PM
> >
> > I post this problem before and still can not solve the problem.
> > The following is the error message when I compile ns-2.0b17
> > c++ -o net-ip.o -c -I/homes/chensg/ns-2.0b17/../Tcl
> -I/usr/openwin/include -I/homes/chensg/ns-2.0b17/../otcl-0.96
> -I/homes/chensg/ns-2.0b17/../tk4.2/generic
> -I/homes/chensg/ns-2.0b17/../tcl7.6/generic -I. -DNEED_SUNOS_PROTOS
> -DUSE_SHM -DHAVE_LIBOTCL0_96 -DHAVE_OTCL_H -DHAVE_LIBTK4_2 -DHAVE_TK_H
> -DHAVE_LIBTCL7_6 -DHAVE_TCL_H -DNO_TK -Dabort=_ABORT -O2 net-ip.cc
> > net-ip.cc: In method `int IPNetwork::command(int, const char *const *)':
> > net-ip.cc:134: `IP_MULTICAST_LOOP' undeclared (first use this function)
> > net-ip.cc:134: (Each undeclared identifier is reported only once
> > net-ip.cc:134: for each function it appears in.)
> > net-ip.cc: In method `int IPNetwork::open(int)':
> > net-ip.cc:195: warning: implicit declaration of function `int bzero(...)'
> > net-ip.cc: In method `void IPNetwork::localname(struct sockaddr_in *)':
> > net-ip.cc:284: warning: implicit declaration of function `int
> getsockname(...)'
> > *** Error code 1
> > make: Fatal error: Command failed for target `net-ip.o'
> >
> > Obviously, compiler can not find IP_MULTICAST_LOOP. I fetch the tar file
> > again, still get the same result. IP_MULTICAST_LOOP is not defined
> > in the ns-2 source tree. So it must be defined in some include file
> > in the unix system. I am not familiar with the multicasting in IP.
> > Could someone tell where IP_MULTICAST_LOOP should be?
> >
> > --Shaogang
> >
> >
> ============================================================================
>
> > Web: http://yake.ecn.purdue.edu/~shaogang Purdue University
> > Office: MSEE 292 Phone: (765) 494-0434 W. Lafayette, IN 47907
> >
> ============================================================================
>
> >
>
--
============================================================================
Web: http://yake.ecn.purdue.edu/~shaogang Purdue University
Office: MSEE 292 Phone: (765) 494-0434 W. Lafayette, IN 47907
============================================================================