[ns] Fwd: No rule to make target `@V_STLOBJ@', needed by `depend', while re-"make"ing the ns-2.33

Kumar, Vineet Vineet.Kumar at Hitachi-eu.com
Tue Mar 17 19:43:23 PDT 2009


Hi,
  
  Just do,  
  sudo yum install compat-gcc-34 compat-gcc-34-c++

  As you must have understood, the above command will install a gcc/g++ version 3.4 compatibility in your system,
  but whenever you use gcc/g++ command, your system automatically takes the actuall gcc version of your OS (i.e version 4.3.0).
  So the trick is whenever you want to use the version 3.4, just replace gcc/g++ by gcc34/g++34 respectively. 

  Regarding ns2.33 (or any ns2.XX)
  take a fresh ns-allinone-2.33, go to the ns-2.33 folder,
  In the 'Makefile.in' replace,

    CC=@CC@
    CPP=@CXX@
       
       by

    CC=gcc34
    CPP=g++34 

  then return to the 'ns-allinone-2.33' directory and start the normal installation process.

Regards,
Vineet Kumar


-----Original Message-----
From: ns-users-bounces at ISI.EDU on behalf of Laziz Yunusov
Sent: Wed 18/03/2009 01:22
To: ns-users at ISI.EDU
Subject: [ns] Fwd:  No rule to make target `@V_STLOBJ@', needed by `depend',while re-"make"ing the ns-2.33
 

Unfortunately, this did not solve the problem. I guess that this may
be due to updated GCC, because with older version 3.4.3, nobody seem
to have such a problem. Then I even tried:
yum install compat-gcc-34.i386 compat-gcc-34-c++.i386
And afterwards, while trying to make, I'm having:
common/packet.cc:44: error: conflicting declaration 'char** p_info::name_ [62]'
common/packet.h:295: error: 'p_info::name_' has a previous declaration
as 'char* p_info::name_ [62]'
common/packet.cc:44: error: declaration of 'char* p_info::name_ [62]'
outside of class is not definition
common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is not a
static member of 'class p_info'
common/packet.cc:46: error: expected constructor, destructor, or type
conversion before '*' token
common/packet.cc:48: error: no 'int p_info::addPacket(char*)' member
function declared in class 'p_info'
make: *** [common/packet.o] Error 1


Can anyone suggest another solution?

---------- Forwarded message ----------
From: Dimitris Liarokapis
Date: Tue, Mar 17, 2009 at 6:51 PM
Subject: Re: [ns] No rule to make target `@V_STLOBJ@', needed by
`depend', while re-"make"ing the ns-2.33
To: Laziz Yunusov


Hi,

Try the following sequence of commands:

./configure
make clean
make depend
make
make install

Dimitris

On 3/17/09, Laziz Yunusov <ylaziz at gmail.com> wrote:
>
> Hi there,
> I'm developing a new protocol for ns-2. When I hit "make depend" in
> ns-2.33 directory, I'm getting following error message:
> make: *** No rule to make target `@V_STLOBJ@', needed by `depend'.  Stop.
> Maybe it's because of updated gcc/g++?! Because I didn't have such
> error before. Any help appreciated.
> P.S. gcc version is 4.3.0 20080428 (Red Hat 4.3.0-8)



************************************************************************************************** 
E-mail Confidentiality Notice and Disclaimer. 

This e-mail and any files transmitted with it are confidential and are intended solely for the use 
of the individual or entity to which they are addressed. Access to this e-mail by anyone else is 
unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any
action taken or omitted to be taken in reliance on it, is prohibited. E-mail messages are not 
necessarily secure. Hitachi does not accept responsibility for any changes made to this message 
after it was sent. 
Hitachi checks outgoing e-mail messages for the presence of computer viruses. 
**************************************************************************************************


More information about the Ns-users mailing list