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

Re: [ns] ns on MacOS X



I got an account on a friend's MacOS X machine and was able to test.
After some twiddling (e.g. due to the fact that the file system used
by MacOS X is not case sensitive), I was able to get all the "support
stuff" (tcl, tk, otcl, tclcl) to compile, but unfortunately I ran into
trouble when making ns itself.
It works fine up until it tries to compile classifier-hash.cc
which generates plenty of error messages (I've included all the generated
errors in the attached file).

Anyone else have any experience with this, or from the errors generated
can guess what the error might be? (Anyone having prior experience getting
things to work on MacOS X?)

/Anders

On Sat, 11 Aug 2001, Enrique Campos-N��ez wrote:

> I tried the ns-allinone-2.1b7a package, and everything works up to the
> installation of Otcl which requires dynamic linking libraries (.so), and
> fails at this point. I too would like to know if anyone else has installed
> it succesfully.
> 
> Enrique
> 
> on 8/11/01 3:49 AM, Anders Lindgren at [email protected] wrote:
> 
> > Hello,
> > 
> > Have anybody tried running ns on MacOS X? Since it has a BSD kernel in it,
> > and I've heard that lots of programs such as e.g. emacs compile on it, I
> > thought that even ns might work.
> > 
> > So... Anybody have any experience with this?
> > 
> > /Anders
> > 
> > 
> 
c++ -c  -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR  -DNDEBUG -DHAVE_STL -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H -I. -I/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11 -I/Users/dugdale/ns/ns-allinone-2.1b8/otcl-1.0a7 -I/Users/dugdale/ns/ns-allinone-2.1b8/tk8.3.2/generic -I/Users/dugdale/ns/ns-allinone-2.1b8/tcl8.3.2/generic -o classifier-hash.o classifier-hash.cc
In file included from /Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:49,
                 from /Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tcl.h:43,
                 from classifier-hash.cc:49:
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl-mappings.h:44: template with C linkage
In file included from /Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tcl.h:43,
                 from classifier-hash.cc:49:
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:166: ANSI C++ forbids declaration `TclObject' with no type
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:166: ANSI C++ forbids data member `TclObject' with same name as enclosing class
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:166: `TclObject' declared as an `inline' field
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:166: declaration of `int TclObject::TclObject'
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:165: conflicts with previous declaration `void TclObject::TclObject(int)'
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:166: parse error before `*'
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:169: extraneous `char' ignored
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h: In function `const class TclObject * name(...)':
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:169: `name_' undeclared (first use this function)
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:169: (Each undeclared identifier is reported only once
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:169: for each function it appears in.)
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h: At top level:
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:170: declaration of C function `void name(const char *)' conflicts with
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:169: previous declaration `const class TclObject * name(...)' here
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:172: virtual outside class declaration
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:173: virtual outside class declaration
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:176: declaration of C function `void bind(const char *, TracedDouble *)' conflicts with
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:175: previous declaration `void bind(const char *, TracedInt *)' here
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:177: declaration of C function `void bind(const char *, double *)' conflicts with
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:176: previous declaration `void bind(const char *, TracedDouble *)' here
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:180: declaration of C function `void bind(const char *, unsigned int *)' conflicts with
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:177: previous declaration `void bind(const char *, double *)' here
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:181: declaration of C function `void bind(const char *, int *)' conflicts with
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:180: previous declaration `void bind(const char *, unsigned int *)' here
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:183: declaration of C function `void bind(const char *, TclObject **)' conflicts with
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:181: previous declaration `void bind(const char *, int *)' here
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:194: virtual outside class declaration
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h: In function `class TclObject * New(const char *)':
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:198: too many arguments to function `class TclObject * New(const char *)'
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:199: at this point in file
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h: At top level:
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:201: declaration of C function `class TclObject * New(const char *, const char *, ...)' conflicts with
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:198: previous declaration `class TclObject * New(const char *)' here
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:214: declaration of C function `bool delay_bind(const char *, const char *, const char *, unsigned int *, TclObject *)' conflicts with
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:213: previous declaration `bool delay_bind(const char *, const char *, const char *, double *, TclObject *)' here
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:217: declaration of C function `bool delay_bind(const char *, const char *, const char *, int *, TclObject *)' conflicts with
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:214: previous declaration `bool delay_bind(const char *, const char *, const char *, unsigned int *, TclObject *)' here
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:219: declaration of C function `bool delay_bind(const char *, const char *, const char *, TracedInt *, TclObject *)' conflicts with
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:217: previous declaration `bool delay_bind(const char *, const char *, const char *, int *, TclObject *)' here
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:220: declaration of C function `bool delay_bind(const char *, const char *, const char *, TracedDouble *, TclObject *)' conflicts with
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:219: previous declaration `bool delay_bind(const char *, const char *, const char *, TracedInt *, TclObject *)' here
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:226: virtual outside class declaration
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:227: virtual outside class declaration
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:233: parse error before `protected'
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:237: declaration of C function `void insert(TracedVar *)' conflicts with
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:236: previous declaration `void insert(InstVar *)' here
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:251: `char * name_' used prior to declaration
classifier-hash.cc:50: parse error before `}'
In file included from classifier-hash.cc:52:
/usr/include/stdlib.h:101: declaration of C function `void abort()' conflicts with
/Users/dugdale/ns/ns-allinone-2.1b8/tclcl-1.0b11/tclcl.h:231: previous declaration `void abort(const char * = 0, ...)' here
In file included from packet.h:44,
                 from classifier-hash.cc:54:
scheduler.h:77: confused by earlier errors, bailing out
make: *** [classifier-hash.o] Error 1