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

Re: [ns] Ns compile problem: "cannot exec `cc1plus'"



In the ns makefile ./indep-utils/cmu-scen-gen/setdest/Makefile it appears
that the c compiler is called instead of the c++ compiler for setdest,
calcdest and rng.o. Changing this will solve the problem.

The problem appears because in Debian 2.1 there are different compilers for
c and c++, and the c++ option of the c compiler has been disabled. This
seems to be specific to the Debian 2.1 distribution and is documented in
/usr/doc/gcc/README.Debian on the Debian system. A way to work around this
problem is instead of using
   ./configure
to use
   CC=egcc ./configure
which will make ns use the same compiler for both c and c++. Note that if
this is done the optional Debian egcc package needs to be installed.

>When compiling ns-2.1b6 I get the following message:
>  make[1]: Entering directory
>    `/var/tmp/ns-2.1b6/indep-utils/cmu-scen-gen/setdest'
>  gcc -c -Dstand_alone -o rng.o ../../../rng.cc
>  gcc: installation problem, cannot exec `cc1plus': No such file or directory
>  make[1]: *** [rng.o] Error 1
>
>The system is:
>  Debian GNU/Linux 2.1
>    with gcc-2.7.2.3, libc6-2.0.7, Tcl-8.0.4, Tk-8.0.4, and
>    c++ "gcc version egcs-2.91.66 Debian GNU/Linux (egcs-1.1.2 release)".
>  Otcl-1.0a5 and Tclcl-1.0b9 were downloaded from the ns site and seemed
>    to install properly, replacing previous versions.
>  Nam-1.0a8 is also installed and did not have any problems compiling.
>
>I did not have this problem with the previous version, ns-2.1b5, however
>some changes to the system may have occured between then and now. (Since
>the new library versions of otcl and tclcl have been installed ns-2.1b5 no
>longer compiles due to what appears to be a change in the function call to
>'TclObject::delay_bind_dispatch'.)
>
>Any suggestions on how to solve this problem with ns-2.1b6?


---
Jeffrey Austen       |  Tennessee Technological University
[email protected]   |  Box 5004
+1-931-372-3485      |  Cookeville Tennessee 38505   U.S.A.