[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ns daily snapshot.
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
>