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

[ns] ns2.1b6 with tcl/tk8.3.1 and on AIX



Hi,

Just to let you know that ns2.1b6 works fine with Tcl/Tk 8.3.1 on both
Linux and AIX 4.3.2
(passed the verification tests anyway).

On Linux (rh6.1), had to hand-run the configure's for otcl, tclcl, ns, nam,
etc. as
the existing script is hardcoded for 8.0, but doing that worked.  Also, had
to steal the
tcl debug .c's from the latest expect sources, as the one in the ns
distribution doesn't
compile ('cos of 8.3.1?).

Had a bit of grief on AIX as config.status fails with a zillion messages of
the form:
    /usr/bin/sed: too many arguments
    /usr/bin/rm: too many arguments
etc. Had to fix by hand a couple of things probably because of this -
here's the list
in case anyone's interested.

---
config.h - line 144:
        change
                #if !defined(__hpux)
        to
                #if ! (defined(__hpux) || defined(_AIX))
        (declaration of gethostid)

config.h - line 42:
        add
                #undef _LONG_LONG
        or else it makes futile attempts to use int64_t in time.h on my
32bit workstation.

Makefile:
        change
                STATIC =
        to
                STATIC = -Wl,-brtl

        to link with the tcl and tk .so's.
        <kludge> the configure script did say it didn't know how to handle
shared libs/dyn loading on AIX. So.

------
Coursework use only:
tcl/lib/ns-lib.tcl:
        add
                source ns-cip.tcl
        after
                source ns-mip.tcl
        and touch tclAppInit.cc

tcl/lib/ns-cip.tcl:
        new defs needed to silence otcl messages...
------
Lastly:
gen/ns_tcl.cc:
        line 53 (path of perl)
                handcode it.
        since configure doesn't let me lead it to the perly gates.
        Warning: do this last, as ns_tcl.cc gets generated when
tclAppInit.cc is touched.


best regards,
- prasad
-------------------------------------------------
V Guruprasad,
IBM T J Watson Research Center
Yorktown Heights, NY 10598
914 945 2934, [email protected]