[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Could someone please help me



Hi,
  Thanks to Kevin Fall, Christoph Haenle and other people for your
great help.

>> On Wed, 13 Aug 1997 09:49:47 -0400, "Christoph Haenle" <[email protected]> said:
>> 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' ----------------

>> 1st: Look in which include-file "IP_MULTICAST_LOOP" is defined by
>> doing a "cd /usr/include" and then a
>> 	find . -name "*.h*" -print | xargs grep IP_MULTICAST_LOOP
I tried to run the command but I couldn't find the file where
"IP_MULTICAST_LOOP" is defined.

>> 2nd: bzero is usually defined in <strings.h>, but sometimes it's
>> not. Just type a "man memset" to see which header-file to
>> include. If nothing else helps, you can always replace the
>> bzero(addr, len)-command with memset(addr, 0, len), which should be
>> in <string.h>.
I replaced the command and this one has been solved.

>> 3rd: Type a "man getsockname" to see where it is defined.
I also couldn't find the file where it is defined.

I'm installing the ns on a sparc-sun-sunos4.1.3 machine. I tried to
include a couple of header-files to net-ip.cc but everything was in
vain. I wonder whether anybody has faced the same problem during the
installation of ns on sparc-sun-sunos4.1.3 machines. Are there any
tries that I can do to solve these problems?

c++ -o net.o -c -I../Tcl-1.0b2   -I/home/balim/src/ns-2.0b17/../otcl-0.96 -I/hom
e/balim/src/ns-2.0b17/../tk4.2/generic -I/home/balim/src/ns-2.0b17/../tcl7.6/gen
eric   -I. -DNEED_SUNOS_PROTOS -DUSE_SHM -DHAVE_LIBTCLDBG -DHAVE_LIBOTCL0_96 -DH
AVE_OTCL_H -DHAVE_LIBTK4_2 -DHAVE_TK_H -DHAVE_LIBTCL7_6 -DHAVE_TCL_H  -DNO_TK -D
abort=_ABORT -O2 net.cc
net.cc: In method `int Network::dorecv(unsigned char *, int, unsigned int &, int
)':
net.cc:246: warning: passing `int *' to argument 6 of `recvfrom(int, void *, int
, int, sockaddr *, int)' lacks a cast
c++ -o net-ip.o -c -I../Tcl-1.0b2   -I/home/balim/src/ns-2.0b17/../otcl-0.96 -I/
home/balim/src/ns-2.0b17/../tk4.2/generic -I/home/balim/src/ns-2.0b17/../tcl7.6/
generic   -I. -DNEED_SUNOS_PROTOS -DUSE_SHM -DHAVE_LIBTCLDBG -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:137: `IP_MULTICAST_LOOP' undeclared (first use this function)
net-ip.cc:137: (Each undeclared identifier is reported only once
net-ip.cc:137: for each function it appears in.)
net-ip.cc: In method `void IPNetwork::localname(struct sockaddr_in *)':
net-ip.cc:287: warning: implicit declaration of function `int getsockname(...)'
*** Error code 1
make: Fatal error: Command failed for target `net-ip.o'

I intend to run wireless TCP simulations using ns. I wonder whether
the `net-ip.o' is compulsory for my simulation. If not, I may try to
edit the Makefile so that the compilation of `net-ip.o' is
omitted. 

Could someone please help me again? Sorry for bothering you all so
much. Your help would be much appreciated.

Boon Aik