[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] ask for help again
This should work around the problem,
but every other system's linker silently
accepts the random in random.cc...why not Solaris'?
-John Heidemann
>In random.cc, try to comment out the following code:
>
>/****
>RANDOM_RETURN_TYPE
>random() GCC_THROW
>{
> printf("random() called in ns.\nRandom is not portable, please use
>Rando
>m::uniform() instead.\n");
> abort();
>}
>****/
>
>Recompile ns and see if it works.
>
>- difa
>
>On Mon, 4 Jun 2001, YUAN Dao Hua wrote:
>
>> When we build ns-2 running ./install at directory ns-allinone-2.1b7a on
>> Solaris2.7, the following error occurs: (same problem as building
>> ns-allinone-2.1b3)
>>
>> ld: fatal: symbol `random' is multiply defined:
>> (file random.o and file
>> /usr/X11R6/lib/libXbsd.a(Berklib.o));
>> ld: fatal: File processing errors. No output written to ns
>> collect2: ld returned 1 exit status
>> make: *** [ns] Error 1
>> Ns make failed!
>>
>> Would you please tell us how to correct this problem? Thank you for your
>>
>> help! (I have checked http://www.isi.edu/nsnam/ns/ns-problems.html.)
>>
>> We want to use CMU Wireless Extensions to ns. Is this version of ns
>> appropriate(enough)?
>>
>> Daohua YUAN
>> City University of Hong Kong
>>
>>
>>
>