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

Re: NS-2 Compilation



On Mon, 01 Sep 1997 10:20:39 +1000, Steven Hampson wrote: 
>I am really new to NS/NS-2 and am having compilation problems with
>ns-2 for HP-UX.  I have compiled all the base modules (tcl (7.6),
>tk (4.2), otcl (0.96) and Tcl (1.0b2) (ns is ver 2.0b17)
>
>All the other packages have copiled and linked successfully (as
>far as I can tell).
>
>ns-2 compiles successfully but the link fails with 
>
>collect2: ld returned 1 exit status
>/bin/ld: Unsatisfied symbols:
>   random (code)
>gmake: *** [ns] Error 1
>
>I have been trying to fix it for a while and have grown
>desperate.  Has any one got any ideas, or even a compiled
>version of ns-2 for hp-ux (HP-UX spot A.09.05 A 9000/715 2015838599
>two-user license)

If you look in random.h there two places with:

#if defined(__svr4__) || defined(__SVR4)

add a ``|| defined(YOUR_HPUX_SYMBOL)'', replacing YOUR_HPUX_SYMBOL
with something that your compiler defines (or something you manually
define :-) and I expect you'll be OK.

The next version of ns will replace the random number implementation,
eliminiating this problem.

   -John Heidemann