Fwd: [ns] AIX compilation
Aaron Harwood
aharwood at cs.mu.oz.au
Sat Jan 31 01:14:13 PST 2004
Well, I finally managed to compile ns on the IBM machine (specs below),
but using g++ rather
than vacpp:
[aharwood at mungera] ns-2.26 [1:77] g++ --version
2.9-aix51-020209
[aharwood at mungera] ns-2.26 [1:78]
However one problem is now that ns tends to freeze (completely freezing
the terminal) when terminating. It passes all but the following tests:
validate overall report: some tests failed:
./test-all-plm ./test-all-wireless-tdma ./test-all-diffusion3
One of the tests failed because I killed the test process after it took
more than 10 minutes.
Some things I needed to do in order to get a compilation of ns:
-I/usr/include so that snprintf(...) was explicitly declared
avoid inclusion of some headers by using additional tests with
defined(_AIX)
changed virtual declarations as the following example:
virtual void recv(Packet*, Handler* callback = 0) = 0;
to
virtual void recv(Packet*, Handler* callback = 0) {};
It is this last change that I suspect may be causing a freeze.
Any suggestions?
--Aaron
Begin forwarded message:
> Dear ns-users,
>
> Does anyone have experience with compiling NS2 on the following:
>
> IBM eServer pSeries 650/AIX 5L 5.2
>
> (or something like it) which has IBM's vacpp compiler. This is a 64
> bit architecture.
More information about the Ns-users
mailing list