[ns] ns2.28 & gcc4.0.1

Mathieu Lacage Mathieu.Lacage at sophia.inria.fr
Thu Sep 22 02:10:36 PDT 2005


On Wed, 2005-09-21 at 19:34 +0200, Guillermo Alberdi wrote:
> Thank you very much for your help but I'm still not sure about what
> exactly should I do to be able to use your latest improvements on the
> 802.11. 
> I've downloaded the lastest ns snapshot from
> http://www.isi.edu/nsnam/dist/ns-src-snapshot.tar.gz
> but it doesnt include your 802.11 folder which is what I'm interested
>  in. Should I try to mix that release with yours (ns-2-
> snapshot-20050907-13.tar.gz) or is it somehow already included?

Ah. It is included in my own releases/snapshots. Mixing stuff is a sure
recipe for disaster.

> I've also downloaded the latest release of tclcl and otcl as you told
> me, but they seem to be the same ones which came included in the ns-
> allinone-2.28 I've been working with. Should I use the components
> included in the ns-allinone-2.28, replacing some of its folders with
> the ns, tclcl and otcl latest releases?

yes, something like that. I don't use the allinone package though so I
don't know how it works.

> I've tryed all the ways I could imagine and I still just get the same
> error:
> 
> g++ -c -Wall  -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -
> DNDEBUG -DLINU X_TCP_HEADER -DUSE_SHM -DHAVE_LIBGSLCBLAS -DHAVE_LIBGSL
> -DHAVE_GSL_GSL_VERSION_H  -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -
> DHAVE_LIBOTCL1_9 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -
> DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC
> _NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I.
> -I/usr/in clude -I/home/guille/Lacage/ns-lacage/tclcl-1.16 -
> I/home/guille/Lacage/ns-lacage /otcl-1.9 -I/home/guille/Lacage/ns-
> lacage/include -I/home/guille/Lacage/ns-lacag e/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/main -I./diffusion3/lib -
> I./diffusion3/lib/nr -I./d iffusion3/ns -I./diffusion3/filter_core -
> I./asim/ -I./qs -I./diffserv -I./80211 -I./node-common -I./simple-
> interface -I./wpan -o 80211/phy-80211.o 80211/phy-802 11.cc
> In file included from 80211/phy-80211.cc:43:
> 80211/phy-80211.h:146: error: 'uint32_t' is used as a type, but is not
> defined

uint32_t should is defined in <stdint.h>. I have no idea why you don't
get it defined on your system. You could add a #include <stdint.h> at
the top of phy-80211.h and see if it fixes the problem.

>    as a type.
> 80211/phy-80211.cc: In member function `void
> Phy80211::configureStandardA()':
> 80211/phy-80211.cc:139: error: `m_plcpHeaderLength' undeclared (first
> use this
>    function)
> 80211/phy-80211.cc:139: error: (Each undeclared identifier is reported
> only
>    once for each function it appears in.)
> make: *** [80211/phy-80211.o] Error 1

worksforme with gcc 3.4.4. gcc 4.0.1 gives me other errors though.

I have rolled a new release fixing my gcc-4.0.1 errors at ftp://ftp-
sop.inria.fr/dream/ns-80211/ns-2-snapshot-20050907-13.6.tar.gz

regards,
Mathieu
-- 



More information about the Ns-users mailing list