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

Re: [q] WFQ install problem...



Hi,
this problem is caused by two files (one in ns-2.b5, the other
in WFQ) with the same name "list.h". But the two files have
nothing to do with each other.
By applying the patch, you overwrite the original list.h in ns-2.b5.

Solution: rename WFQ's list.h (for example to wfq-list.h) and
change the include lines in the WFQ files.

Stefan Bucheli


ChoiYoungSoo wrote:

> Hi.
> i download ns-allinone.2.1b5a.tar.gz and ./install and ./validate.. no
> error.. : )
> and install WFQ patch by hand ( copy *.cc, *.h files to ns-2.1b5/ and
> patch
> and...
> cd ns-2.b5
> make clean, ./configure, make
> and following error..
>
> ----snip-----
> c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -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
> -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_0=1
> -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_0A4=1
> -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DHAVE_SBRK=1
>
> -DHAVE_STRTOQ=1 -I. -I/usr/X11R6/include  -I../tclcl-1.0b8
> -I../otcl-1.0a4
> -I/home/guru0109/program/ns-allinone-2.1b5/ns-2.1b5/../tk8.0.4/generic
> -I../tcl8.0.4/generic -o scheduler.o scheduler.cc
> In file included from packet-stamp.h:20,
>                  from packet.h:47,
>                  from scheduler.cc:46:
> antenna.h:47: `an_head' was not declared in this scope
> antenna.h:47: parse error before `)'
> antenna.h:47: warning: ANSI C++ forbids declaration `LIST_HEAD' with no
> type or storage class
> antenna.h:47: warning: initializer list being treated as compound
> expression
> antenna.h:83: parse error in method specification before `;'
> antenna.h:89: parse error before `;'
> In file included from scheduler.cc:46:
> packet.h:61: confused by earlier errors, bailing out
> *** Error code 1
> ------------------snip------------------------------------
>
> Anybody use WFQ patch using ns2.1b5? if does, pzl help me...