[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ns daily snapshot.
Hi, Haobo, thanks!
I had another prob. I think it is also sunos dependent. I copied the
error as belows:
utils.cc: At top level:
utils.cc:174: parameter `t1' has incomplete type
utils.cc:174: parameter `t2' has incomplete type
utils.cc: In function `struct timespec ts_timeadd(struct timespec, struct
timespec)':
utils.cc:174: return-type `struct timespec' is an incomplete type
utils.cc:174: new declaration `void ts_timeadd(struct timespec, struct
timespec)'
utils.h:78: ambiguates old declaration `struct timespec ts_timeadd(struct
timespec, struct timespec)'
utils.cc: In function `void ts_timeadd(struct timespec, struct timespec)':
utils.cc:175: aggregate `struct timespec ret' has incomplete type and
cannot be initialized
utils.cc:184: confused by earlier errors, bailing out
*** Error code 1
make: Fatal error: Command failed for target `utils.o'
Current working directory
/a/home/netlab1/yanyu/ns/ns-2/ns-2.1b6-current/indep-utils/webtrace-conv/ucb
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Exit 1
so it can not find the definition of timespec, I find the time.h on
SUNOS does not include type definition for timespec. but on FreeBSD
machine in the lab, I found it. so I just copied the timespec definition
from Freebsd in the utils.h. Is that the right way to go???
Thanks in advance!
yan
On Mon, 29 Nov 1999, Haobo Yu wrote:
> I think this is specific to sunos. Please add this to the logparse.h:
>
> #include "../../../config.h"
>
> It'll be fixed in tonight's snapshot.
>
> - Haobo
>
> On Sun, 28 Nov 1999, Yan Yu wrote:
>
> > Hello, all
> > when I try to "make" today's ns daily snaphsot, I got the following error:
> >
> > In file included from tr-stat.cc:24:
> > logparse.h:10: syntax error before `;'
> > logparse.h:12: syntax error before `;'
> > tr-stat.cc: In function `double lf_analyze(struct lf_entry &)':
> > tr-stat.cc:130: `struct lf_entry' has no member named `size'
> > tr-stat.cc:134: `struct lf_entry' has no member named `cid'
> > tr-stat.cc:136: `struct lf_entry' has no member named `cid'
> > tr-stat.cc:159: `struct lf_entry' has no member named `size'
> > tr-stat.cc:159: sorry, not implemented: `try_catch_expr' not supported by
> > dump_expr
> > tr-stat.cc:159: cannot convert `(operator new(unsigned int)(16) ,
> > {error})' from type `{error}' to type `URL *'
> > *** Error code 1
> > make: Fatal error: Command failed for target `tr-stat.o'
> > Current working directory
> > /a/home/netlab1/yanyu/ns/ns-2/ns-2.1b6-current/indep-utils/webtrace-conv/nlanr
> > *** Error code 1
> > make: Fatal error: Command failed for target `all-recursive'
> > Exit 1
> >
> >
> > It seems like te error is in
> > ns-home/indep-utils/webtrace-conv/nlanr/logparse.h
> >
> > I the above file as follows,
> >
> > #ifndef LOG_PARSE_H
> > #define LOG_PARSE_H
> >
> > // Parsing NLANR root cache traces
> >
> > #include <stdlib.h>
> >
> > struct lf_entry {
> > double rt; /* request arrival time */
> > u_int32_t cid; /* client address */
> > char *sid;
> > u_int32_t size; /* page size */
> > char* url; /* url. NEED to be freed by caller */
> > };
> > const int MAXBUF = 4096;
> >
> > int lf_get_next_entry(FILE *fp, lf_entry &ne);
> >
> > #endif // LOG_PARSE_H
> > ----------------------------
> > so line 10 and line 12 is two line using
> > u_int32_t ,
> > my Q is is that a standard data type, Does it need to include other files
> > that define it?
> >
> > Thanks in advance,
> > Regards,
> > yan
> >
>