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

Re: [ns] problem installing ns-allinone-2.1b8a



There are a few more minor problems with building nse on FreeBSD. 

netinet/ip.h requires including netinet/in_systm.h in the files:
emulate/iptap.h and emulate/tcptap.h

----------iptap.h diff-----------
41d40
< #include <netinet/in_systm.h>
----------end iptap.h diff-----------

----------tcptap.h diff-----------
41d40
< #include <netinet/in_systm.h>
----------tcptap.h diff-----------

Lastly, emulate/arp.cc has the following:

// Very very very back hack. Should put this detection in autoconf.
#ifndef ether_aton
extern "C" {
ether_addr* ether_aton(const char *);
}
#endif

ether_aton is a previously declared function in <net/ethernet.h> and
ifndef doesn't seem to be catching it. You need a workaround for it. I'm
just doing an #if 0 in my build

I'm using a FreeBSD 4.0

Shashi

On Tue, 26 Jun 2001, Padmaparna Haldar wrote:

> 
> Yes, I'll remove the .configure file.
> Probably make distclean should check for and remove .configure files too..
> Anyways, sorry for the inconvinience,
> --Padma
> 
> On Tue, 26 Jun 2001, Shashi Guruprasad wrote:
> 
> 
> > It appears that an ISI specific .configure was mistakenly packaged in the
> > ns directory of the tar.gz . After you extract the package, just cd into
> > ns2.1b8a directory and remove the file .configure . Rerun install and the
> > problem goes away.
> >
> > Could someone@ISI fix the package?
> >
> > Shashi
> >
> > On Tue, 26 Jun 2001, tigerbell wrote:
> >
> > > Dear all:
> > > I got the following errors in  Build ns-2.1b8a:
> > > ============================================================
> > > * Build ns-2.1b8a
> > > ============================================================
> > > creating cache ./config.cache
> > > Restarting: ./configure --disable-static --enable-gcc --enable-debug
> > > --enable-develop --with-tcl=/nfs/ruby/haldar/conser/tcl8.3.2.linux/ --w
> > > ith-tcl-ver=8.3 --with-tk=/nfs/ruby/haldar/conser/tk8.3.2.linux
> > > --with-tk-ver=8.3 --with-otcl=/nfs/ruby/haldar/conser/otcl
> > > --with-tclcl=/nfs
> > > /ruby/haldar/conser/tclcl  --without-defaultoptions
> > > loading cache ./config.cache
> > > checking host system type... i686-pc-linux-gnu
> > > checking target system type... i686-pc-linux-gnu
> > > checking build system type... i686-pc-linux-gnu
> > > checking for gcc... gcc
> > > checking whether the C compiler (gcc  ) works... yes
> > > checking whether the C compiler (gcc  ) is a cross-compiler... no
> > > checking whether we are using GNU C... yes
> > > checking whether gcc accepts -g... yes
> > > checking for c++... c++
> > > checking whether the C++ compiler (c++  ) works... yes
> > > checking whether the C++ compiler (c++  ) is a cross-compiler... no
> > > checking whether we are using GNU C++... yes
> > > checking whether c++ accepts -g... yes
> > > checking how to run the C preprocessor... gcc -E
> > > checking for ANSI C header files... yes
> > > checking for string.h... yes
> > > checking for main in -lXbsd... no
> > > checking for socket in -lsocket... no
> > > checking for gethostbyname in -lnsl... yes
> > > checking for dcgettext in -lintl... no
> > > checking for getnodebyname in -ldnet_stub... no
> > > checking that c++ can handle -O2... yes
> > > checking standard STL is available... yes
> > > checking for tcl.h... configure: error:
> > > /nfs/ruby/haldar/conser/tcl8.3.2.linux/ is not a directory
> > > Ns configuration failed! Exiting ...
> > >
> > > Can anyone help me with it?
> > >
> > > Thanx
> > > yingjie
> > >
> >
> >
> 
> -- 
> ------------------------------------------------
> Be true to your work, your word, and your friend.
> --Thoreau
> 
> Padmaparna Haldar
>