Mailing List Archive

varnishncsa
Hi,

thx for the quick intro into the world of gdb today, it helped me make
varnishncsa more robust (found a cornercase).

In all modesty I think I can say that varnishncsa might be getting darn
close to alpha stage soon, but I am experiencing a major bug/designflaw
somewhere, that hopefully can be fixed pretty easily.

The result of this bug is something like this:

85.167.168.159 - - [12/Sep/2006:21:44:06 +0200 "GET
/grafikk/frontbilder/126179.jpg HTTP/1.1" 200 2532
"http://www.vg.no/sport/fotball/ligaer/index.hbs?liga=england1div"
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322; .NET CLR 2.0.50727)"

80.213.127.56 - - [12/Sep/2006:21:44:32 +0200 "" 0 0 "-" "-"

Notice that varnishsncsa halted for 26 seconds. So something in the SHM
loglines I read, is causing major problems for the logger.

The only way to fix it is to dump out varnishlog at the same time I run
varnishncsa and compair notes to see whats causing it.

This isn't a req for help, merly a state-of-code for varnishncsa.

Also, I will need a base64 decoder soon to make varnishncsa follow the
NCSA standard. How would we include this in Varnish DES? Is base64
decoding part of "standard" C? Or do we import the library, or do we cut
paste the BSD licensed base64 code?

Anders Berg
varnishncsa [ In reply to ]
Hi,

thx for the quick intro into the world of gdb today, it helped me make
varnishncsa more robust (found a cornercase).

In all modesty I think I can say that varnishncsa might be getting darn
close to alpha stage soon, but I am experiencing a major bug/designflaw
somewhere, that hopefully can be fixed pretty easily.

The result of this bug is something like this:

85.167.168.159 - - [12/Sep/2006:21:44:06 +0200 "GET
/grafikk/frontbilder/126179.jpg HTTP/1.1" 200 2532
"http://www.vg.no/sport/fotball/ligaer/index.hbs?liga=england1div"
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322; .NET CLR 2.0.50727)"

80.213.127.56 - - [12/Sep/2006:21:44:32 +0200 "" 0 0 "-" "-"

Notice that varnishsncsa halted for 26 seconds. So something in the SHM
loglines I read, is causing major problems for the logger.

The only way to fix it is to dump out varnishlog at the same time I run
varnishncsa and compair notes to see whats causing it.

This isn't a req for help, merly a state-of-code for varnishncsa.

Also, I will need a base64 decoder soon to make varnishncsa follow the
NCSA standard. How would we include this in Varnish DES? Is base64
decoding part of "standard" C? Or do we import the library, or do we cut
paste the BSD licensed base64 code?

Anders Berg
varnishncsa [ In reply to ]
In message <1511.193.69.165.4.1158090953.squirrel at denise.vg.no>, "Anders Berg"
writes:
>Hi,
>
>thx for the quick intro into the world of gdb today, it helped me make
>varnishncsa more robust (found a cornercase).

I've included a flexelint output below, there may be more you
want to look at. You can get more info about the messages
at www.gimpel.com. A fair number of them are likely to be false alarms.


137 Total
65 115_Error
44 755_Info
10 409_Warning
5 560_Warning
5 529_Warning
4 550_Warning
1 725_Info
1 719_Info
1 715_Info
1 551_Warning
FlexeLint for C/C++ (Unix) Vers. 8.00u, Copyright Gimpel Software 1985-2006

--- Module: varnishncsa.c (C)
_
#... __attribute__ ((noreturn))
void vdb_panic(const char *, ...) V_DEAD;
../../include/varnishapi.h 27 Error 10: Expecting ';'
_
};
varnishncsa.c 54 Error 19: Useless Declaration
_
static struct logline ll[65536];
varnishncsa.c 63 Error 88: Symbol 'll' is an array of empty elements
_
}
varnishncsa.c 114 Warning 529: Symbol 'tmpPtrc' (line 87) not subsequently
referenced
varnishncsa.c 87 Info 830: Location cited in prior message
_
}
varnishncsa.c 114 Warning 529: Symbol 'j' (line 91) not subsequently
referenced
varnishncsa.c 91 Info 830: Location cited in prior message
_
tmpPtr = strchr(p + 4, ' ');
varnishncsa.c 157 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
j = strlen(p + 4) - strlen(tmpPtr); // length of IP
varnishncsa.c 158 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
varnishncsa.c 158 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
strncpy(ll[u].df_h, p + 4, j);
varnishncsa.c 159 Error 115: struct/union not defined
varnishncsa.c 159 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 159 Error 64: Type mismatch (arg. no. 2) (ptrs to
qualification,signed/unsigned)
_
ll[u].df_h[j] = '\0'; // put on a NULL at end of buffer.
varnishncsa.c 160 Error 115: struct/union not defined
varnishncsa.c 160 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 160 Warning 409: Expecting a pointer or array
varnishncsa.c 160 Error 63: Expected an lvalue
_
vsb_bcat(ob[u], p + 4, strlen(p + 4));
varnishncsa.c 176 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
vsb_bcat(ob[u], p + 4, strlen(p + 4));
varnishncsa.c 181 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
vsb_bcat(ob[u], p + 4, strlen(p + 4));
varnishncsa.c 186 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
ll[u].bogus_req = 1;
varnishncsa.c 193 Error 115: struct/union not defined
varnishncsa.c 193 Error 40: Undeclared identifier 'bogus_req'
varnishncsa.c 193 Error 63: Expected an lvalue
_
break;
varnishncsa.c 195 Info 725: Expected positive indentation from line 148
varnishncsa.c 148 Info 830: Location cited in prior message
_
vsb_bcat(ob[u], p + 4, strlen(p + 4));
varnishncsa.c 200 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
vsb_bcat(ob[u], p + 4, strlen(p + 4));
varnishncsa.c 207 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
ll[u].df_s = strdup(p + 4);
varnishncsa.c 213 Error 115: struct/union not defined
varnishncsa.c 213 Error 40: Undeclared identifier 'df_s'
varnishncsa.c 213 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
varnishncsa.c 213 Error 63: Expected an lvalue
_
ll[u].df_sfini = 1;
varnishncsa.c 214 Error 115: struct/union not defined
varnishncsa.c 214 Error 40: Undeclared identifier 'df_sfini'
varnishncsa.c 214 Error 63: Expected an lvalue
_
ll[u].df_U = strdup(p + 4);
varnishncsa.c 225 Error 115: struct/union not defined
varnishncsa.c 225 Error 40: Undeclared identifier 'df_U'
varnishncsa.c 225 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
varnishncsa.c 225 Error 63: Expected an lvalue
_
ll[u].df_U = ll[u].df_U + 12;
varnishncsa.c 228 Error 115: struct/union not defined
varnishncsa.c 228 Error 40: Undeclared identifier 'df_U'
varnishncsa.c 228 Error 115: struct/union not defined
varnishncsa.c 228 Error 40: Undeclared identifier 'df_U'
varnishncsa.c 228 Error 63: Expected an lvalue
_
ll[u].df_Ufini = 1;
varnishncsa.c 229 Error 115: struct/union not defined
varnishncsa.c 229 Error 40: Undeclared identifier 'df_Ufini'
varnishncsa.c 229 Error 63: Expected an lvalue
_
ll[u].df_R = strdup(p + 4);
varnishncsa.c 232 Error 115: struct/union not defined
varnishncsa.c 232 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 232 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
varnishncsa.c 232 Error 63: Expected an lvalue
_
ll[u].df_R = ll[u].df_R + 9;
varnishncsa.c 233 Error 115: struct/union not defined
varnishncsa.c 233 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 233 Error 115: struct/union not defined
varnishncsa.c 233 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 233 Error 63: Expected an lvalue
_
ll[u].df_Rfini = 1;
varnishncsa.c 234 Error 115: struct/union not defined
varnishncsa.c 234 Error 40: Undeclared identifier 'df_Rfini'
varnishncsa.c 234 Error 63: Expected an lvalue
_
tmpPtra = strdup(p + 4);
varnishncsa.c 243 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
ll[u].logline_time = make_timestring(tmpPtra);
varnishncsa.c 244 Error 115: struct/union not defined
varnishncsa.c 244 Error 40: Undeclared identifier 'logline_time'
varnishncsa.c 244 Error 63: Expected an lvalue
_
ll[u].df_rfini = 1;
varnishncsa.c 246 Error 115: struct/union not defined
varnishncsa.c 246 Error 40: Undeclared identifier 'df_rfini'
varnishncsa.c 246 Error 63: Expected an lvalue
_
ll[u].df_b = strdup(p + 4);
varnishncsa.c 255 Error 115: struct/union not defined
varnishncsa.c 255 Error 40: Undeclared identifier 'df_b'
varnishncsa.c 255 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
varnishncsa.c 255 Error 63: Expected an lvalue
_
ll[u].df_bfini = 1;
varnishncsa.c 256 Error 115: struct/union not defined
varnishncsa.c 256 Error 40: Undeclared identifier 'df_bfini'
varnishncsa.c 256 Error 63: Expected an lvalue
_
if (!atoi(ll[u].df_b)){
varnishncsa.c 257 Error 115: struct/union not defined
varnishncsa.c 257 Error 40: Undeclared identifier 'df_b'
_
ll[u].df_b = malloc(2);
varnishncsa.c 258 Error 115: struct/union not defined
varnishncsa.c 258 Error 40: Undeclared identifier 'df_b'
varnishncsa.c 258 Error 63: Expected an lvalue
_
ll[u].df_b[0] = '-';
varnishncsa.c 259 Error 115: struct/union not defined
varnishncsa.c 259 Error 40: Undeclared identifier 'df_b'
varnishncsa.c 259 Warning 409: Expecting a pointer or array
varnishncsa.c 259 Error 63: Expected an lvalue
_
ll[u].df_b[1] = '\0';
varnishncsa.c 260 Error 115: struct/union not defined
varnishncsa.c 260 Error 40: Undeclared identifier 'df_b'
varnishncsa.c 260 Warning 409: Expecting a pointer or array
varnishncsa.c 260 Error 63: Expected an lvalue
_
ll[u].df_hfini = 1;
varnishncsa.c 271 Error 115: struct/union not defined
varnishncsa.c 271 Error 40: Undeclared identifier 'df_hfini'
varnishncsa.c 271 Error 63: Expected an lvalue
_
if (ll[u].df_h[0] == '\0'){
varnishncsa.c 283 Error 115: struct/union not defined
varnishncsa.c 283 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 283 Warning 409: Expecting a pointer or array
_
tmpPtr = strchr(p + 4, ' ');
varnishncsa.c 286 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
j = strlen(p + 4) - strlen(tmpPtr); // length of IP
varnishncsa.c 287 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
varnishncsa.c 287 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
strncpy(ll[u].df_h, p + 4, j);
varnishncsa.c 288 Error 115: struct/union not defined
varnishncsa.c 288 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 288 Error 64: Type mismatch (arg. no. 2) (ptrs to
qualification,signed/unsigned)
_
ll[u].df_h[j] = '\0'; // put on a NULL at end of buffer.
varnishncsa.c 289 Error 115: struct/union not defined
varnishncsa.c 289 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 289 Warning 409: Expecting a pointer or array
varnishncsa.c 289 Error 63: Expected an lvalue
_
if (ll[u].df_rfini) {
varnishncsa.c 305 Error 115: struct/union not defined
varnishncsa.c 305 Error 40: Undeclared identifier 'df_rfini'
_
strftime (temp_time, 28, "[%d/%b/%Y:%X %z] ", ll[u].logline_time);
varnishncsa.c 314 Error 115: struct/union not defined
varnishncsa.c 314 Error 40: Undeclared identifier 'logline_time'
_
if (ll[u].df_h[0] == '\0' || ll[u].bogus_req){
varnishncsa.c 316 Error 115: struct/union not defined
varnishncsa.c 316 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 316 Warning 409: Expecting a pointer or array
varnishncsa.c 316 Error 115: struct/union not defined
varnishncsa.c 316 Error 40: Undeclared identifier 'bogus_req'
_
ll[u].bogus_req = 0;
varnishncsa.c 317 Error 115: struct/union not defined
varnishncsa.c 317 Error 40: Undeclared identifier 'bogus_req'
varnishncsa.c 317 Error 63: Expected an lvalue
_
printf("%s - - %s ", ll[u].df_h, temp_time );
varnishncsa.c 321 Error 115: struct/union not defined
varnishncsa.c 321 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 321 Warning 560: argument no. 2 should be a pointer
_
printf(" %s %s ", ll[u].df_s, ll[u].df_b, ll[u].df_R);
varnishncsa.c 324 Error 115: struct/union not defined
varnishncsa.c 324 Error 40: Undeclared identifier 'df_s'
varnishncsa.c 324 Error 115: struct/union not defined
varnishncsa.c 324 Error 40: Undeclared identifier 'df_b'
varnishncsa.c 324 Error 115: struct/union not defined
varnishncsa.c 324 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 324 Info 719: Too many arguments for format (1 too many)
varnishncsa.c 324 Warning 560: argument no. 2 should be a pointer
varnishncsa.c 324 Warning 560: argument no. 3 should be a pointer
_
if (ll[u].df_Rfini){
varnishncsa.c 325 Error 115: struct/union not defined
varnishncsa.c 325 Error 40: Undeclared identifier 'df_Rfini'
_
printf(" \"%s\" ", ll[u].df_R);
varnishncsa.c 326 Error 115: struct/union not defined
varnishncsa.c 326 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 326 Warning 560: argument no. 2 should be a pointer
_
if (ll[u].df_Ufini){
varnishncsa.c 332 Error 115: struct/union not defined
varnishncsa.c 332 Error 40: Undeclared identifier 'df_Ufini'
_
printf(" \"%s\" ", ll[u].df_U);
varnishncsa.c 333 Error 115: struct/union not defined
varnishncsa.c 333 Error 40: Undeclared identifier 'df_U'
varnishncsa.c 333 Warning 560: argument no. 2 should be a pointer
_
ll[u].df_rfini = 0;
varnishncsa.c 346 Error 115: struct/union not defined
varnishncsa.c 346 Error 40: Undeclared identifier 'df_rfini'
varnishncsa.c 346 Error 63: Expected an lvalue
_
if (ll[u].df_sfini){
varnishncsa.c 351 Error 115: struct/union not defined
varnishncsa.c 351 Error 40: Undeclared identifier 'df_sfini'
_
free(ll[u].df_s);
varnishncsa.c 352 Error 115: struct/union not defined
varnishncsa.c 352 Error 40: Undeclared identifier 'df_s'
_
ll[u].df_sfini = 0;
varnishncsa.c 353 Error 115: struct/union not defined
varnishncsa.c 353 Error 40: Undeclared identifier 'df_sfini'
varnishncsa.c 353 Error 63: Expected an lvalue
_
jalla = strlen(ll[u].df_s);
varnishncsa.c 355 Error 115: struct/union not defined
varnishncsa.c 355 Error 40: Undeclared identifier 'df_s'
_
if (ll[u].df_bfini){
varnishncsa.c 359 Error 115: struct/union not defined
varnishncsa.c 359 Error 40: Undeclared identifier 'df_bfini'
_
free(ll[u].df_b);
varnishncsa.c 360 Error 115: struct/union not defined
varnishncsa.c 360 Error 40: Undeclared identifier 'df_b'
_
ll[u].df_bfini = 0;
varnishncsa.c 361 Error 115: struct/union not defined
varnishncsa.c 361 Error 40: Undeclared identifier 'df_bfini'
varnishncsa.c 361 Error 63: Expected an lvalue
_
jalla = strlen(ll[u].df_b);
varnishncsa.c 363 Error 115: struct/union not defined
varnishncsa.c 363 Error 40: Undeclared identifier 'df_b'
_
if (ll[u].df_Ufini){
varnishncsa.c 368 Error 115: struct/union not defined
varnishncsa.c 368 Error 40: Undeclared identifier 'df_Ufini'
_
ll[u].df_U = ll[u].df_U - 12;
varnishncsa.c 369 Error 115: struct/union not defined
varnishncsa.c 369 Error 40: Undeclared identifier 'df_U'
varnishncsa.c 369 Error 115: struct/union not defined
varnishncsa.c 369 Error 40: Undeclared identifier 'df_U'
varnishncsa.c 369 Error 63: Expected an lvalue
_
free(ll[u].df_U);
varnishncsa.c 370 Error 115: struct/union not defined
varnishncsa.c 370 Error 40: Undeclared identifier 'df_U'
_
ll[u].df_Ufini = 0;
varnishncsa.c 371 Error 115: struct/union not defined
varnishncsa.c 371 Error 40: Undeclared identifier 'df_Ufini'
varnishncsa.c 371 Error 63: Expected an lvalue
_
ll[u].df_UN[0] = '\0';
varnishncsa.c 372 Error 115: struct/union not defined
varnishncsa.c 372 Error 40: Undeclared identifier 'df_UN'
varnishncsa.c 372 Warning 409: Expecting a pointer or array
varnishncsa.c 372 Error 63: Expected an lvalue
_
ll[u].df_U[0] = '\0';
varnishncsa.c 373 Error 115: struct/union not defined
varnishncsa.c 373 Error 40: Undeclared identifier 'df_U'
varnishncsa.c 373 Warning 409: Expecting a pointer or array
varnishncsa.c 373 Error 63: Expected an lvalue
_
jalla = strlen(ll[u].df_U);
varnishncsa.c 375 Error 115: struct/union not defined
varnishncsa.c 375 Error 40: Undeclared identifier 'df_U'
_
if (ll[u].df_Rfini){
varnishncsa.c 379 Error 115: struct/union not defined
varnishncsa.c 379 Error 40: Undeclared identifier 'df_Rfini'
_
ll[u].df_R = ll[u].df_R - 9;
varnishncsa.c 380 Error 115: struct/union not defined
varnishncsa.c 380 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 380 Error 115: struct/union not defined
varnishncsa.c 380 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 380 Error 63: Expected an lvalue
_
free(ll[u].df_R);
varnishncsa.c 381 Error 115: struct/union not defined
varnishncsa.c 381 Error 40: Undeclared identifier 'df_R'
_
ll[u].df_R[0] = '\0';
varnishncsa.c 382 Error 115: struct/union not defined
varnishncsa.c 382 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 382 Warning 409: Expecting a pointer or array
varnishncsa.c 382 Error 63: Expected an lvalue
_
ll[u].df_Rfini = 0;
varnishncsa.c 383 Error 115: struct/union not defined
varnishncsa.c 383 Error 40: Undeclared identifier 'df_Rfini'
varnishncsa.c 383 Error 63: Expected an lvalue
_
jalla = strlen(ll[u].df_R);
varnishncsa.c 385 Error 115: struct/union not defined
varnishncsa.c 385 Error 40: Undeclared identifier 'df_R'
_
if (ll[u].df_hfini) {
varnishncsa.c 415 Error 115: struct/union not defined
varnishncsa.c 415 Error 40: Undeclared identifier 'df_hfini'
_
ll[u].df_h[0] = '\0';
varnishncsa.c 419 Error 115: struct/union not defined
varnishncsa.c 419 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 419 Warning 409: Expecting a pointer or array
varnishncsa.c 419 Error 63: Expected an lvalue
_
ll[u].df_hfini = 0;
varnishncsa.c 421 Error 115: struct/union not defined
varnishncsa.c 421 Error 40: Undeclared identifier 'df_hfini'
varnishncsa.c 421 Error 63: Expected an lvalue
_
}
varnishncsa.c 428 Warning 550: Symbol 'jalla' (line 310) not accessed
varnishncsa.c 310 Info 830: Location cited in prior message
_
}
varnishncsa.c 431 Warning 529: Symbol 'jalla2' (line 133) not subsequently
referenced
varnishncsa.c 133 Info 830: Location cited in prior message
_
}
varnishncsa.c 431 Info 715: Symbol 'w_opt' (line 117) not referenced
varnishncsa.c 117 Info 830: Location cited in prior message
_
}
varnishncsa.c 431 Warning 550: Symbol 'v' (line 119) not accessed
varnishncsa.c 119 Info 830: Location cited in prior message
_
}
varnishncsa.c 431 Warning 550: Symbol 'w' (line 119) not accessed
varnishncsa.c 119 Info 830: Location cited in prior message
_
}
varnishncsa.c 431 Warning 529: Symbol 'df_b_set' (line 131) not subsequently
referenced
varnishncsa.c 131 Info 830: Location cited in prior message
_
}
varnishncsa.c 431 Warning 529: Symbol 'df_s_set' (line 130) not subsequently
referenced
varnishncsa.c 130 Info 830: Location cited in prior message
_
}
varnishncsa.c 506 Warning 550: Symbol 'u' (line 446) not accessed
varnishncsa.c 446 Info 830: Location cited in prior message

--- Wrap-up for Module: varnishncsa.c

Warning 551: Symbol 'll' (line 63, file varnishncsa.c) not accessed
varnishncsa.c 63 Info 830: Location cited in prior message

/// Start of Pass 2 ///

--- Module: varnishncsa.c (C)

/// Start of Pass 3 ///

--- Module: varnishncsa.c (C)

--- Global Wrap-up

Info 755: global macro 'VERSION' (line 150, file ../../config.h) not referenced
../../config.h 150 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_ASPRINTF' (line 5, file ../../config.h) not
referenced
../../config.h 5 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_DECL_STRERROR_R' (line 9, file ../../config.h) not
referenced
../../config.h 9 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_DLFCN_H' (line 12, file ../../config.h) not
referenced
../../config.h 12 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_INTTYPES_H' (line 21, file ../../config.h) not
referenced
../../config.h 21 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_KQUEUE' (line 24, file ../../config.h) not
referenced
../../config.h 24 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_MD5_H' (line 27, file ../../config.h) not
referenced
../../config.h 27 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_MEMORY_H' (line 30, file ../../config.h) not
referenced
../../config.h 30 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_NETINET_IN_H' (line 33, file ../../config.h) not
referenced
../../config.h 33 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_POLL' (line 36, file ../../config.h) not
referenced
../../config.h 36 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SENDFILE' (line 39, file ../../config.h) not
referenced
../../config.h 39 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SETPROCTITLE' (line 42, file ../../config.h) not
referenced
../../config.h 42 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SOCKET' (line 45, file ../../config.h) not
referenced
../../config.h 45 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SRANDOMDEV' (line 48, file ../../config.h) not
referenced
../../config.h 48 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STDDEF_H' (line 51, file ../../config.h) not
referenced
../../config.h 51 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STDINT_H' (line 54, file ../../config.h) not
referenced
../../config.h 54 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STDLIB_H' (line 57, file ../../config.h) not
referenced
../../config.h 57 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRERROR' (line 60, file ../../config.h) not
referenced
../../config.h 60 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRERROR_R' (line 63, file ../../config.h) not
referenced
../../config.h 63 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRINGS_H' (line 66, file ../../config.h) not
referenced
../../config.h 66 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRING_H' (line 69, file ../../config.h) not
referenced
../../config.h 69 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRLCAT' (line 72, file ../../config.h) not
referenced
../../config.h 72 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRLCPY' (line 75, file ../../config.h) not
referenced
../../config.h 75 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRPTIME' (line 81, file ../../config.h) not
referenced
../../config.h 81 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRUCT_SOCKADDR_SA_LEN' (line 84, file
../../config.h) not referenced
../../config.h 84 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRVIS' (line 87, file ../../config.h) not
referenced
../../config.h 87 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRVISX' (line 90, file ../../config.h) not
referenced
../../config.h 90 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SYS_SOCKET_H' (line 93, file ../../config.h) not
referenced
../../config.h 93 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SYS_STAT_H' (line 96, file ../../config.h) not
referenced
../../config.h 96 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SYS_TYPES_H' (line 99, file ../../config.h) not
referenced
../../config.h 99 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SYS_WAIT_H' (line 105, file ../../config.h) not
referenced
../../config.h 105 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_UNISTD_H' (line 108, file ../../config.h) not
referenced
../../config.h 108 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_VASPRINTF' (line 111, file ../../config.h) not
referenced
../../config.h 111 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_VIS' (line 114, file ../../config.h) not
referenced
../../config.h 114 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_VPRINTF' (line 117, file ../../config.h) not
referenced
../../config.h 117 Info 830: Location cited in prior message
Info 755: global macro 'RETSIGTYPE' (line 138, file ../../config.h) not
referenced
../../config.h 138 Info 830: Location cited in prior message
Info 755: global macro 'STDC_HEADERS' (line 141, file ../../config.h) not
referenced
../../config.h 141 Info 830: Location cited in prior message
Info 755: global macro 'PACKAGE' (line 120, file ../../config.h) not referenced
../../config.h 120 Info 830: Location cited in prior message
Info 755: global macro 'PACKAGE_BUGREPORT' (line 123, file ../../config.h) not
referenced
../../config.h 123 Info 830: Location cited in prior message
Info 755: global macro 'PACKAGE_NAME' (line 126, file ../../config.h) not
referenced
../../config.h 126 Info 830: Location cited in prior message
Info 755: global macro 'PACKAGE_STRING' (line 129, file ../../config.h) not
referenced
../../config.h 129 Info 830: Location cited in prior message
Info 755: global macro 'PACKAGE_TARNAME' (line 132, file ../../config.h) not
referenced
../../config.h 132 Info 830: Location cited in prior message
Info 755: global macro 'PACKAGE_VERSION' (line 135, file ../../config.h) not
referenced
../../config.h 135 Info 830: Location cited in prior message
Info 755: global macro 'TIME_WITH_SYS_TIME' (line 147, file ../../config.h) not
referenced
../../config.h 147 Info 830: Location cited in prior message
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
varnishncsa [ In reply to ]
In message <1511.193.69.165.4.1158090953.squirrel at denise.vg.no>, "Anders Berg"
writes:
>Hi,
>
>thx for the quick intro into the world of gdb today, it helped me make
>varnishncsa more robust (found a cornercase).

I've included a flexelint output below, there may be more you
want to look at. You can get more info about the messages
at www.gimpel.com. A fair number of them are likely to be false alarms.


137 Total
65 115_Error
44 755_Info
10 409_Warning
5 560_Warning
5 529_Warning
4 550_Warning
1 725_Info
1 719_Info
1 715_Info
1 551_Warning
FlexeLint for C/C++ (Unix) Vers. 8.00u, Copyright Gimpel Software 1985-2006

--- Module: varnishncsa.c (C)
_
#... __attribute__ ((noreturn))
void vdb_panic(const char *, ...) V_DEAD;
../../include/varnishapi.h 27 Error 10: Expecting ';'
_
};
varnishncsa.c 54 Error 19: Useless Declaration
_
static struct logline ll[65536];
varnishncsa.c 63 Error 88: Symbol 'll' is an array of empty elements
_
}
varnishncsa.c 114 Warning 529: Symbol 'tmpPtrc' (line 87) not subsequently
referenced
varnishncsa.c 87 Info 830: Location cited in prior message
_
}
varnishncsa.c 114 Warning 529: Symbol 'j' (line 91) not subsequently
referenced
varnishncsa.c 91 Info 830: Location cited in prior message
_
tmpPtr = strchr(p + 4, ' ');
varnishncsa.c 157 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
j = strlen(p + 4) - strlen(tmpPtr); // length of IP
varnishncsa.c 158 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
varnishncsa.c 158 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
strncpy(ll[u].df_h, p + 4, j);
varnishncsa.c 159 Error 115: struct/union not defined
varnishncsa.c 159 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 159 Error 64: Type mismatch (arg. no. 2) (ptrs to
qualification,signed/unsigned)
_
ll[u].df_h[j] = '\0'; // put on a NULL at end of buffer.
varnishncsa.c 160 Error 115: struct/union not defined
varnishncsa.c 160 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 160 Warning 409: Expecting a pointer or array
varnishncsa.c 160 Error 63: Expected an lvalue
_
vsb_bcat(ob[u], p + 4, strlen(p + 4));
varnishncsa.c 176 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
vsb_bcat(ob[u], p + 4, strlen(p + 4));
varnishncsa.c 181 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
vsb_bcat(ob[u], p + 4, strlen(p + 4));
varnishncsa.c 186 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
ll[u].bogus_req = 1;
varnishncsa.c 193 Error 115: struct/union not defined
varnishncsa.c 193 Error 40: Undeclared identifier 'bogus_req'
varnishncsa.c 193 Error 63: Expected an lvalue
_
break;
varnishncsa.c 195 Info 725: Expected positive indentation from line 148
varnishncsa.c 148 Info 830: Location cited in prior message
_
vsb_bcat(ob[u], p + 4, strlen(p + 4));
varnishncsa.c 200 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
vsb_bcat(ob[u], p + 4, strlen(p + 4));
varnishncsa.c 207 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
ll[u].df_s = strdup(p + 4);
varnishncsa.c 213 Error 115: struct/union not defined
varnishncsa.c 213 Error 40: Undeclared identifier 'df_s'
varnishncsa.c 213 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
varnishncsa.c 213 Error 63: Expected an lvalue
_
ll[u].df_sfini = 1;
varnishncsa.c 214 Error 115: struct/union not defined
varnishncsa.c 214 Error 40: Undeclared identifier 'df_sfini'
varnishncsa.c 214 Error 63: Expected an lvalue
_
ll[u].df_U = strdup(p + 4);
varnishncsa.c 225 Error 115: struct/union not defined
varnishncsa.c 225 Error 40: Undeclared identifier 'df_U'
varnishncsa.c 225 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
varnishncsa.c 225 Error 63: Expected an lvalue
_
ll[u].df_U = ll[u].df_U + 12;
varnishncsa.c 228 Error 115: struct/union not defined
varnishncsa.c 228 Error 40: Undeclared identifier 'df_U'
varnishncsa.c 228 Error 115: struct/union not defined
varnishncsa.c 228 Error 40: Undeclared identifier 'df_U'
varnishncsa.c 228 Error 63: Expected an lvalue
_
ll[u].df_Ufini = 1;
varnishncsa.c 229 Error 115: struct/union not defined
varnishncsa.c 229 Error 40: Undeclared identifier 'df_Ufini'
varnishncsa.c 229 Error 63: Expected an lvalue
_
ll[u].df_R = strdup(p + 4);
varnishncsa.c 232 Error 115: struct/union not defined
varnishncsa.c 232 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 232 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
varnishncsa.c 232 Error 63: Expected an lvalue
_
ll[u].df_R = ll[u].df_R + 9;
varnishncsa.c 233 Error 115: struct/union not defined
varnishncsa.c 233 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 233 Error 115: struct/union not defined
varnishncsa.c 233 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 233 Error 63: Expected an lvalue
_
ll[u].df_Rfini = 1;
varnishncsa.c 234 Error 115: struct/union not defined
varnishncsa.c 234 Error 40: Undeclared identifier 'df_Rfini'
varnishncsa.c 234 Error 63: Expected an lvalue
_
tmpPtra = strdup(p + 4);
varnishncsa.c 243 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
ll[u].logline_time = make_timestring(tmpPtra);
varnishncsa.c 244 Error 115: struct/union not defined
varnishncsa.c 244 Error 40: Undeclared identifier 'logline_time'
varnishncsa.c 244 Error 63: Expected an lvalue
_
ll[u].df_rfini = 1;
varnishncsa.c 246 Error 115: struct/union not defined
varnishncsa.c 246 Error 40: Undeclared identifier 'df_rfini'
varnishncsa.c 246 Error 63: Expected an lvalue
_
ll[u].df_b = strdup(p + 4);
varnishncsa.c 255 Error 115: struct/union not defined
varnishncsa.c 255 Error 40: Undeclared identifier 'df_b'
varnishncsa.c 255 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
varnishncsa.c 255 Error 63: Expected an lvalue
_
ll[u].df_bfini = 1;
varnishncsa.c 256 Error 115: struct/union not defined
varnishncsa.c 256 Error 40: Undeclared identifier 'df_bfini'
varnishncsa.c 256 Error 63: Expected an lvalue
_
if (!atoi(ll[u].df_b)){
varnishncsa.c 257 Error 115: struct/union not defined
varnishncsa.c 257 Error 40: Undeclared identifier 'df_b'
_
ll[u].df_b = malloc(2);
varnishncsa.c 258 Error 115: struct/union not defined
varnishncsa.c 258 Error 40: Undeclared identifier 'df_b'
varnishncsa.c 258 Error 63: Expected an lvalue
_
ll[u].df_b[0] = '-';
varnishncsa.c 259 Error 115: struct/union not defined
varnishncsa.c 259 Error 40: Undeclared identifier 'df_b'
varnishncsa.c 259 Warning 409: Expecting a pointer or array
varnishncsa.c 259 Error 63: Expected an lvalue
_
ll[u].df_b[1] = '\0';
varnishncsa.c 260 Error 115: struct/union not defined
varnishncsa.c 260 Error 40: Undeclared identifier 'df_b'
varnishncsa.c 260 Warning 409: Expecting a pointer or array
varnishncsa.c 260 Error 63: Expected an lvalue
_
ll[u].df_hfini = 1;
varnishncsa.c 271 Error 115: struct/union not defined
varnishncsa.c 271 Error 40: Undeclared identifier 'df_hfini'
varnishncsa.c 271 Error 63: Expected an lvalue
_
if (ll[u].df_h[0] == '\0'){
varnishncsa.c 283 Error 115: struct/union not defined
varnishncsa.c 283 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 283 Warning 409: Expecting a pointer or array
_
tmpPtr = strchr(p + 4, ' ');
varnishncsa.c 286 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
j = strlen(p + 4) - strlen(tmpPtr); // length of IP
varnishncsa.c 287 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
varnishncsa.c 287 Error 64: Type mismatch (arg. no. 1) (ptrs to
qualification,signed/unsigned)
_
strncpy(ll[u].df_h, p + 4, j);
varnishncsa.c 288 Error 115: struct/union not defined
varnishncsa.c 288 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 288 Error 64: Type mismatch (arg. no. 2) (ptrs to
qualification,signed/unsigned)
_
ll[u].df_h[j] = '\0'; // put on a NULL at end of buffer.
varnishncsa.c 289 Error 115: struct/union not defined
varnishncsa.c 289 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 289 Warning 409: Expecting a pointer or array
varnishncsa.c 289 Error 63: Expected an lvalue
_
if (ll[u].df_rfini) {
varnishncsa.c 305 Error 115: struct/union not defined
varnishncsa.c 305 Error 40: Undeclared identifier 'df_rfini'
_
strftime (temp_time, 28, "[%d/%b/%Y:%X %z] ", ll[u].logline_time);
varnishncsa.c 314 Error 115: struct/union not defined
varnishncsa.c 314 Error 40: Undeclared identifier 'logline_time'
_
if (ll[u].df_h[0] == '\0' || ll[u].bogus_req){
varnishncsa.c 316 Error 115: struct/union not defined
varnishncsa.c 316 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 316 Warning 409: Expecting a pointer or array
varnishncsa.c 316 Error 115: struct/union not defined
varnishncsa.c 316 Error 40: Undeclared identifier 'bogus_req'
_
ll[u].bogus_req = 0;
varnishncsa.c 317 Error 115: struct/union not defined
varnishncsa.c 317 Error 40: Undeclared identifier 'bogus_req'
varnishncsa.c 317 Error 63: Expected an lvalue
_
printf("%s - - %s ", ll[u].df_h, temp_time );
varnishncsa.c 321 Error 115: struct/union not defined
varnishncsa.c 321 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 321 Warning 560: argument no. 2 should be a pointer
_
printf(" %s %s ", ll[u].df_s, ll[u].df_b, ll[u].df_R);
varnishncsa.c 324 Error 115: struct/union not defined
varnishncsa.c 324 Error 40: Undeclared identifier 'df_s'
varnishncsa.c 324 Error 115: struct/union not defined
varnishncsa.c 324 Error 40: Undeclared identifier 'df_b'
varnishncsa.c 324 Error 115: struct/union not defined
varnishncsa.c 324 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 324 Info 719: Too many arguments for format (1 too many)
varnishncsa.c 324 Warning 560: argument no. 2 should be a pointer
varnishncsa.c 324 Warning 560: argument no. 3 should be a pointer
_
if (ll[u].df_Rfini){
varnishncsa.c 325 Error 115: struct/union not defined
varnishncsa.c 325 Error 40: Undeclared identifier 'df_Rfini'
_
printf(" \"%s\" ", ll[u].df_R);
varnishncsa.c 326 Error 115: struct/union not defined
varnishncsa.c 326 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 326 Warning 560: argument no. 2 should be a pointer
_
if (ll[u].df_Ufini){
varnishncsa.c 332 Error 115: struct/union not defined
varnishncsa.c 332 Error 40: Undeclared identifier 'df_Ufini'
_
printf(" \"%s\" ", ll[u].df_U);
varnishncsa.c 333 Error 115: struct/union not defined
varnishncsa.c 333 Error 40: Undeclared identifier 'df_U'
varnishncsa.c 333 Warning 560: argument no. 2 should be a pointer
_
ll[u].df_rfini = 0;
varnishncsa.c 346 Error 115: struct/union not defined
varnishncsa.c 346 Error 40: Undeclared identifier 'df_rfini'
varnishncsa.c 346 Error 63: Expected an lvalue
_
if (ll[u].df_sfini){
varnishncsa.c 351 Error 115: struct/union not defined
varnishncsa.c 351 Error 40: Undeclared identifier 'df_sfini'
_
free(ll[u].df_s);
varnishncsa.c 352 Error 115: struct/union not defined
varnishncsa.c 352 Error 40: Undeclared identifier 'df_s'
_
ll[u].df_sfini = 0;
varnishncsa.c 353 Error 115: struct/union not defined
varnishncsa.c 353 Error 40: Undeclared identifier 'df_sfini'
varnishncsa.c 353 Error 63: Expected an lvalue
_
jalla = strlen(ll[u].df_s);
varnishncsa.c 355 Error 115: struct/union not defined
varnishncsa.c 355 Error 40: Undeclared identifier 'df_s'
_
if (ll[u].df_bfini){
varnishncsa.c 359 Error 115: struct/union not defined
varnishncsa.c 359 Error 40: Undeclared identifier 'df_bfini'
_
free(ll[u].df_b);
varnishncsa.c 360 Error 115: struct/union not defined
varnishncsa.c 360 Error 40: Undeclared identifier 'df_b'
_
ll[u].df_bfini = 0;
varnishncsa.c 361 Error 115: struct/union not defined
varnishncsa.c 361 Error 40: Undeclared identifier 'df_bfini'
varnishncsa.c 361 Error 63: Expected an lvalue
_
jalla = strlen(ll[u].df_b);
varnishncsa.c 363 Error 115: struct/union not defined
varnishncsa.c 363 Error 40: Undeclared identifier 'df_b'
_
if (ll[u].df_Ufini){
varnishncsa.c 368 Error 115: struct/union not defined
varnishncsa.c 368 Error 40: Undeclared identifier 'df_Ufini'
_
ll[u].df_U = ll[u].df_U - 12;
varnishncsa.c 369 Error 115: struct/union not defined
varnishncsa.c 369 Error 40: Undeclared identifier 'df_U'
varnishncsa.c 369 Error 115: struct/union not defined
varnishncsa.c 369 Error 40: Undeclared identifier 'df_U'
varnishncsa.c 369 Error 63: Expected an lvalue
_
free(ll[u].df_U);
varnishncsa.c 370 Error 115: struct/union not defined
varnishncsa.c 370 Error 40: Undeclared identifier 'df_U'
_
ll[u].df_Ufini = 0;
varnishncsa.c 371 Error 115: struct/union not defined
varnishncsa.c 371 Error 40: Undeclared identifier 'df_Ufini'
varnishncsa.c 371 Error 63: Expected an lvalue
_
ll[u].df_UN[0] = '\0';
varnishncsa.c 372 Error 115: struct/union not defined
varnishncsa.c 372 Error 40: Undeclared identifier 'df_UN'
varnishncsa.c 372 Warning 409: Expecting a pointer or array
varnishncsa.c 372 Error 63: Expected an lvalue
_
ll[u].df_U[0] = '\0';
varnishncsa.c 373 Error 115: struct/union not defined
varnishncsa.c 373 Error 40: Undeclared identifier 'df_U'
varnishncsa.c 373 Warning 409: Expecting a pointer or array
varnishncsa.c 373 Error 63: Expected an lvalue
_
jalla = strlen(ll[u].df_U);
varnishncsa.c 375 Error 115: struct/union not defined
varnishncsa.c 375 Error 40: Undeclared identifier 'df_U'
_
if (ll[u].df_Rfini){
varnishncsa.c 379 Error 115: struct/union not defined
varnishncsa.c 379 Error 40: Undeclared identifier 'df_Rfini'
_
ll[u].df_R = ll[u].df_R - 9;
varnishncsa.c 380 Error 115: struct/union not defined
varnishncsa.c 380 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 380 Error 115: struct/union not defined
varnishncsa.c 380 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 380 Error 63: Expected an lvalue
_
free(ll[u].df_R);
varnishncsa.c 381 Error 115: struct/union not defined
varnishncsa.c 381 Error 40: Undeclared identifier 'df_R'
_
ll[u].df_R[0] = '\0';
varnishncsa.c 382 Error 115: struct/union not defined
varnishncsa.c 382 Error 40: Undeclared identifier 'df_R'
varnishncsa.c 382 Warning 409: Expecting a pointer or array
varnishncsa.c 382 Error 63: Expected an lvalue
_
ll[u].df_Rfini = 0;
varnishncsa.c 383 Error 115: struct/union not defined
varnishncsa.c 383 Error 40: Undeclared identifier 'df_Rfini'
varnishncsa.c 383 Error 63: Expected an lvalue
_
jalla = strlen(ll[u].df_R);
varnishncsa.c 385 Error 115: struct/union not defined
varnishncsa.c 385 Error 40: Undeclared identifier 'df_R'
_
if (ll[u].df_hfini) {
varnishncsa.c 415 Error 115: struct/union not defined
varnishncsa.c 415 Error 40: Undeclared identifier 'df_hfini'
_
ll[u].df_h[0] = '\0';
varnishncsa.c 419 Error 115: struct/union not defined
varnishncsa.c 419 Error 40: Undeclared identifier 'df_h'
varnishncsa.c 419 Warning 409: Expecting a pointer or array
varnishncsa.c 419 Error 63: Expected an lvalue
_
ll[u].df_hfini = 0;
varnishncsa.c 421 Error 115: struct/union not defined
varnishncsa.c 421 Error 40: Undeclared identifier 'df_hfini'
varnishncsa.c 421 Error 63: Expected an lvalue
_
}
varnishncsa.c 428 Warning 550: Symbol 'jalla' (line 310) not accessed
varnishncsa.c 310 Info 830: Location cited in prior message
_
}
varnishncsa.c 431 Warning 529: Symbol 'jalla2' (line 133) not subsequently
referenced
varnishncsa.c 133 Info 830: Location cited in prior message
_
}
varnishncsa.c 431 Info 715: Symbol 'w_opt' (line 117) not referenced
varnishncsa.c 117 Info 830: Location cited in prior message
_
}
varnishncsa.c 431 Warning 550: Symbol 'v' (line 119) not accessed
varnishncsa.c 119 Info 830: Location cited in prior message
_
}
varnishncsa.c 431 Warning 550: Symbol 'w' (line 119) not accessed
varnishncsa.c 119 Info 830: Location cited in prior message
_
}
varnishncsa.c 431 Warning 529: Symbol 'df_b_set' (line 131) not subsequently
referenced
varnishncsa.c 131 Info 830: Location cited in prior message
_
}
varnishncsa.c 431 Warning 529: Symbol 'df_s_set' (line 130) not subsequently
referenced
varnishncsa.c 130 Info 830: Location cited in prior message
_
}
varnishncsa.c 506 Warning 550: Symbol 'u' (line 446) not accessed
varnishncsa.c 446 Info 830: Location cited in prior message

--- Wrap-up for Module: varnishncsa.c

Warning 551: Symbol 'll' (line 63, file varnishncsa.c) not accessed
varnishncsa.c 63 Info 830: Location cited in prior message

/// Start of Pass 2 ///

--- Module: varnishncsa.c (C)

/// Start of Pass 3 ///

--- Module: varnishncsa.c (C)

--- Global Wrap-up

Info 755: global macro 'VERSION' (line 150, file ../../config.h) not referenced
../../config.h 150 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_ASPRINTF' (line 5, file ../../config.h) not
referenced
../../config.h 5 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_DECL_STRERROR_R' (line 9, file ../../config.h) not
referenced
../../config.h 9 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_DLFCN_H' (line 12, file ../../config.h) not
referenced
../../config.h 12 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_INTTYPES_H' (line 21, file ../../config.h) not
referenced
../../config.h 21 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_KQUEUE' (line 24, file ../../config.h) not
referenced
../../config.h 24 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_MD5_H' (line 27, file ../../config.h) not
referenced
../../config.h 27 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_MEMORY_H' (line 30, file ../../config.h) not
referenced
../../config.h 30 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_NETINET_IN_H' (line 33, file ../../config.h) not
referenced
../../config.h 33 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_POLL' (line 36, file ../../config.h) not
referenced
../../config.h 36 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SENDFILE' (line 39, file ../../config.h) not
referenced
../../config.h 39 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SETPROCTITLE' (line 42, file ../../config.h) not
referenced
../../config.h 42 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SOCKET' (line 45, file ../../config.h) not
referenced
../../config.h 45 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SRANDOMDEV' (line 48, file ../../config.h) not
referenced
../../config.h 48 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STDDEF_H' (line 51, file ../../config.h) not
referenced
../../config.h 51 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STDINT_H' (line 54, file ../../config.h) not
referenced
../../config.h 54 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STDLIB_H' (line 57, file ../../config.h) not
referenced
../../config.h 57 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRERROR' (line 60, file ../../config.h) not
referenced
../../config.h 60 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRERROR_R' (line 63, file ../../config.h) not
referenced
../../config.h 63 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRINGS_H' (line 66, file ../../config.h) not
referenced
../../config.h 66 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRING_H' (line 69, file ../../config.h) not
referenced
../../config.h 69 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRLCAT' (line 72, file ../../config.h) not
referenced
../../config.h 72 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRLCPY' (line 75, file ../../config.h) not
referenced
../../config.h 75 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRPTIME' (line 81, file ../../config.h) not
referenced
../../config.h 81 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRUCT_SOCKADDR_SA_LEN' (line 84, file
../../config.h) not referenced
../../config.h 84 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRVIS' (line 87, file ../../config.h) not
referenced
../../config.h 87 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_STRVISX' (line 90, file ../../config.h) not
referenced
../../config.h 90 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SYS_SOCKET_H' (line 93, file ../../config.h) not
referenced
../../config.h 93 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SYS_STAT_H' (line 96, file ../../config.h) not
referenced
../../config.h 96 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SYS_TYPES_H' (line 99, file ../../config.h) not
referenced
../../config.h 99 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_SYS_WAIT_H' (line 105, file ../../config.h) not
referenced
../../config.h 105 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_UNISTD_H' (line 108, file ../../config.h) not
referenced
../../config.h 108 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_VASPRINTF' (line 111, file ../../config.h) not
referenced
../../config.h 111 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_VIS' (line 114, file ../../config.h) not
referenced
../../config.h 114 Info 830: Location cited in prior message
Info 755: global macro 'HAVE_VPRINTF' (line 117, file ../../config.h) not
referenced
../../config.h 117 Info 830: Location cited in prior message
Info 755: global macro 'RETSIGTYPE' (line 138, file ../../config.h) not
referenced
../../config.h 138 Info 830: Location cited in prior message
Info 755: global macro 'STDC_HEADERS' (line 141, file ../../config.h) not
referenced
../../config.h 141 Info 830: Location cited in prior message
Info 755: global macro 'PACKAGE' (line 120, file ../../config.h) not referenced
../../config.h 120 Info 830: Location cited in prior message
Info 755: global macro 'PACKAGE_BUGREPORT' (line 123, file ../../config.h) not
referenced
../../config.h 123 Info 830: Location cited in prior message
Info 755: global macro 'PACKAGE_NAME' (line 126, file ../../config.h) not
referenced
../../config.h 126 Info 830: Location cited in prior message
Info 755: global macro 'PACKAGE_STRING' (line 129, file ../../config.h) not
referenced
../../config.h 129 Info 830: Location cited in prior message
Info 755: global macro 'PACKAGE_TARNAME' (line 132, file ../../config.h) not
referenced
../../config.h 132 Info 830: Location cited in prior message
Info 755: global macro 'PACKAGE_VERSION' (line 135, file ../../config.h) not
referenced
../../config.h 135 Info 830: Location cited in prior message
Info 755: global macro 'TIME_WITH_SYS_TIME' (line 147, file ../../config.h) not
referenced
../../config.h 147 Info 830: Location cited in prior message
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.