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

Re: NS installation



>
> From:  [email protected] (Morin Alexandre )
> To:    [email protected]
> Subject: NS installation
> Date:  Mon, 17 Nov 1997 15:17:53 PST
>
> Hi all,
> 
> While running the makefile of the NS, I got the following warning:
> 
> net-ip.cc: In method `int IPNetwork::open(int)':
> net-ip.cc:197: warning: implicit declaration of function `int bzero(...)'
> 
> 
> followed by the error message:
> 
> Undefined                       first referenced
>  symbol                             in file
> bzero                               net-ip.o
> ld: fatal: Symbol referencing errors. No output written to ns
> *** Error code 1
> make: Fatal error: Command failed for target `ns'
> 
> 
> I don t know which link to make to resolve this.
> 
> Thanks for helping me,
> 
> Alex,  
> 
> -- 

One quick solution:

replace the line:
	bzero((char*)&saddr, sizeof(saddr));

with
	memset(&saddr, '\0', sizeof(saddr));

- Kevin