Re: [ns] errors when type make

2008-10-12 Thread eng Rony



Eng Rony
thanks for your help mr, Wang Danqi 
i want to ask u a question:-
my PC is old, i have RAM:256,Processor: 1200, Cache:256, Board type: Manli
and i want to use ns-2.33 which linux distribution is suitable to me and can u 
tell me where can i get it from net?
thanks alot
 



--- On Sun, 10/12/08, Wang Danqi [EMAIL PROTECTED] wrote:

From: Wang Danqi [EMAIL PROTECTED]
Subject: Re: [ns] errors when type make
To: ns-users@ISI.EDU
Date: Sunday, October 12, 2008, 7:45 AM


I don't know what happens when there are two version of gcc in your system.

apt-get install g++ 4.2.4   doesn't mean to install g++-4.2.4.
Instead, it
means install two different software: g++ and 4.2.4.

I think if you can find a up-to-date Ubuntu source server with latest
version of gcc, the apt will upgrade it for you automatically, so you don't
need to remove the old version.


eng Rony wrote:
 
 
 
 
 Eng Rony
 
 i check the version of  g++ in my system, by g++ -v, and i found it gcc
 version 4.1.3 
 now i will install g++ 4.2.4 by sudo apt-get install g++ 4.2.4
 i have 2 questions:-
 1- do i must remove my old version gcc 4.1.3?
 2- if i keep my old version how can i make g++ 4.2.4 my default?
 thanks
 
 
 
 --- On Sat, 10/11/08, Wang Danqi [EMAIL PROTECTED] wrote:
 From: Wang Danqi [EMAIL PROTECTED]
 Subject: Re: [ns] errors when type make
 To: ns-users@ISI.EDU
 Date: Saturday, October 11, 2008, 6:15 AM
 
 
 It seems your compiler considers the declaration of char**
p_info::name_ 
 char* is different from the definition of  p_info::name_
 [59].
 
 You may check the version of  g++ in your system, by g++ -v
 
 g++ 4.2.4 works well with ns-allinone-2.33
 
 
 eng Rony wrote:
 
 
 
 
 Eng Rony
  
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make
 
 g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR
-DNDEBUG
 -DL=
 INUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
 -DHAVE_LIBOTCL1_13=
 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4
-DHAVE_TCL_H
 -D=
 HAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=3Dstd
 -DUSE_SIN=
 GLE_ADDRESS_SPACE -Drng_test -I. -I.
 -I/home/rania/ns-allinone-2.33/tclcl-1=
 ...19 -I/home/rania/ns-allinone-2.33/otcl
 -I/home/rania/ns-allinone-2.33/inc=
 lude -I/home/rania/ns-allinone-2.33/include -I/usr/include/pcap
-I./tcp
 -I.=
 /sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac
-I./mobile
 -I.=
 /trace -I./routing -I./tools -I./classifier -I./mcast
 -I./diffusion3/lib/ma=
 in -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns
 -I./diffusion=
 3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o
 commo=
 n/packet.o common/packet.cc
 common/packet.cc:44: error: conflicting declaration 'char**
 p_info::name_'
 common/packet.h:277: error: 'p_info::name_' has a previous
 declaration as
 '=
 char* p_info::name_ [59]'
 common/packet.cc:44: error: declaration of 'char* p_info::name_
 [59]'
 outsi=
 de of class is not definition
 common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is
not a
 static
 me=
 mber of 'class p_info'
 
 =20
 common/packet.cc:46: error: expected constructor, destructor, or type
 conve=
 rsion before '*' token
 common/packet.cc:48: error: no 'int p_info::addPacket(char*)'
 member
 functi=
 on declared in class 'p_info'
 common/packet.cc: In member function 'int
 p_info::addPacket(char*)':
 common/packet.cc:50: error: 'nPkt_' was not declared in this
scope
 common/packet.cc:51: error: 'initName' was not declared in
this
 scope
 common/packet.cc:53: error: 'nPkt_' was not declared in this
scope
 common/packet.cc:55: error: 'initName' was not declared in
this
 scope
 make: *** [common/packet.o] Error 1
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$
 
 
 
 
   
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/errors-when-type-make-tp19886080p19894159.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 
 
 
 
   
 
 

-- 
View this message in context:
http://www.nabble.com/errors-when-type-make-tp19886080p19938906.html
Sent from the ns-users mailing list archive at Nabble.com.





  


Re: [ns] errors when type make

2008-10-12 Thread pankaj chand


You can try doing MAKE with a fresh installation of ns2.33 on a different user 
on your linux.if it doesn't work, then your compiler or your lib.so files might 
have a problem, or ns2.33 might not be compatible with your linux, or you will 
need to install some patches.If you made some changes in the c++ code, 
especially to the packet.h or packet.cc files then it might help if you 
provided the changes to us. And then it would be a simple case of c++ code 
debugging.
pankaj
_
Want to explore the world? Visit MSN Travel for the best deals.
http://in.msn.com/coxandkings


Re: [ns] errors when type make

2008-10-12 Thread Wang Danqi


I have no idea about the other distribution, but Ubuntu has two derivative
for old PC. They are:

Xubuntu: http://www.ubuntu.com/products/whatisubuntu/xubuntu
Ubuntulite: http://ubuntulite.tuxfamily.org/?q=node/2

Xubuntu is an official derivative of ubuntu. I think it's easy to install
and configure. The hardware requirement is stated at the bottom of the
website.

Ubuntulite I think maybe more light than Xubuntu, but harder to configure.
You may try it.

This link may be helpful for you:
http://ubuntuforums.org/showthread.php?t=306546highlight=slow+nautilus


eng Rony wrote:
 
 
 
 
 Eng Rony
 thanks for your help mr, Wang Danqi 
 i want to ask u a question:-
 my PC is old, i have RAM:256,Processor: 1200, Cache:256, Board type: Manli
 and i want to use ns-2.33 which linux distribution is suitable to me and
 can u tell me where can i get it from net?
 thanks alot
  
 
 
 
 --- On Sun, 10/12/08, Wang Danqi [EMAIL PROTECTED] wrote:
 
 From: Wang Danqi [EMAIL PROTECTED]
 Subject: Re: [ns] errors when type make
 To: ns-users@ISI.EDU
 Date: Sunday, October 12, 2008, 7:45 AM
 
 
 I don't know what happens when there are two version of gcc in your
 system.
 
 apt-get install g++ 4.2.4   doesn't mean to install g++-4.2.4.
 Instead, it
 means install two different software: g++ and 4.2.4.
 
 I think if you can find a up-to-date Ubuntu source server with latest
 version of gcc, the apt will upgrade it for you automatically, so you
 don't
 need to remove the old version.
 
 
 eng Rony wrote:
 
 
 
 
 Eng Rony
 
 i check the version of  g++ in my system, by g++ -v, and i found it gcc
 version 4.1.3 
 now i will install g++ 4.2.4 by sudo apt-get install g++ 4.2.4
 i have 2 questions:-
 1- do i must remove my old version gcc 4.1.3?
 2- if i keep my old version how can i make g++ 4.2.4 my default?
 thanks
 
 
 
 --- On Sat, 10/11/08, Wang Danqi [EMAIL PROTECTED] wrote:
 From: Wang Danqi [EMAIL PROTECTED]
 Subject: Re: [ns] errors when type make
 To: ns-users@ISI.EDU
 Date: Saturday, October 11, 2008, 6:15 AM
 
 
 It seems your compiler considers the declaration of char**
 p_info::name_ 
 char* is different from the definition of  p_info::name_
 [59].
 
 You may check the version of  g++ in your system, by g++ -v
 
 g++ 4.2.4 works well with ns-allinone-2.33
 
 
 eng Rony wrote:
 
 
 
 
 Eng Rony
  
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make
 
 g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR
 -DNDEBUG
 -DL=
 INUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
 -DHAVE_LIBOTCL1_13=
 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4
 -DHAVE_TCL_H
 -D=
 HAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=3Dstd
 -DUSE_SIN=
 GLE_ADDRESS_SPACE -Drng_test -I. -I.
 -I/home/rania/ns-allinone-2.33/tclcl-1=
 ...19 -I/home/rania/ns-allinone-2.33/otcl
 -I/home/rania/ns-allinone-2.33/inc=
 lude -I/home/rania/ns-allinone-2.33/include -I/usr/include/pcap
 -I./tcp
 -I.=
 /sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac
 -I./mobile
 -I.=
 /trace -I./routing -I./tools -I./classifier -I./mcast
 -I./diffusion3/lib/ma=
 in -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns
 -I./diffusion=
 3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o
 commo=
 n/packet.o common/packet.cc
 common/packet.cc:44: error: conflicting declaration 'char**
 p_info::name_'
 common/packet.h:277: error: 'p_info::name_' has a previous
 declaration as
 '=
 char* p_info::name_ [59]'
 common/packet.cc:44: error: declaration of 'char* p_info::name_
 [59]'
 outsi=
 de of class is not definition
 common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is
 not a
 static
 me=
 mber of 'class p_info'
 
 =20
 common/packet.cc:46: error: expected constructor, destructor, or type
 conve=
 rsion before '*' token
 common/packet.cc:48: error: no 'int p_info::addPacket(char*)'
 member
 functi=
 on declared in class 'p_info'
 common/packet.cc: In member function 'int
 p_info::addPacket(char*)':
 common/packet.cc:50: error: 'nPkt_' was not declared in this
 scope
 common/packet.cc:51: error: 'initName' was not declared in
 this
 scope
 common/packet.cc:53: error: 'nPkt_' was not declared in this
 scope
 common/packet.cc:55: error: 'initName' was not declared in
 this
 scope
 make: *** [common/packet.o] Error 1
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$
 
 
 
 
   
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/errors-when-type-make-tp19886080p19894159.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 
 
 
 
   
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/errors-when-type-make-tp19886080p19938906.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 
 
 
 
   
 
 

-- 
View this message in context: 
http://www.nabble.com/errors-when-type-make-tp19886080p19948004.html
Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] errors when type make

2008-10-11 Thread eng Rony



Eng Rony

i check the version of  g++ in my system, by g++ -v, and i found it gcc version 
4.1.3 
now i will install g++ 4.2.4 by sudo apt-get install g++ 4.2.4
i have 2 questions:-
1- do i must remove my old version gcc 4.1.3?
2- if i keep my old version how can i make g++ 4.2.4 my default?
thanks



--- On Sat, 10/11/08, Wang Danqi [EMAIL PROTECTED] wrote:
From: Wang Danqi [EMAIL PROTECTED]
Subject: Re: [ns] errors when type make
To: ns-users@ISI.EDU
Date: Saturday, October 11, 2008, 6:15 AM


It seems your compiler considers the declaration of char** p_info::name_ 
char* is different from the definition of  p_info::name_
[59].

You may check the version of  g++ in your system, by g++ -v

g++ 4.2.4 works well with ns-allinone-2.33


eng Rony wrote:
 
 
 
 
 Eng Rony
  
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make
 
 g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG
 -DL=
 INUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
 -DHAVE_LIBOTCL1_13=
 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H
 -D=
 HAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=3Dstd
 -DUSE_SIN=
 GLE_ADDRESS_SPACE -Drng_test -I. -I.
 -I/home/rania/ns-allinone-2.33/tclcl-1=
 ...19 -I/home/rania/ns-allinone-2.33/otcl
 -I/home/rania/ns-allinone-2.33/inc=
 lude -I/home/rania/ns-allinone-2.33/include -I/usr/include/pcap -I./tcp
 -I.=
 /sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile
 -I.=
 /trace -I./routing -I./tools -I./classifier -I./mcast
 -I./diffusion3/lib/ma=
 in -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns
 -I./diffusion=
 3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o
 commo=
 n/packet.o common/packet.cc
 common/packet.cc:44: error: conflicting declaration 'char**
p_info::name_'
 common/packet.h:277: error: 'p_info::name_' has a previous
declaration as
 '=
 char* p_info::name_ [59]'
 common/packet.cc:44: error: declaration of 'char* p_info::name_
[59]'
 outsi=
 de of class is not definition
 common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is not a
static
 me=
 mber of 'class p_info'
 
 =20
 common/packet.cc:46: error: expected constructor, destructor, or type
 conve=
 rsion before '*' token
 common/packet.cc:48: error: no 'int p_info::addPacket(char*)'
member
 functi=
 on declared in class 'p_info'
 common/packet.cc: In member function 'int
p_info::addPacket(char*)':
 common/packet.cc:50: error: 'nPkt_' was not declared in this scope
 common/packet.cc:51: error: 'initName' was not declared in this
scope
 common/packet.cc:53: error: 'nPkt_' was not declared in this scope
 common/packet.cc:55: error: 'initName' was not declared in this
scope
 make: *** [common/packet.o] Error 1
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$
 
 
 
 
   
 
 

-- 
View this message in context:
http://www.nabble.com/errors-when-type-make-tp19886080p19894159.html
Sent from the ns-users mailing list archive at Nabble.com.





  


Re: [ns] errors when type make

2008-10-11 Thread eng Rony



Eng Rony

[EMAIL PROTECTED]:~$ sudo apt-get install g++ 4.2.4
Reading package lists... Done
Building dependency tree   
Reading state information... Done
g++ is already the newest version.
g++ set to manual installed.
E: Couldn't find package 4.2.4



--- On Sat, 10/11/08, Wang Danqi [EMAIL PROTECTED] wrote:
From: Wang Danqi [EMAIL PROTECTED]
Subject: Re: [ns] errors when type make
To: ns-users@ISI.EDU
Date: Saturday, October 11, 2008, 6:15 AM


It seems your compiler considers the declaration of char** p_info::name_ 
char* is different from the definition of  p_info::name_
[59].

You may check the version of  g++ in your system, by g++ -v

g++ 4.2.4 works well with ns-allinone-2.33


eng Rony wrote:
 
 
 
 
 Eng Rony
  
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make
 
 g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG
 -DL=
 INUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
 -DHAVE_LIBOTCL1_13=
 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H
 -D=
 HAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=3Dstd
 -DUSE_SIN=
 GLE_ADDRESS_SPACE -Drng_test -I. -I.
 -I/home/rania/ns-allinone-2.33/tclcl-1=
 ...19 -I/home/rania/ns-allinone-2.33/otcl
 -I/home/rania/ns-allinone-2.33/inc=
 lude -I/home/rania/ns-allinone-2.33/include -I/usr/include/pcap -I./tcp
 -I.=
 /sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile
 -I.=
 /trace -I./routing -I./tools -I./classifier -I./mcast
 -I./diffusion3/lib/ma=
 in -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns
 -I./diffusion=
 3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o
 commo=
 n/packet.o common/packet.cc
 common/packet.cc:44: error: conflicting declaration 'char**
p_info::name_'
 common/packet.h:277: error: 'p_info::name_' has a previous
declaration as
 '=
 char* p_info::name_ [59]'
 common/packet.cc:44: error: declaration of 'char* p_info::name_
[59]'
 outsi=
 de of class is not definition
 common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is not a
static
 me=
 mber of 'class p_info'
 
 =20
 common/packet.cc:46: error: expected constructor, destructor, or type
 conve=
 rsion before '*' token
 common/packet.cc:48: error: no 'int p_info::addPacket(char*)'
member
 functi=
 on declared in class 'p_info'
 common/packet.cc: In member function 'int
p_info::addPacket(char*)':
 common/packet.cc:50: error: 'nPkt_' was not declared in this scope
 common/packet.cc:51: error: 'initName' was not declared in this
scope
 common/packet.cc:53: error: 'nPkt_' was not declared in this scope
 common/packet.cc:55: error: 'initName' was not declared in this
scope
 make: *** [common/packet.o] Error 1
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$
 
 
 
 
   
 
 

-- 
View this message in context:
http://www.nabble.com/errors-when-type-make-tp19886080p19894159.html
Sent from the ns-users mailing list archive at Nabble.com.





  


Re: [ns] errors when type make

2008-10-11 Thread Wang Danqi


what's the output of g++ -v?


eng Rony wrote:
 
 
 
 
 Eng Rony
 
 [EMAIL PROTECTED]:~$ sudo apt-get install g++ 4.2.4
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 g++ is already the newest version.
 g++ set to manual installed.
 E: Couldn't find package 4.2.4
 
 
 
 --- On Sat, 10/11/08, Wang Danqi [EMAIL PROTECTED] wrote:
 From: Wang Danqi [EMAIL PROTECTED]
 Subject: Re: [ns] errors when type make
 To: ns-users@ISI.EDU
 Date: Saturday, October 11, 2008, 6:15 AM
 
 
 It seems your compiler considers the declaration of char** p_info::name_ 
 char* is different from the definition of  p_info::name_
 [59].
 
 You may check the version of  g++ in your system, by g++ -v
 
 g++ 4.2.4 works well with ns-allinone-2.33
 
 
 eng Rony wrote:
 
 
 
 
 Eng Rony
  
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make
 
 g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG
 -DL=
 INUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
 -DHAVE_LIBOTCL1_13=
 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H
 -D=
 HAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=3Dstd
 -DUSE_SIN=
 GLE_ADDRESS_SPACE -Drng_test -I. -I.
 -I/home/rania/ns-allinone-2.33/tclcl-1=
 ...19 -I/home/rania/ns-allinone-2.33/otcl
 -I/home/rania/ns-allinone-2.33/inc=
 lude -I/home/rania/ns-allinone-2.33/include -I/usr/include/pcap -I./tcp
 -I.=
 /sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile
 -I.=
 /trace -I./routing -I./tools -I./classifier -I./mcast
 -I./diffusion3/lib/ma=
 in -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns
 -I./diffusion=
 3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o
 commo=
 n/packet.o common/packet.cc
 common/packet.cc:44: error: conflicting declaration 'char**
 p_info::name_'
 common/packet.h:277: error: 'p_info::name_' has a previous
 declaration as
 '=
 char* p_info::name_ [59]'
 common/packet.cc:44: error: declaration of 'char* p_info::name_
 [59]'
 outsi=
 de of class is not definition
 common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is not a
 static
 me=
 mber of 'class p_info'
 
 =20
 common/packet.cc:46: error: expected constructor, destructor, or type
 conve=
 rsion before '*' token
 common/packet.cc:48: error: no 'int p_info::addPacket(char*)'
 member
 functi=
 on declared in class 'p_info'
 common/packet.cc: In member function 'int
 p_info::addPacket(char*)':
 common/packet.cc:50: error: 'nPkt_' was not declared in this scope
 common/packet.cc:51: error: 'initName' was not declared in this
 scope
 common/packet.cc:53: error: 'nPkt_' was not declared in this scope
 common/packet.cc:55: error: 'initName' was not declared in this
 scope
 make: *** [common/packet.o] Error 1
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$
 
 
 
 
   
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/errors-when-type-make-tp19886080p19894159.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 
 
 
 
   
 
 

-- 
View this message in context: 
http://www.nabble.com/errors-when-type-make-tp19886080p19932078.html
Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] errors when type make

2008-10-11 Thread eng Rony



Eng Rony

[EMAIL PROTECTED]:~$ g++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v 
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr 
--enable-shared --with-system-zlib --libexecdir=/usr/lib 
--without-included-gettext --enable-threads=posix --enable-nls 
--with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
[EMAIL PROTECTED]:~$ 


--- On Sat, 10/11/08, Wang Danqi [EMAIL PROTECTED] wrote:
From: Wang Danqi [EMAIL PROTECTED]
Subject: Re: [ns] errors when type make
To: ns-users@ISI.EDU
Date: Saturday, October 11, 2008, 2:10 PM


what's the output of g++ -v?


eng Rony wrote:
 
 
 
 
 Eng Rony
 
 [EMAIL PROTECTED]:~$ sudo apt-get install g++ 4.2.4
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 g++ is already the newest version.
 g++ set to manual installed.
 E: Couldn't find package 4.2.4
 
 
 
 --- On Sat, 10/11/08, Wang Danqi [EMAIL PROTECTED] wrote:
 From: Wang Danqi [EMAIL PROTECTED]
 Subject: Re: [ns] errors when type make
 To: ns-users@ISI.EDU
 Date: Saturday, October 11, 2008, 6:15 AM
 
 
 It seems your compiler considers the declaration of char**
p_info::name_ 
 char* is different from the definition of  p_info::name_
 [59].
 
 You may check the version of  g++ in your system, by g++ -v
 
 g++ 4.2.4 works well with ns-allinone-2.33
 
 
 eng Rony wrote:
 
 
 
 
 Eng Rony
  
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make
 
 g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR
-DNDEBUG
 -DL=
 INUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
 -DHAVE_LIBOTCL1_13=
 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4
-DHAVE_TCL_H
 -D=
 HAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=3Dstd
 -DUSE_SIN=
 GLE_ADDRESS_SPACE -Drng_test -I. -I.
 -I/home/rania/ns-allinone-2.33/tclcl-1=
 ...19 -I/home/rania/ns-allinone-2.33/otcl
 -I/home/rania/ns-allinone-2.33/inc=
 lude -I/home/rania/ns-allinone-2.33/include -I/usr/include/pcap
-I./tcp
 -I.=
 /sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac
-I./mobile
 -I.=
 /trace -I./routing -I./tools -I./classifier -I./mcast
 -I./diffusion3/lib/ma=
 in -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns
 -I./diffusion=
 3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o
 commo=
 n/packet.o common/packet.cc
 common/packet.cc:44: error: conflicting declaration 'char**
 p_info::name_'
 common/packet.h:277: error: 'p_info::name_' has a previous
 declaration as
 '=
 char* p_info::name_ [59]'
 common/packet.cc:44: error: declaration of 'char* p_info::name_
 [59]'
 outsi=
 de of class is not definition
 common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is
not a
 static
 me=
 mber of 'class p_info'
 
 =20
 common/packet.cc:46: error: expected constructor, destructor, or type
 conve=
 rsion before '*' token
 common/packet.cc:48: error: no 'int p_info::addPacket(char*)'
 member
 functi=
 on declared in class 'p_info'
 common/packet.cc: In member function 'int
 p_info::addPacket(char*)':
 common/packet.cc:50: error: 'nPkt_' was not declared in this
scope
 common/packet.cc:51: error: 'initName' was not declared in
this
 scope
 common/packet.cc:53: error: 'nPkt_' was not declared in this
scope
 common/packet.cc:55: error: 'initName' was not declared in
this
 scope
 make: *** [common/packet.o] Error 1
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$
 
 
 
 
   
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/errors-when-type-make-tp19886080p19894159.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 
 
 
 
   
 
 

-- 
View this message in context:
http://www.nabble.com/errors-when-type-make-tp19886080p19932078.html
Sent from the ns-users mailing list archive at Nabble.com.





  


Re: [ns] errors when type make

2008-10-11 Thread Wang Danqi


I have no idea about that.

I guess you were using an older version of Ubuntu or a apt-source server
which is not updated, as the gcc on you system is a prerelease version and
is released on 20070929. 

If the errors are caused by an bad version of gcc (I'm not sure), maybe
you can try to change an apt-source server and install gcc again, or install
gcc by compiling source code.'

Good luck.


eng Rony wrote:
 
 
 
 
 Eng Rony
 
 [EMAIL PROTECTED]:~$ g++ -v
 Using built-in specs.
 Target: i486-linux-gnu
 Configured with: ../src/configure -v
 --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
 --enable-shared --with-system-zlib --libexecdir=/usr/lib
 --without-included-gettext --enable-threads=posix --enable-nls
 --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1
 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
 --enable-mpfr --enable-checking=release i486-linux-gnu
 Thread model: posix
 gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
 [EMAIL PROTECTED]:~$ 
 
 
 --- On Sat, 10/11/08, Wang Danqi [EMAIL PROTECTED] wrote:
 From: Wang Danqi [EMAIL PROTECTED]
 Subject: Re: [ns] errors when type make
 To: ns-users@ISI.EDU
 Date: Saturday, October 11, 2008, 2:10 PM
 
 
 what's the output of g++ -v?
 
 
 eng Rony wrote:
 
 
 
 
 Eng Rony
 
 [EMAIL PROTECTED]:~$ sudo apt-get install g++ 4.2.4
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 g++ is already the newest version.
 g++ set to manual installed.
 E: Couldn't find package 4.2.4
 
 
 
 --- On Sat, 10/11/08, Wang Danqi [EMAIL PROTECTED] wrote:
 From: Wang Danqi [EMAIL PROTECTED]
 Subject: Re: [ns] errors when type make
 To: ns-users@ISI.EDU
 Date: Saturday, October 11, 2008, 6:15 AM
 
 
 It seems your compiler considers the declaration of char**
 p_info::name_ 
 char* is different from the definition of  p_info::name_
 [59].
 
 You may check the version of  g++ in your system, by g++ -v
 
 g++ 4.2.4 works well with ns-allinone-2.33
 
 
 eng Rony wrote:
 
 
 
 
 Eng Rony
  
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make
 
 g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR
 -DNDEBUG
 -DL=
 INUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
 -DHAVE_LIBOTCL1_13=
 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4
 -DHAVE_TCL_H
 -D=
 HAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=3Dstd
 -DUSE_SIN=
 GLE_ADDRESS_SPACE -Drng_test -I. -I.
 -I/home/rania/ns-allinone-2.33/tclcl-1=
 ...19 -I/home/rania/ns-allinone-2.33/otcl
 -I/home/rania/ns-allinone-2.33/inc=
 lude -I/home/rania/ns-allinone-2.33/include -I/usr/include/pcap
 -I./tcp
 -I.=
 /sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac
 -I./mobile
 -I.=
 /trace -I./routing -I./tools -I./classifier -I./mcast
 -I./diffusion3/lib/ma=
 in -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns
 -I./diffusion=
 3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o
 commo=
 n/packet.o common/packet.cc
 common/packet.cc:44: error: conflicting declaration 'char**
 p_info::name_'
 common/packet.h:277: error: 'p_info::name_' has a previous
 declaration as
 '=
 char* p_info::name_ [59]'
 common/packet.cc:44: error: declaration of 'char* p_info::name_
 [59]'
 outsi=
 de of class is not definition
 common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is
 not a
 static
 me=
 mber of 'class p_info'
 
 =20
 common/packet.cc:46: error: expected constructor, destructor, or type
 conve=
 rsion before '*' token
 common/packet.cc:48: error: no 'int p_info::addPacket(char*)'
 member
 functi=
 on declared in class 'p_info'
 common/packet.cc: In member function 'int
 p_info::addPacket(char*)':
 common/packet.cc:50: error: 'nPkt_' was not declared in this
 scope
 common/packet.cc:51: error: 'initName' was not declared in
 this
 scope
 common/packet.cc:53: error: 'nPkt_' was not declared in this
 scope
 common/packet.cc:55: error: 'initName' was not declared in
 this
 scope
 make: *** [common/packet.o] Error 1
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$
 
 
 
 
   
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/errors-when-type-make-tp19886080p19894159.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 
 
 
 
   
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/errors-when-type-make-tp19886080p19932078.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 
 
 
 
   
 
 

-- 
View this message in context: 
http://www.nabble.com/errors-when-type-make-tp19886080p19932790.html
Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] errors when type make

2008-10-11 Thread Wang Danqi


I don't know what happens when there are two version of gcc in your system.

apt-get install g++ 4.2.4   doesn't mean to install g++-4.2.4. Instead, it
means install two different software: g++ and 4.2.4.

I think if you can find a up-to-date Ubuntu source server with latest
version of gcc, the apt will upgrade it for you automatically, so you don't
need to remove the old version.


eng Rony wrote:
 
 
 
 
 Eng Rony
 
 i check the version of  g++ in my system, by g++ -v, and i found it gcc
 version 4.1.3 
 now i will install g++ 4.2.4 by sudo apt-get install g++ 4.2.4
 i have 2 questions:-
 1- do i must remove my old version gcc 4.1.3?
 2- if i keep my old version how can i make g++ 4.2.4 my default?
 thanks
 
 
 
 --- On Sat, 10/11/08, Wang Danqi [EMAIL PROTECTED] wrote:
 From: Wang Danqi [EMAIL PROTECTED]
 Subject: Re: [ns] errors when type make
 To: ns-users@ISI.EDU
 Date: Saturday, October 11, 2008, 6:15 AM
 
 
 It seems your compiler considers the declaration of char** p_info::name_ 
 char* is different from the definition of  p_info::name_
 [59].
 
 You may check the version of  g++ in your system, by g++ -v
 
 g++ 4.2.4 works well with ns-allinone-2.33
 
 
 eng Rony wrote:
 
 
 
 
 Eng Rony
  
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make
 
 g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG
 -DL=
 INUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
 -DHAVE_LIBOTCL1_13=
 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H
 -D=
 HAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=3Dstd
 -DUSE_SIN=
 GLE_ADDRESS_SPACE -Drng_test -I. -I.
 -I/home/rania/ns-allinone-2.33/tclcl-1=
 ...19 -I/home/rania/ns-allinone-2.33/otcl
 -I/home/rania/ns-allinone-2.33/inc=
 lude -I/home/rania/ns-allinone-2.33/include -I/usr/include/pcap -I./tcp
 -I.=
 /sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile
 -I.=
 /trace -I./routing -I./tools -I./classifier -I./mcast
 -I./diffusion3/lib/ma=
 in -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns
 -I./diffusion=
 3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o
 commo=
 n/packet.o common/packet.cc
 common/packet.cc:44: error: conflicting declaration 'char**
 p_info::name_'
 common/packet.h:277: error: 'p_info::name_' has a previous
 declaration as
 '=
 char* p_info::name_ [59]'
 common/packet.cc:44: error: declaration of 'char* p_info::name_
 [59]'
 outsi=
 de of class is not definition
 common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is not a
 static
 me=
 mber of 'class p_info'
 
 =20
 common/packet.cc:46: error: expected constructor, destructor, or type
 conve=
 rsion before '*' token
 common/packet.cc:48: error: no 'int p_info::addPacket(char*)'
 member
 functi=
 on declared in class 'p_info'
 common/packet.cc: In member function 'int
 p_info::addPacket(char*)':
 common/packet.cc:50: error: 'nPkt_' was not declared in this scope
 common/packet.cc:51: error: 'initName' was not declared in this
 scope
 common/packet.cc:53: error: 'nPkt_' was not declared in this scope
 common/packet.cc:55: error: 'initName' was not declared in this
 scope
 make: *** [common/packet.o] Error 1
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$
 
 
 
 
   
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/errors-when-type-make-tp19886080p19894159.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 
 
 
 
   
 
 

-- 
View this message in context: 
http://www.nabble.com/errors-when-type-make-tp19886080p19938906.html
Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] errors when type make

2008-10-10 Thread Wang Danqi


It seems your compiler considers the declaration of char** p_info::name_ 
char* is different from the definition of  p_info::name_ [59].

You may check the version of  g++ in your system, by g++ -v

g++ 4.2.4 works well with ns-allinone-2.33


eng Rony wrote:
 
 
 
 
 Eng Rony
  
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make
 
 g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG
 -DL=
 INUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
 -DHAVE_LIBOTCL1_13=
 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H
 -D=
 HAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=3Dstd
 -DUSE_SIN=
 GLE_ADDRESS_SPACE -Drng_test -I. -I.
 -I/home/rania/ns-allinone-2.33/tclcl-1=
 ...19 -I/home/rania/ns-allinone-2.33/otcl
 -I/home/rania/ns-allinone-2.33/inc=
 lude -I/home/rania/ns-allinone-2.33/include -I/usr/include/pcap -I./tcp
 -I.=
 /sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile
 -I.=
 /trace -I./routing -I./tools -I./classifier -I./mcast
 -I./diffusion3/lib/ma=
 in -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns
 -I./diffusion=
 3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o
 commo=
 n/packet.o common/packet.cc
 common/packet.cc:44: error: conflicting declaration 'char** p_info::name_'
 common/packet.h:277: error: 'p_info::name_' has a previous declaration as
 '=
 char* p_info::name_ [59]'
 common/packet.cc:44: error: declaration of 'char* p_info::name_ [59]'
 outsi=
 de of class is not definition
 common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is not a static
 me=
 mber of 'class p_info'
 
 =20
 common/packet.cc:46: error: expected constructor, destructor, or type
 conve=
 rsion before '*' token
 common/packet.cc:48: error: no 'int p_info::addPacket(char*)' member
 functi=
 on declared in class 'p_info'
 common/packet.cc: In member function 'int p_info::addPacket(char*)':
 common/packet.cc:50: error: 'nPkt_' was not declared in this scope
 common/packet.cc:51: error: 'initName' was not declared in this scope
 common/packet.cc:53: error: 'nPkt_' was not declared in this scope
 common/packet.cc:55: error: 'initName' was not declared in this scope
 make: *** [common/packet.o] Error 1
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$
 
 
 
 
   
 
 

-- 
View this message in context: 
http://www.nabble.com/errors-when-type-make-tp19886080p19894159.html
Sent from the ns-users mailing list archive at Nabble.com.




[ns] errors when type make

2008-10-08 Thread eng Rony



Eng Rony
 
[EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make

g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DL=
INUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13=
-DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -D=
HAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=3Dstd -DUSE_SIN=
GLE_ADDRESS_SPACE -Drng_test -I. -I. -I/home/rania/ns-allinone-2.33/tclcl-1=
...19 -I/home/rania/ns-allinone-2.33/otcl -I/home/rania/ns-allinone-2.33/inc=
lude -I/home/rania/ns-allinone-2.33/include -I/usr/include/pcap -I./tcp -I.=
/sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I.=
/trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/ma=
in -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion=
3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o commo=
n/packet.o common/packet.cc
common/packet.cc:44: error: conflicting declaration 'char** p_info::name_'
common/packet.h:277: error: 'p_info::name_' has a previous declaration as '=
char* p_info::name_ [59]'
common/packet.cc:44: error: declaration of 'char* p_info::name_ [59]' outsi=
de of class is not definition
common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is not a static me=
mber of 'class p_info'

=20
common/packet.cc:46: error: expected constructor, destructor, or type conve=
rsion before '*' token
common/packet.cc:48: error: no 'int p_info::addPacket(char*)' member functi=
on declared in class 'p_info'
common/packet.cc: In member function 'int p_info::addPacket(char*)':
common/packet.cc:50: error: 'nPkt_' was not declared in this scope
common/packet.cc:51: error: 'initName' was not declared in this scope
common/packet.cc:53: error: 'nPkt_' was not declared in this scope
common/packet.cc:55: error: 'initName' was not declared in this scope
make: *** [common/packet.o] Error 1
[EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$