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

[ns] make nse problems



Hi,
	Downloaded the `allinone' package for `ns' and it compiled
out of the box on Redhat7, Yippee!

	However when I then go into the `ns' directory and type
`make nse' I get :-

--------------

[root ns-2.1b7]# make nse
c++ -c -O2 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A6 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H -I. -I/usr/local/ns/ns-allinone-2.1b7/tclcl-1.0b10 -I/usr/local/ns/ns-allinone-2.1b7/otcl-1.0a6 -I/usr/local/ns/ns-allinone-2.1b7/tk8.3.2/generic -I/usr/local/ns/ns-allinone-2.1b7/tcl8.3.2/generic -o emulate/net-ip.o emulate/net-ip.cc
emulate/net-ip.cc: In method `int UDPIPNetwork::recv (unsigned char *,
int, sockaddr &, double &)':
emulate/net-ip.cc:284: cannot convert `int *' to `socklen_t *' for
argument `6' to `recvfrom (int, void *, unsigned int, int, sockaddr *,
socklen_t *)'
emulate/net-ip.cc: In method `int IPNetwork::recv (unsigned char *,
int, sockaddr &, double &)':
emulate/net-ip.cc:556: cannot convert `int *' to `socklen_t *' for
argument `6' to `recvfrom (int, void *, unsigned int, int, sockaddr *,
socklen_t *)'
make: *** [emulate/net-ip.o] Error 1  
--------------

Help?

Thanks Ian