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

[ns] NS 2.1b6 : nam installation problem





Hello,
I am trying to install NS 2.1b6 on LUNIX MANDRAKE 8.0. NAM compilation fails and
an error message (file paint.h) appears. Nam version is 1.08a.
 I have already managed to install Ns 2.1b6 on another linux PC and I do not
have this problem.
Does someone know why this message appears and which modifications are necessary
to  correctly compile nam ?
thank
C�line
[email protected]

Error message when compiling nam :
rm -f netview.o; c++ -o netview.o -c -O2 -DTCL_TK  -DNDEBUG -DUSE_SHM
-DHAVE_LIBTCLCL1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H
-DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H -DHAVE_LIBZ1_1_3
-DHAVE_ZLIB_H  -I. -I../tclcl-1.0b9 -I../otcl-1.0a5 -I../tkbox/include
-I../tclbox/include -I../zlib-1.1.3  netview.ccIn file included from
netview.cc:48:paint.h:70: declaration does not declare anythingpaint.h:70: parse
error before `^'paint.h:71: semicolon missing after declaration of
`Paint'paint.h:71: parse error at null characterpaint.h: In function `Paint
*Paint::instance ()':paint.h:58: `instance_' undeclared (first use this
function)paint.h:58: (Each undeclared identifier is reported only once for
eachfunction it appears in.)paint.h: In method `_XGC *Paint::paint_to_gc
(int)':paint.h:60: `gctab_' undeclared (first use this function)paint.h: In
method `int Paint::num_gc ()':paint.h:61: `ngc_' undeclared (first use this
function)paint.h: In method `rgb *Paint::paint_to_rgb (int)':paint.h:62: `rgb_'
undeclared (first use this function)paint.h: In method `int Paint::thick
()':paint.h:68: `thick_' undeclared (first use this function)paint.h: In method
`int Paint::thin ()':paint.h:69: `thin_' undeclared (first use this
function)paint.h: At top level:paint.h:71: parse error at null
characterpaint.h:74: `Paint *instance_' used prior to declarationpaint.h:75:
`int ngc_' used prior to declarationpaint.h:77: `_XGC **gctab_' used prior to
declarationpaint.h:78: `rgb *rgb_' used prior to declarationpaint.h:79: `int
thick_' used prior to declarationpaint.h:80: `int thin_' used prior to
declarationpaint.h:83: parse error before `}'make: *** [netview.o] Erreur 1Nam
make failed! Continue ...See http://www-mash.CS.Berkeley.EDU/ns/ns-problems.html
for problemsPlease compile your nam separately.Ns-allinone package has been
installed successfully.Here are the installation places:ns:
/usr/ns/ns-allinone-2.1b6/ns-2.1b6/nsotcl:
/usr/ns/ns-allinone-2.1b6/otcl-1.0a5tclcl:
/usr/ns/ns-allinone-2.1b6/tclcl-1.0b9tcl8.0.4:
/usr/ns/ns-allinone-2.1b6/tclboxtk8.0.4:
/usr/ns/ns-allinone-2.1b6/tkboxxgraph:
/usr/ns/ns-allinone-2.1b6/xgraph-12.1gt-itm:   /usr/ns/ns-allinone-2.1b6/itm,
edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns You can delete
/usr/ns/ns-allinone-2.1b6/tcl8.0.4 and /usr/ns/ns-allinone-2.1b6/tk8.0.4 ifyou
want save your disk space