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

Installation of ns-2.1b1



I am trying to install ns-2.1b1 into a unix system. But at the step
of "make" for ns the following error occurs:


>> -- g++ -c -I.   -I/antep3g/network/tclcl-1.0b4 
>> -I/antep3g/network/otcl-0.96 -I/antep3g/network/tk4.2/generic 
>> -I/antep3g/network/tcl7.6/generic -DNO_TK  -DNEED_SUNOS_PROTOS 
>> -DUSE_SHM -DHAVE_LIBTCLCL1_0B3 -DHAVE_TCLCL_H -DHAVE_LIBOTCL0_96 
>> -DHAVE_OTCL_H -DHAVE_LIBTK4_2 -DHAVE_TK_H -DHAVE_LIBTCL7_6 
>> -DHAVE_TCL_H -g -o net-ip.o net-ip.cc
>> net-ip.cc: In method `int IPNetwork::command(int, const char *const >> *)':
>> net-ip.cc:140: `IP_MULTICAST_LOOP' undeclared (first use this 
>> function)
>> net-ip.cc:140: (Each undeclared identifier is reported only once
>> net-ip.cc:140: for each function it appears in.)
>> net-ip.cc: In method `int IPNetwork::open(int)':
>> net-ip.cc:201: warning: implicit declaration of function `int 
>> bzero(...)'
>> net-ip.cc: In method `void IPNetwork::localname(struct sockaddr_in 
>> *)':
>> net-ip.cc:290: warning: implicit declaration of function `int 
>> getsockname(...)'#ifdef WIN32
>> *** Error code 1
>> make: Fatal error: Command failed for target `net-ip.o'

The file net-ip.o at the line of 140 has the following:

>> #ifdef WIN32
>> #define IP_MULTICAST_LOOP -1
>> #endif
>>                         if (setsockopt(ssock_, IPPROTO_IP, 
>> IP_MULTICAST_LOOP, &c, 1) < 0) {
>>                       /*
>>                        * If we cannot turn off loopback (Like on the
>>                        * Microsoft TCP/IP stack), then declare this
>>                        * option broken so that our packets can be
>>                        * filtered on the recv path.
>>                        */
>>                                if (c == 0)
>>                                        noloopback_broken_ = 1;
>>                        }
>>                        return (TCL_OK);
>>                }

I will be grateful if you can help me. Thank you in advance..
Sincerely,

Deniz GURKAN
Research Assistant
	Bilkent University 
	Electrical and Electronics Eng. Dept.
	06533 Bilkent ANKARA / TURKEY
e-mail: [email protected]  URL:
http://www.ee.bilkent.edu.tr/~deniz/
|^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^|
|Permanent Adress:  Seker Fab. Loj.     Home Tel     : (90)(312)2446840
|
|                   B5-2 06790          Office phone : (90)(312)2664000
|
|                   Etimesgut / ANKARA  Office       : A-230           
|
|^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^|