Tom, I decided to try out your first suggestion. I built in the order recommended. The problems associated with individual build was that the configure file had the wrong version numbers for the different units. On fixing that and building, I have successfully built tcl, tk, otcl and tclcl.
> The recommended build order is tcl, tk, otcl, tclcl, ns-2, and nam-1. > You shouldn't get into circular dependencies when done in that order. For ns-2, I think I am getting into the intricacies of 64-bit code. I looked at your patch and do not see anything with respect to ns-2 code. Is there any future version of ns-2 that you are aware of, which compiles on a 64-bit machine? Then, maybe I can see what changes have been made and try to duplicate them for ns-2.27. Thanks a lot for your help. Regards, Sita .... common/packet.h:265: warning: deprecated conversion from string constant to âchar*â common/packet.h:266: warning: deprecated conversion from string constant to âchar*â common/packet.h:267: warning: deprecated conversion from string constant to âchar*â common/packet.h:268: warning: deprecated conversion from string constant to âchar*â common/packet.cc: In member function âvirtual void CommonHeaderClass::export_offsets()â: common/packet.cc:117: error: cast from âpacket_t*â to âintâ loses precision common/packet.cc:118: error: cast from âint*â to âintâ loses precision common/packet.cc:119: error: cast from âint*â to âintâ loses precision common/packet.cc:120: error: cast from âint*â to âintâ loses precision make: *** [common/packet.o] Error 1 > Sita S. Krishnakumar wrote: >> Hi Tom, >> After searching the ns-list archives, I found help with the >> x86_64-unknown >> problem. >> >>>> 1. Edit otcl-xx/config.sub and tclcl-xx/config.sub. Where "| x86 |" >> appears >>>> you must put "| x86 | x86_64 |", i.e, x86_64 is added. In a similar >> way, >>>> where "| x86-* |" appears you must put "| x86-* | x86_64-* |". >> >> This took me a little further and now I have a new error: >> >> checking for tclsh... /home/ssita/ns-allinone-2.27/tcl8.4.5/unix/tclsh >> configure: error: Installation of tcl seems incomplete or can't be found >> automatically. >> Please correct the problem by telling configure where tcl is >> using the argument --with-tcl=/path/to/package >> (perhaps after installing it), >> or the package is not required, disable it with --with-tcl=no. >> otcl-1.8 configuration failed! Exiting ... >> Please check http://www.isi.edu/nsnam/ns/ns-problems.html >> for common problems and bug fixes. >> >> The solution for this seems to be to compile pieces of tcl, tclcl, otcl >> and tk individually. No matter what the order, the interdependencies are >> never resolved. Can you or anyone else with experience on compiling for >> a >> 64-bit machine help me out? >> Thanks, >> Sita > > Sita, > The recommended build order is tcl, tk, otcl, tclcl, ns-2, and nam-1. > You shouldn't get into circular dependencies when done in that order. > > Here is another suggestion: > - try downloading the ns-allinone-2.30 or 2.31 release, which builds on > x86_64 (you should confirm this first) > - replace the ns-2.30 or ns-2.31 directory with ns-2.27. > - edit "install" and replace "NSVER=2.30" with "NSVER=2.27" > - run install (this should at least build all of the other pieces for you) > - make any last changes needed to the ns-2.27 code (such as with the > patch I provided) > > Tom >