Build failed in Jenkins: 3.HEAD-amd64-CentOS-5.3 #2084

2012-10-11 Thread noc
See 

Changes:

[Amos Jeffries] Windows: fix error: variable 'h_error' set but not used

[Alex Rousskov] Optimization: Test faster condition first. No functionality 
changes expected.

--
[...truncated 26718 lines...]
if g++ -DHAVE_CONFIG_H  -I../../../.. -I../../../../include -I../../../../lib 
-I../../../../src -I../../../include
-I../../../../helpers/digest_auth/eDirectory  -I/usr/include/libxml2
-I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror 
-pipe -D_REENTRANT -D_FILE_OFFSET_BITS=64 -g -O2 -MT edir_ldapext.o -MD -MP -MF 
".deps/edir_ldapext.Tpo" -c -o edir_ldapext.o 
../../../../helpers/digest_auth/eDirectory/edir_ldapext.cc; \
then mv -f ".deps/edir_ldapext.Tpo" ".deps/edir_ldapext.Po"; else rm -f 
".deps/edir_ldapext.Tpo"; exit 1; fi
/bin/sh ../../../libtool --tag=CXX --mode=link g++ -I/usr/include/libxml2 -Wall 
-Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT 
-D_FILE_OFFSET_BITS=64 -g -O2  -g -o digest_edirectory_auth  digest_pw_auth.o 
ldap_backend.o edir_ldapext.o ../../../lib/libmiscencoding.la -L../../../compat 
-lcompat-squid  -lldap -llber -lcrypt -lssl -lcrypto -ldl -lm -lnsl -lresolv 
-lrt -ldl -ldl 
libtool: link: g++ -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings 
-Wcomments -Werror -pipe -D_REENTRANT -D_FILE_OFFSET_BITS=64 -g -O2 -g -o 
digest_edirectory_auth digest_pw_auth.o ldap_backend.o edir_ldapext.o  
../../../lib/.libs/libmiscencoding.a 
-L
 -lcompat-squid -lldap -llber -lcrypt -lssl -lcrypto -lm -lnsl -lresolv -lrt 
-ldl
make[4]: Leaving directory 
`
Making all in file
make[4]: Entering directory 
`
if g++ -DHAVE_CONFIG_H  -I../../../.. -I../../../../include -I../../../../lib 
-I../../../../src -I../../../include-I../../../../helpers/digest_auth/file  
-I/usr/include/libxml2-I/usr/include/libxml2 -Wall -Wpointer-arith 
-Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -D_FILE_OFFSET_BITS=64 -g 
-O2 -MT digest_file_auth.o -MD -MP -MF ".deps/digest_file_auth.Tpo" -c -o 
digest_file_auth.o ../../../../helpers/digest_auth/file/digest_file_auth.cc; \
then mv -f ".deps/digest_file_auth.Tpo" ".deps/digest_file_auth.Po"; 
else rm -f ".deps/digest_file_auth.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H  -I../../../.. -I../../../../include -I../../../../lib 
-I../../../../src -I../../../include-I../../../../helpers/digest_auth/file  
-I/usr/include/libxml2-I/usr/include/libxml2 -Wall -Wpointer-arith 
-Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -D_FILE_OFFSET_BITS=64 -g 
-O2 -MT text_backend.o -MD -MP -MF ".deps/text_backend.Tpo" -c -o 
text_backend.o ../../../../helpers/digest_auth/file/text_backend.cc; \
then mv -f ".deps/text_backend.Tpo" ".deps/text_backend.Po"; else rm -f 
".deps/text_backend.Tpo"; exit 1; fi
/bin/sh ../../../libtool --tag=CXX --mode=link g++ -I/usr/include/libxml2 -Wall 
-Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT 
-D_FILE_OFFSET_BITS=64 -g -O2  -g -o digest_file_auth  digest_file_auth.o 
text_backend.o ../../../lib/libmisccontainers.la 
../../../lib/libmiscencoding.la -L../../../compat -lcompat-squid  -lcrypt -lssl 
-lcrypto -ldl -lm -lnsl -lresolv -lrt -ldl -ldl 
libtool: link: g++ -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings 
-Wcomments -Werror -pipe -D_REENTRANT -D_FILE_OFFSET_BITS=64 -g -O2 -g -o 
digest_file_auth digest_file_auth.o text_backend.o  
../../../lib/.libs/libmisccontainers.a ../../../lib/.libs/libmiscencoding.a 
-L
 -lcompat-squid -lcrypt -lssl -lcrypto -lm -lnsl -lresolv -lrt -ldl
make[4]: Leaving directory 
`
make[4]: Entering directory 
`
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory 
`
make[3]: Leaving directory 
`
Making all in external_acl
make[3]: Entering directory 
`

Re: [PATCH] meta_header option

2012-10-11 Thread Alex Rousskov
On 10/11/2012 07:32 PM, Amos Jeffries wrote:
> On 12/10/2012 4:05 a.m., Alex Rousskov wrote:
>> On 10/11/2012 05:21 AM, Amos Jeffries wrote:

>>> If you can avoid calling the
>>> list of key:pair entries *headers* it would be less confusing.

>> Here are a few other naming options to consider, from the ones I like
>> the most to the ones I like the least:
>>
>> 1a) annotation key value ...
>>  logformat ... %{key}annotation ...
>>
>> 1b) note key value ...
>>  logformat ... %{key}note ...
>>
>> 2a) marker key value ...
>>  logformat ... %{key}marker ...
>>
>> 2b) mark key value ...
>>  logformat ... %{key}mark ...
>>
>> 3)  stamp key value ...
>>  logformat ... %{key}stamp ...
>>
>> 4)  label key value ...
>>  logformat ... %{key}label
>>
>> 5)  info key value ...
>>  logformat ... %{key}info
>>
>>
>> All of which can be prefixed with "meta_", "xaction_", or "master_"
>> prefixes (with varying degree of appropriateness).


> Of the above I like "label" or "note".

If there are no other opinions, I suggest "note" (short for annotation).


> I got a request to implement stacked tags in external ACL the other day.
> It would seem they are suited well for combining with this feature. How
> about "tag" or "meta_tag" ?

I assume stacked tags are key:value pairs. Today, tags are essentially
anonymous or valueless annotations (values without keys or keys without
values). Please correct me if I am wrong.

The reason I did not include "tag" in the above names is because I was
worried that preserving compatibility with the existing tags will create
a mess. Here are a few potentially messy areas:

* The existing tag ACL syntax is not easily extensible to something that
works with key:value pairs. If we make the first argument after the
"tag" type a key name, old configs with multiple tags will continue to
work (but will work incorrectly). Most likely, we will need a new ACL
type name anyway.

* I am not sure how to deal with "class 5" delay pools grouping if tags
have keys and values. Group by keys only? Group by both keys and values?
May have to be configurable.

* Old tag ACLs in existing configs may suddenly and unexpectedly start
matching new annotations, especially if those new annotations have empty
values.

* Some admins do not want annotations to appear in ICAP and eCAP
requests without their explicit control. The proposed implementation
takes care of that because annotations are only added after adaptation
is completed (and there is adaptation_meta for the opposite cases). If
old tags become annotations, we would need to preserve that status quo
for now. (Eventually, I am sure that somebody will need to send some
tags/annotations to adaptation services, creating more problems.)


Overall, I agree that it would be nice to have one name/concept for all
annotations, but reusing "tag"s may create a mess that will either
significantly delay the new feature acceptance (folks will keep asking
for new ways to resolve conflicts with the old tags) or will cause
upgrade problems. It may be better to leave "tag"s to old configs and
standardize on new "note"s going forward (e.g., add them to external
ACLs). What do you think?


Thank you,

Alex.



Build failed in Jenkins: 3.HEAD-ppc-MacOS-Leopard #56

2012-10-11 Thread noc
See 

--
[...truncated 3791 lines...]
-e 
"s%[@]DEFAULT_MIME_TABLE[@]%
 \
-e 
"s%[@]DEFAULT_DNSSERVER[@]%
 dnsserver | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_SSL_CRTD[@]%
 ssl_crtd  | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_UNLINKD[@]%
 unlinkd | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_PINGER[@]%
 pinger | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_DISKD[@]%
 diskd | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_LOGFILED[@]%
 log_file_daemon | sed 's,x,x,;s/$//'`%g;" \
-e 
"s%[@]DEFAULT_CACHE_LOG[@]%
 \
-e 
"s%[@]DEFAULT_ACCESS_LOG[@]%
 \
-e 
"s%[@]DEFAULT_STORE_LOG[@]%
 \
-e 
"s%[@]DEFAULT_PID_FILE[@]%
 \
-e 
"s%[@]DEFAULT_NETDB_FILE[@]%
 \
-e 
"s%[@]DEFAULT_SWAP_DIR[@]%
 \
-e 
"s%[@]DEFAULT_SSL_DB_DIR[@]%
 \
-e 
"s%[@]DEFAULT_ICON_DIR[@]%
 \
-e 
"s%[@]DEFAULT_CONFIG_DIR[@]%
 \
-e 
"s%[@]DEFAULT_ERROR_DIR[@]%
 \
-e 
"s%[@]DEFAULT_PREFIX[@]%
 \
-e "s%[@]DEFAULT_HOSTS[@]%/etc/hosts%g" \
-e "s%[@]SQUID[@]%SQUID\ 3.HEAD-BZR%g" \
< ../../src/cf.data.pre >cf.data
g++ -o cf_gen ../../src/cf_gen.cc -I../../src -I../include/ -I../src
./cf_gen cf.data ../../src/cf.data.depend
awk -f ../../src/mk-string-arrays.awk < ../../src/err_type.h > err_type.cc || 
(/bin/rm -f -f err_type.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/err_detail_type.h | sed 
's/ERR_DETAIL_//' > err_detail_type.cc || (/bin/rm -f -f err_detail_type.cc && 
exit 1)
awk -f ../../src/mk-globals-c.awk < ../../src/globals.h > globals.cc || 
(/bin/rm -f -f globals.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/hier_code.h > hier_code.cc || 
(/bin/rm -f -f hier_code.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/icp_opcode.h > icp_opcode.cc 
|| (/bin/rm -f -f icp_opcode.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/lookup_t.h > lookup_t.cc || 
(/bin/rm -f -f lookup_t.cc && exit 1)
/bin/sh ../../src/repl_modules.sh lru > repl_modules.cc
make  all-recursive
Making all in base
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  
-I../../.. -I../../../include -I../../../lib -I../../../src -I../../include 
-I/opt/local/include  -I../../../libltdl   -Wall -Wpointer-arith 
-Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT AsyncCall.lo 
-MD -MP -MF .deps/AsyncCall.Tpo -c -o AsyncCall.lo 
../../../src/base/AsyncCall.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I../../.. -I../../../include 
-I../../../lib -I../../../src -I../../include -I/opt/local/include 
-I../../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror 
-pipe -D_REENTRANT -g -O2 

Build failed in Jenkins: 3.HEAD-amd64-opensuse #235

2012-10-11 Thread noc
See 

Changes:

[Amos Jeffries] Bug 3655: pinning failure breaks NTLM and Negotiate 
authentication

--
[...truncated 7169 lines...]
Testing ../../src/mime.h ...Ok.
Testing ../../src/ftp.h ...Ok.
Testing ../../src/LoadableModules.h ...Ok.
Testing ../../src/stmem.h ...Ok.
Testing ../../src/CompositePoolNode.h ...Ok.
Testing ../../src/Server.h ...Ok.
Testing ../../src/wccp.h ...Ok.
Testing ../../src/DelayTagged.h ...Ok.
Testing ../../src/swap_log_op.h ...Ok.
Testing ../../src/HierarchyLogEntry.h ...Ok.
Testing ../../src/StoreClient.h ...Ok.
Testing ../../src/HttpHeaderMask.h ...Ok.
Testing ../../src/unlinkd.h ...Ok.
Testing ../../src/client_side_reply.h ...Ok.
Testing ../../src/StoreMetaSTDLFS.h ...Ok.
Testing ../../src/defines.h ...Ok.
Testing ../../src/multicast.h ...Ok.
Testing ../../src/store_rebuild.h ...Ok.
Testing ../../src/HttpHeaderTools.h ...Ok.
Testing ../../src/RemovalPolicy.h ...Ok.
Testing ../../src/mem_node.h ...Ok.
Testing ../../src/helper.h ...Ok.
Testing ../../src/DelaySpec.h ...Ok.
Testing ../../src/CachePeerDomainList.h ...Ok.
Testing ../../src/AsyncEngine.h ...Ok.
Testing ../../src/StoreSwapLogData.h ...Ok.
Testing ../../src/HttpMsg.h ...Ok.
Testing ../../src/mime_header.h ...Ok.
Testing ../../src/StoreFileSystem.h ...Ok.
Testing ../../src/ICP.h ...Ok.
Testing ../../src/DnsLookupDetails.h ...Ok.
Testing ../../src/peer_userhash.h ...Ok.
Testing ../../src/cache_cf.h ...Ok.
Testing ../../src/Debug.h ...Ok.
Testing ../../src/ExternalACLEntry.h ...Ok.
Testing ../../src/CpuAffinityMap.h ...Ok.
Testing ../../src/HttpRequestMethod.h ...Ok.
Testing ../../src/SquidString.h ...Ok.
Testing ../../src/StoreMetaVary.h ...Ok.
Testing ../../src/fde.h ...Ok.
Testing ../../src/HttpHdrSc.h ...Ok.
Testing ../../src/AuthReg.h ...Ok.
Testing ../../src/StoreMetaObjSize.h ...Ok.
Testing ../../src/NullDelayId.h ...Ok.
Testing ../../src/YesNoNone.h ...Ok.
Testing ../../src/ClientDelayConfig.h ...Ok.
Testing ../../src/NeighborTypeDomainList.h ...Ok.
Testing ../../src/err_type.h ...Ok.
Testing ../../src/HttpHeaderRange.h ...Ok.
Testing ../../src/ExternalACL.h ...Ok.
Testing ../../src/forward.h ...Ok.
Testing ../../src/HttpControlMsg.h ...Ok.
Testing ../../src/whois.h ...Ok.
Testing ../../src/disk.h ...Ok.
Testing ../../src/repl_modules.h ...Ok.
Testing ../../src/StrList.h ...Ok.
Testing ../../src/SquidConfig.h ...Ok.
Testing ../../src/DiskIO/ReadRequest.h ...Ok.
Testing ../../src/DiskIO/DiskIOModule.h ...Ok.
Testing ../../src/DiskIO/DiskIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskFile.h ...Ok.
Testing ../../src/DiskIO/WriteRequest.h ...Ok.
Testing ../../src/DiskIO/IORequestor.h ...Ok.
Testing ../../src/DiskIO/Mmapped/MmappedFile.h ...Ok.
Testing ../../src/DiskIO/Mmapped/MmappedDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/Mmapped/MmappedIOStrategy.h ...Ok.
Testing ../../src/DiskIO/AIO/AIODiskFile.h ...Ok.
Testing ../../src/DiskIO/AIO/async_io.h ...Ok.
Testing ../../src/DiskIO/AIO/aio_win32.h ...Ok.
Testing ../../src/DiskIO/AIO/AIODiskIOModule.h ...Ok.
Testing ../../src/DiskIO/AIO/AIODiskIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreadsDiskFile.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/CommIO.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreads.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreadsIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreadsDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/IpcIo/IpcIoFile.h ...Ok.
Testing ../../src/DiskIO/IpcIo/IpcIoDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/IpcIo/IpcIoIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskdFile.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/diomsg.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskdIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskdAction.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/Blocking/BlockingIOStrategy.h ...Ok.
Testing ../../src/DiskIO/Blocking/BlockingFile.h ...Ok.
Testing ../../src/DiskIO/Blocking/BlockingDiskIOModule.h ...Ok.
..
OK (2)
PASS: tests/testACLMaxUserIP
.
OK (1)
PASS: tests/testBoilerplate
..
OK (2)
PASS: tests/testCacheManager
.
OK (1)
PASS: tests/testDiskIO
..Actual Text:
Last event to run: last event

Operation\tNext Execution \tWeight\tCallback Valid?
test event   \t0.000 sec\t0\t N/A
test event2  \t0.000 sec\t0\t N/A


OK (6)
PASS: tests/testEvent
...
OK (3)
PASS: tests/testEventLoop
PASS: tests/test_http_range
.
OK (5)
PASS: tests/testHttpParser
.SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: Sta

Re: [PATCH] meta_header option

2012-10-11 Thread Amos Jeffries

On 12/10/2012 4:05 a.m., Alex Rousskov wrote:

On 10/11/2012 05:21 AM, Amos Jeffries wrote:

On 11/10/2012 9:39 p.m., Tsantilas Christos wrote:

If there is not any objection I will commit this patch to trunk


On 09/19/2012 06:46 PM, Tsantilas Christos wrote:

Hi all,

This patch adds meta_header option to squid.conf. It is similar to
adaptation_meta but is applied after all adaptation and before logging.
Values of named meta headers can be logged using %{name}meta_header
macros.

  meta_header name value acl ...
  logformat myFormat ... %{name}meta_header ...

This option may be initially used to log custom information about the
master transaction. For example, an admin may configure Squid to log
which "user group" the transaction belongs to, where "user group" will
be determined based on a set of ACLs and not [just] authentication
information.

 From user point of view, adaptation_header sets/implies meta_header
(i.e., setting adaptation_header is sufficient to be able to log it
using %meta_header) but the meta_header option itself (if any) is
evaluated later, so it has no effect on ICAP headers.

This is a Measurement Factory project


Thank you for your explanation earlier. If you can avoid calling the
list of key:pair entries *headers* it would be less confusing.


Here are a few other naming options to consider, from the ones I like
the most to the ones I like the least:

1a) annotation key value ...
 logformat ... %{key}annotation ...

1b) note key value ...
 logformat ... %{key}note ...

2a) marker key value ...
 logformat ... %{key}marker ...

2b) mark key value ...
 logformat ... %{key}mark ...

3)  stamp key value ...
 logformat ... %{key}stamp ...

4)  label key value ...
 logformat ... %{key}label

5)  info key value ...
 logformat ... %{key}info


All of which can be prefixed with "meta_", "xaction_", or "master_"
prefixes (with varying degree of appropriateness).

All of these names have some problems, as does the original meta_header,
of course.


Do you like any of the above? Any better ideas?


Of the above I like "label" or "note".

I got a request to implement stacked tags in external ACL the other day. 
It would seem they are suited well for combining with this feature. How 
about "tag" or "meta_tag" ?



Amos


Build failed in Jenkins: 3.HEAD-ppc-MacOS-Leopard #55

2012-10-11 Thread noc
See 

--
[...truncated 3791 lines...]
-e 
"s%[@]DEFAULT_MIME_TABLE[@]%
 \
-e 
"s%[@]DEFAULT_DNSSERVER[@]%
 dnsserver | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_SSL_CRTD[@]%
 ssl_crtd  | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_UNLINKD[@]%
 unlinkd | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_PINGER[@]%
 pinger | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_DISKD[@]%
 diskd | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_LOGFILED[@]%
 log_file_daemon | sed 's,x,x,;s/$//'`%g;" \
-e 
"s%[@]DEFAULT_CACHE_LOG[@]%
 \
-e 
"s%[@]DEFAULT_ACCESS_LOG[@]%
 \
-e 
"s%[@]DEFAULT_STORE_LOG[@]%
 \
-e 
"s%[@]DEFAULT_PID_FILE[@]%
 \
-e 
"s%[@]DEFAULT_NETDB_FILE[@]%
 \
-e 
"s%[@]DEFAULT_SWAP_DIR[@]%
 \
-e 
"s%[@]DEFAULT_SSL_DB_DIR[@]%
 \
-e 
"s%[@]DEFAULT_ICON_DIR[@]%
 \
-e 
"s%[@]DEFAULT_CONFIG_DIR[@]%
 \
-e 
"s%[@]DEFAULT_ERROR_DIR[@]%
 \
-e 
"s%[@]DEFAULT_PREFIX[@]%
 \
-e "s%[@]DEFAULT_HOSTS[@]%/etc/hosts%g" \
-e "s%[@]SQUID[@]%SQUID\ 3.HEAD-BZR%g" \
< ../../src/cf.data.pre >cf.data
g++ -o cf_gen ../../src/cf_gen.cc -I../../src -I../include/ -I../src
./cf_gen cf.data ../../src/cf.data.depend
awk -f ../../src/mk-string-arrays.awk < ../../src/err_type.h > err_type.cc || 
(/bin/rm -f -f err_type.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/err_detail_type.h | sed 
's/ERR_DETAIL_//' > err_detail_type.cc || (/bin/rm -f -f err_detail_type.cc && 
exit 1)
awk -f ../../src/mk-globals-c.awk < ../../src/globals.h > globals.cc || 
(/bin/rm -f -f globals.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/hier_code.h > hier_code.cc || 
(/bin/rm -f -f hier_code.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/icp_opcode.h > icp_opcode.cc 
|| (/bin/rm -f -f icp_opcode.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/lookup_t.h > lookup_t.cc || 
(/bin/rm -f -f lookup_t.cc && exit 1)
/bin/sh ../../src/repl_modules.sh lru > repl_modules.cc
make  all-recursive
Making all in base
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  
-I../../.. -I../../../include -I../../../lib -I../../../src -I../../include 
-I/opt/local/include  -I../../../libltdl   -Wall -Wpointer-arith 
-Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT AsyncCall.lo 
-MD -MP -MF .deps/AsyncCall.Tpo -c -o AsyncCall.lo 
../../../src/base/AsyncCall.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I../../.. -I../../../include 
-I../../../lib -I../../../src -I../../include -I/opt/local/include 
-I../../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror 
-pipe -D_REENTRANT -g -O2 

Build failed in Jenkins: 3.HEAD-amd64-opensuse #234

2012-10-11 Thread noc
See 

Changes:

[Henrik Nordstrom] Correct --enable-build-info on out-of-tree builds

bzr expects to be run from the source tree, not the build directory

--
[...truncated 7169 lines...]
Testing ../../src/mime.h ...Ok.
Testing ../../src/ftp.h ...Ok.
Testing ../../src/LoadableModules.h ...Ok.
Testing ../../src/stmem.h ...Ok.
Testing ../../src/CompositePoolNode.h ...Ok.
Testing ../../src/Server.h ...Ok.
Testing ../../src/wccp.h ...Ok.
Testing ../../src/DelayTagged.h ...Ok.
Testing ../../src/swap_log_op.h ...Ok.
Testing ../../src/HierarchyLogEntry.h ...Ok.
Testing ../../src/StoreClient.h ...Ok.
Testing ../../src/HttpHeaderMask.h ...Ok.
Testing ../../src/unlinkd.h ...Ok.
Testing ../../src/client_side_reply.h ...Ok.
Testing ../../src/StoreMetaSTDLFS.h ...Ok.
Testing ../../src/defines.h ...Ok.
Testing ../../src/multicast.h ...Ok.
Testing ../../src/store_rebuild.h ...Ok.
Testing ../../src/HttpHeaderTools.h ...Ok.
Testing ../../src/RemovalPolicy.h ...Ok.
Testing ../../src/mem_node.h ...Ok.
Testing ../../src/helper.h ...Ok.
Testing ../../src/DelaySpec.h ...Ok.
Testing ../../src/CachePeerDomainList.h ...Ok.
Testing ../../src/AsyncEngine.h ...Ok.
Testing ../../src/StoreSwapLogData.h ...Ok.
Testing ../../src/HttpMsg.h ...Ok.
Testing ../../src/mime_header.h ...Ok.
Testing ../../src/StoreFileSystem.h ...Ok.
Testing ../../src/ICP.h ...Ok.
Testing ../../src/DnsLookupDetails.h ...Ok.
Testing ../../src/peer_userhash.h ...Ok.
Testing ../../src/cache_cf.h ...Ok.
Testing ../../src/Debug.h ...Ok.
Testing ../../src/ExternalACLEntry.h ...Ok.
Testing ../../src/CpuAffinityMap.h ...Ok.
Testing ../../src/HttpRequestMethod.h ...Ok.
Testing ../../src/SquidString.h ...Ok.
Testing ../../src/StoreMetaVary.h ...Ok.
Testing ../../src/fde.h ...Ok.
Testing ../../src/HttpHdrSc.h ...Ok.
Testing ../../src/AuthReg.h ...Ok.
Testing ../../src/StoreMetaObjSize.h ...Ok.
Testing ../../src/NullDelayId.h ...Ok.
Testing ../../src/YesNoNone.h ...Ok.
Testing ../../src/ClientDelayConfig.h ...Ok.
Testing ../../src/NeighborTypeDomainList.h ...Ok.
Testing ../../src/err_type.h ...Ok.
Testing ../../src/HttpHeaderRange.h ...Ok.
Testing ../../src/ExternalACL.h ...Ok.
Testing ../../src/forward.h ...Ok.
Testing ../../src/HttpControlMsg.h ...Ok.
Testing ../../src/whois.h ...Ok.
Testing ../../src/disk.h ...Ok.
Testing ../../src/repl_modules.h ...Ok.
Testing ../../src/StrList.h ...Ok.
Testing ../../src/SquidConfig.h ...Ok.
Testing ../../src/DiskIO/ReadRequest.h ...Ok.
Testing ../../src/DiskIO/DiskIOModule.h ...Ok.
Testing ../../src/DiskIO/DiskIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskFile.h ...Ok.
Testing ../../src/DiskIO/WriteRequest.h ...Ok.
Testing ../../src/DiskIO/IORequestor.h ...Ok.
Testing ../../src/DiskIO/Mmapped/MmappedFile.h ...Ok.
Testing ../../src/DiskIO/Mmapped/MmappedDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/Mmapped/MmappedIOStrategy.h ...Ok.
Testing ../../src/DiskIO/AIO/AIODiskFile.h ...Ok.
Testing ../../src/DiskIO/AIO/async_io.h ...Ok.
Testing ../../src/DiskIO/AIO/aio_win32.h ...Ok.
Testing ../../src/DiskIO/AIO/AIODiskIOModule.h ...Ok.
Testing ../../src/DiskIO/AIO/AIODiskIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreadsDiskFile.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/CommIO.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreads.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreadsIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreadsDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/IpcIo/IpcIoFile.h ...Ok.
Testing ../../src/DiskIO/IpcIo/IpcIoDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/IpcIo/IpcIoIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskdFile.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/diomsg.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskdIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskdAction.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/Blocking/BlockingIOStrategy.h ...Ok.
Testing ../../src/DiskIO/Blocking/BlockingFile.h ...Ok.
Testing ../../src/DiskIO/Blocking/BlockingDiskIOModule.h ...Ok.
..
OK (2)
PASS: tests/testACLMaxUserIP
.
OK (1)
PASS: tests/testBoilerplate
..
OK (2)
PASS: tests/testCacheManager
.
OK (1)
PASS: tests/testDiskIO
..Actual Text:
Last event to run: last event

Operation\tNext Execution \tWeight\tCallback Valid?
test event   \t0.000 sec\t0\t N/A
test event2  \t0.000 sec\t0\t N/A


OK (6)
PASS: tests/testEvent
...
OK (3)
PASS: tests/testEventLoop
PASS: tests/test_http_range
.
OK (5)
PASS: tests/testHttpParser
.SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
S

Re: Squid code analysis using Coverity

2012-10-11 Thread Henrik Nordström
tor 2012-10-11 klockan 23:23 +0200 skrev Kinkie:

> Please once you're done, please share the recipe so I can try to hook
> it into Jenkins for CI.

It's quite simple. Basically a normal build but wrapping the make call
in a cov-build tool by them, and then uploading the result written by
their tool, using a username & password given by coverity.

   http://scan.coverity.com/steps-for-analysis.html

But seems their tool failed badly on 90% of our sources. Investigation
pending.

Regards
Henrik



Re: Squid code analysis using Coverity

2012-10-11 Thread Kinkie
> > I can try contacting them to reviewe the Squid scan if wanted.
> >
> > Yes, please.
> > It'd be super if they could interface with either bzr or jenkins (or
> > both)
>
> Their model have changed a bit since we last used their service. Instead
> of Coverity polling project SCM the project now runs a build wrapped in
> a "cov-build" tool and upload the result for analysis. So there is no
> integration with bzr needed.
>
> I am submitting a build to have the project added back to Coverity SCAN.

Excellent!
Please once you're done, please share the recipe so I can try to hook
it into Jenkins for CI.

--
/kinkie


Re: Squid code analysis using Coverity

2012-10-11 Thread Henrik Nordström
tor 2012-10-11 klockan 22:39 +0200 skrev Kinkie:
> 
> There is no charge to be part of their Open Source program,
> and they did
> respond in past when dealing with them.
> 
> I can try contacting them to reviewe the Squid scan if wanted.
> 
> Yes, please. 
> It'd be super if they could interface with either bzr or jenkins (or
> both)

Their model have changed a bit since we last used their service. Instead
of Coverity polling project SCM the project now runs a build wrapped in
a "cov-build" tool and upload the result for analysis. So there is no
integration with bzr needed.

I am submitting a build to have the project added back to Coverity SCAN.

Regards
Henrik




Re: Squid code analysis using Coverity

2012-10-11 Thread Henrik Nordström
tor 2012-10-11 klockan 13:30 +1300 skrev Amos Jeffries:

> Did you mean we should have no cost being part of their program?  or 
> that there is an admin control panel (contact person?) you have 
> available to do more than I could?

There is no charge to be part of their Open Source program, and they did
respond in past when dealing with them.

I can try contacting them to reviewe the Squid scan if wanted.

Regards
Henrik



Re: Answers to questions raised on IRC

2012-10-11 Thread Alex Rousskov
On 10/11/2012 03:03 AM, Kinkie wrote:
>> To avoid misunderstanding, I am pretty sure this is a relatively new
>> problem, but I have no idea which change(s) broke the build. A few bugs
>> may have been fixed since my earlier tests, and the remaining bugs may
>> not be related to your changes.
> 
> Hi,
>   it doesn't seem related to my changes, but it doesn't really matter.
> testStatHist was missing libmisccontainers.la .
> Fixed in r12385.

As of 12385, remaining build errors and failed test cases are:

> trunk/src/DelayId.cc:123: undefined reference to 
> `ClientHttpRequest::getConn() const'
> trunk/src/DelayId.cc:124: undefined reference to 
> `ClientHttpRequest::getConn() const'
> make[4]: *** [tests/testDiskIO] Error 1
> make[4]: *** [tests/testStore] Error 1
> make[4]: *** [tests/testRock] Error 1
> make[4]: *** [tests/testUfs] Error 1


Thank you,

Alex.



Re: [PATCH] meta_header option

2012-10-11 Thread Alex Rousskov
On 10/11/2012 05:21 AM, Amos Jeffries wrote:
> On 11/10/2012 9:39 p.m., Tsantilas Christos wrote:
>> If there is not any objection I will commit this patch to trunk
>>
>>
>> On 09/19/2012 06:46 PM, Tsantilas Christos wrote:
>>> Hi all,
>>>
>>> This patch adds meta_header option to squid.conf. It is similar to
>>> adaptation_meta but is applied after all adaptation and before logging.
>>> Values of named meta headers can be logged using %{name}meta_header
>>> macros.
>>>
>>>  meta_header name value acl ...
>>>  logformat myFormat ... %{name}meta_header ...
>>>
>>> This option may be initially used to log custom information about the
>>> master transaction. For example, an admin may configure Squid to log
>>> which "user group" the transaction belongs to, where "user group" will
>>> be determined based on a set of ACLs and not [just] authentication
>>> information.
>>>
>>> From user point of view, adaptation_header sets/implies meta_header
>>> (i.e., setting adaptation_header is sufficient to be able to log it
>>> using %meta_header) but the meta_header option itself (if any) is
>>> evaluated later, so it has no effect on ICAP headers.
>>>
>>> This is a Measurement Factory project
>>>
> 
> Thank you for your explanation earlier. If you can avoid calling the
> list of key:pair entries *headers* it would be less confusing.


Here are a few other naming options to consider, from the ones I like
the most to the ones I like the least:

1a) annotation key value ...
logformat ... %{key}annotation ...

1b) note key value ...
logformat ... %{key}note ...

2a) marker key value ...
logformat ... %{key}marker ...

2b) mark key value ...
logformat ... %{key}mark ...

3)  stamp key value ...
logformat ... %{key}stamp ...

4)  label key value ...
logformat ... %{key}label

5)  info key value ...
logformat ... %{key}info


All of which can be prefixed with "meta_", "xaction_", or "master_"
prefixes (with varying degree of appropriateness).

All of these names have some problems, as does the original meta_header,
of course.


Do you like any of the above? Any better ideas?


Thank you,

Alex.



Re: [PATCH] meta_header option

2012-10-11 Thread Amos Jeffries

On 11/10/2012 9:39 p.m., Tsantilas Christos wrote:

If there is not any objection I will commit this patch to trunk


On 09/19/2012 06:46 PM, Tsantilas Christos wrote:

Hi all,

This patch adds meta_header option to squid.conf. It is similar to
adaptation_meta but is applied after all adaptation and before logging.
Values of named meta headers can be logged using %{name}meta_header macros.

 meta_header name value acl ...
 logformat myFormat ... %{name}meta_header ...

This option may be initially used to log custom information about the
master transaction. For example, an admin may configure Squid to log
which "user group" the transaction belongs to, where "user group" will
be determined based on a set of ACLs and not [just] authentication
information.

>From user point of view, adaptation_header sets/implies meta_header
(i.e., setting adaptation_header is sufficient to be able to log it
using %meta_header) but the meta_header option itself (if any) is
evaluated later, so it has no effect on ICAP headers.

This is a Measurement Factory project



Thank you for your explanation earlier. If you can avoid calling the 
list of key:pair entries *headers* it would be less confusing. Half of 
my problems was reading about adding additional meta headers to a 
request. Where the association of "meta" is closely tied with the mime 
HTTP segment and "headers" with the key:pair fields in that mime segment 
*on-wire* as it were.


THanks
Amos


Build failed in Jenkins: 3.HEAD-ppc-MacOS-Leopard #54

2012-10-11 Thread noc
See 

--
[...truncated 3791 lines...]
-e 
"s%[@]DEFAULT_MIME_TABLE[@]%
 \
-e 
"s%[@]DEFAULT_DNSSERVER[@]%
 dnsserver | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_SSL_CRTD[@]%
 ssl_crtd  | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_UNLINKD[@]%
 unlinkd | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_PINGER[@]%
 pinger | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_DISKD[@]%
 diskd | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_LOGFILED[@]%
 log_file_daemon | sed 's,x,x,;s/$//'`%g;" \
-e 
"s%[@]DEFAULT_CACHE_LOG[@]%
 \
-e 
"s%[@]DEFAULT_ACCESS_LOG[@]%
 \
-e 
"s%[@]DEFAULT_STORE_LOG[@]%
 \
-e 
"s%[@]DEFAULT_PID_FILE[@]%
 \
-e 
"s%[@]DEFAULT_NETDB_FILE[@]%
 \
-e 
"s%[@]DEFAULT_SWAP_DIR[@]%
 \
-e 
"s%[@]DEFAULT_SSL_DB_DIR[@]%
 \
-e 
"s%[@]DEFAULT_ICON_DIR[@]%
 \
-e 
"s%[@]DEFAULT_CONFIG_DIR[@]%
 \
-e 
"s%[@]DEFAULT_ERROR_DIR[@]%
 \
-e 
"s%[@]DEFAULT_PREFIX[@]%
 \
-e "s%[@]DEFAULT_HOSTS[@]%/etc/hosts%g" \
-e "s%[@]SQUID[@]%SQUID\ 3.HEAD-BZR%g" \
< ../../src/cf.data.pre >cf.data
g++ -o cf_gen ../../src/cf_gen.cc -I../../src -I../include/ -I../src
./cf_gen cf.data ../../src/cf.data.depend
awk -f ../../src/mk-string-arrays.awk < ../../src/err_type.h > err_type.cc || 
(/bin/rm -f -f err_type.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/err_detail_type.h | sed 
's/ERR_DETAIL_//' > err_detail_type.cc || (/bin/rm -f -f err_detail_type.cc && 
exit 1)
awk -f ../../src/mk-globals-c.awk < ../../src/globals.h > globals.cc || 
(/bin/rm -f -f globals.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/hier_code.h > hier_code.cc || 
(/bin/rm -f -f hier_code.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/icp_opcode.h > icp_opcode.cc 
|| (/bin/rm -f -f icp_opcode.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/lookup_t.h > lookup_t.cc || 
(/bin/rm -f -f lookup_t.cc && exit 1)
/bin/sh ../../src/repl_modules.sh lru > repl_modules.cc
make  all-recursive
Making all in base
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  
-I../../.. -I../../../include -I../../../lib -I../../../src -I../../include 
-I/opt/local/include  -I../../../libltdl   -Wall -Wpointer-arith 
-Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT AsyncCall.lo 
-MD -MP -MF .deps/AsyncCall.Tpo -c -o AsyncCall.lo 
../../../src/base/AsyncCall.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I../../.. -I../../../include 
-I../../../lib -I../../../src -I../../include -I/opt/local/include 
-I../../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror 
-pipe -D_REENTRANT -g -O2 

Build failed in Jenkins: 3.HEAD-amd64-opensuse #233

2012-10-11 Thread noc
See 

--
[...truncated 7165 lines...]
Testing ../../src/comm.h ...Ok.
Testing ../../src/mime.h ...Ok.
Testing ../../src/ftp.h ...Ok.
Testing ../../src/LoadableModules.h ...Ok.
Testing ../../src/stmem.h ...Ok.
Testing ../../src/CompositePoolNode.h ...Ok.
Testing ../../src/Server.h ...Ok.
Testing ../../src/wccp.h ...Ok.
Testing ../../src/DelayTagged.h ...Ok.
Testing ../../src/swap_log_op.h ...Ok.
Testing ../../src/HierarchyLogEntry.h ...Ok.
Testing ../../src/StoreClient.h ...Ok.
Testing ../../src/HttpHeaderMask.h ...Ok.
Testing ../../src/unlinkd.h ...Ok.
Testing ../../src/client_side_reply.h ...Ok.
Testing ../../src/StoreMetaSTDLFS.h ...Ok.
Testing ../../src/defines.h ...Ok.
Testing ../../src/multicast.h ...Ok.
Testing ../../src/store_rebuild.h ...Ok.
Testing ../../src/HttpHeaderTools.h ...Ok.
Testing ../../src/RemovalPolicy.h ...Ok.
Testing ../../src/mem_node.h ...Ok.
Testing ../../src/helper.h ...Ok.
Testing ../../src/DelaySpec.h ...Ok.
Testing ../../src/CachePeerDomainList.h ...Ok.
Testing ../../src/AsyncEngine.h ...Ok.
Testing ../../src/StoreSwapLogData.h ...Ok.
Testing ../../src/HttpMsg.h ...Ok.
Testing ../../src/mime_header.h ...Ok.
Testing ../../src/StoreFileSystem.h ...Ok.
Testing ../../src/ICP.h ...Ok.
Testing ../../src/DnsLookupDetails.h ...Ok.
Testing ../../src/peer_userhash.h ...Ok.
Testing ../../src/cache_cf.h ...Ok.
Testing ../../src/Debug.h ...Ok.
Testing ../../src/ExternalACLEntry.h ...Ok.
Testing ../../src/CpuAffinityMap.h ...Ok.
Testing ../../src/HttpRequestMethod.h ...Ok.
Testing ../../src/SquidString.h ...Ok.
Testing ../../src/StoreMetaVary.h ...Ok.
Testing ../../src/fde.h ...Ok.
Testing ../../src/HttpHdrSc.h ...Ok.
Testing ../../src/AuthReg.h ...Ok.
Testing ../../src/StoreMetaObjSize.h ...Ok.
Testing ../../src/NullDelayId.h ...Ok.
Testing ../../src/YesNoNone.h ...Ok.
Testing ../../src/ClientDelayConfig.h ...Ok.
Testing ../../src/NeighborTypeDomainList.h ...Ok.
Testing ../../src/err_type.h ...Ok.
Testing ../../src/HttpHeaderRange.h ...Ok.
Testing ../../src/ExternalACL.h ...Ok.
Testing ../../src/forward.h ...Ok.
Testing ../../src/HttpControlMsg.h ...Ok.
Testing ../../src/whois.h ...Ok.
Testing ../../src/disk.h ...Ok.
Testing ../../src/repl_modules.h ...Ok.
Testing ../../src/StrList.h ...Ok.
Testing ../../src/SquidConfig.h ...Ok.
Testing ../../src/DiskIO/ReadRequest.h ...Ok.
Testing ../../src/DiskIO/DiskIOModule.h ...Ok.
Testing ../../src/DiskIO/DiskIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskFile.h ...Ok.
Testing ../../src/DiskIO/WriteRequest.h ...Ok.
Testing ../../src/DiskIO/IORequestor.h ...Ok.
Testing ../../src/DiskIO/Mmapped/MmappedFile.h ...Ok.
Testing ../../src/DiskIO/Mmapped/MmappedDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/Mmapped/MmappedIOStrategy.h ...Ok.
Testing ../../src/DiskIO/AIO/AIODiskFile.h ...Ok.
Testing ../../src/DiskIO/AIO/async_io.h ...Ok.
Testing ../../src/DiskIO/AIO/aio_win32.h ...Ok.
Testing ../../src/DiskIO/AIO/AIODiskIOModule.h ...Ok.
Testing ../../src/DiskIO/AIO/AIODiskIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreadsDiskFile.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/CommIO.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreads.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreadsIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreadsDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/IpcIo/IpcIoFile.h ...Ok.
Testing ../../src/DiskIO/IpcIo/IpcIoDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/IpcIo/IpcIoIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskdFile.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/diomsg.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskdIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskdAction.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/Blocking/BlockingIOStrategy.h ...Ok.
Testing ../../src/DiskIO/Blocking/BlockingFile.h ...Ok.
Testing ../../src/DiskIO/Blocking/BlockingDiskIOModule.h ...Ok.
..
OK (2)
PASS: tests/testACLMaxUserIP
.
OK (1)
PASS: tests/testBoilerplate
..
OK (2)
PASS: tests/testCacheManager
.
OK (1)
PASS: tests/testDiskIO
..Actual Text:
Last event to run: last event

Operation\tNext Execution \tWeight\tCallback Valid?
test event   \t0.000 sec\t0\t N/A
test event2  \t0.000 sec\t0\t N/A


OK (6)
PASS: tests/testEvent
...
OK (3)
PASS: tests/testEventLoop
PASS: tests/test_http_range
.
OK (5)
PASS: tests/testHttpParser
.SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not i

Build failed in Jenkins: 3.HEAD-amd64-opensuse #232

2012-10-11 Thread noc
See 

Changes:

[Francesco Chemolli] Added missing library in testStatHist

[Amos Jeffries] Windows: better wrap C++-specific code in compat layer

[Amos Jeffries] Windows: build Windows specific libraries only on Windows.

Some libraries are only available on Windows and others are unable to be built.

--
[...truncated 7170 lines...]
Testing ../../src/comm.h ...Ok.
Testing ../../src/mime.h ...Ok.
Testing ../../src/ftp.h ...Ok.
Testing ../../src/LoadableModules.h ...Ok.
Testing ../../src/stmem.h ...Ok.
Testing ../../src/CompositePoolNode.h ...Ok.
Testing ../../src/Server.h ...Ok.
Testing ../../src/wccp.h ...Ok.
Testing ../../src/DelayTagged.h ...Ok.
Testing ../../src/swap_log_op.h ...Ok.
Testing ../../src/HierarchyLogEntry.h ...Ok.
Testing ../../src/StoreClient.h ...Ok.
Testing ../../src/HttpHeaderMask.h ...Ok.
Testing ../../src/unlinkd.h ...Ok.
Testing ../../src/client_side_reply.h ...Ok.
Testing ../../src/StoreMetaSTDLFS.h ...Ok.
Testing ../../src/defines.h ...Ok.
Testing ../../src/multicast.h ...Ok.
Testing ../../src/store_rebuild.h ...Ok.
Testing ../../src/HttpHeaderTools.h ...Ok.
Testing ../../src/RemovalPolicy.h ...Ok.
Testing ../../src/mem_node.h ...Ok.
Testing ../../src/helper.h ...Ok.
Testing ../../src/DelaySpec.h ...Ok.
Testing ../../src/CachePeerDomainList.h ...Ok.
Testing ../../src/AsyncEngine.h ...Ok.
Testing ../../src/StoreSwapLogData.h ...Ok.
Testing ../../src/HttpMsg.h ...Ok.
Testing ../../src/mime_header.h ...Ok.
Testing ../../src/StoreFileSystem.h ...Ok.
Testing ../../src/ICP.h ...Ok.
Testing ../../src/DnsLookupDetails.h ...Ok.
Testing ../../src/peer_userhash.h ...Ok.
Testing ../../src/cache_cf.h ...Ok.
Testing ../../src/Debug.h ...Ok.
Testing ../../src/ExternalACLEntry.h ...Ok.
Testing ../../src/CpuAffinityMap.h ...Ok.
Testing ../../src/HttpRequestMethod.h ...Ok.
Testing ../../src/SquidString.h ...Ok.
Testing ../../src/StoreMetaVary.h ...Ok.
Testing ../../src/fde.h ...Ok.
Testing ../../src/HttpHdrSc.h ...Ok.
Testing ../../src/AuthReg.h ...Ok.
Testing ../../src/StoreMetaObjSize.h ...Ok.
Testing ../../src/NullDelayId.h ...Ok.
Testing ../../src/YesNoNone.h ...Ok.
Testing ../../src/ClientDelayConfig.h ...Ok.
Testing ../../src/NeighborTypeDomainList.h ...Ok.
Testing ../../src/err_type.h ...Ok.
Testing ../../src/HttpHeaderRange.h ...Ok.
Testing ../../src/ExternalACL.h ...Ok.
Testing ../../src/forward.h ...Ok.
Testing ../../src/HttpControlMsg.h ...Ok.
Testing ../../src/whois.h ...Ok.
Testing ../../src/disk.h ...Ok.
Testing ../../src/repl_modules.h ...Ok.
Testing ../../src/StrList.h ...Ok.
Testing ../../src/SquidConfig.h ...Ok.
Testing ../../src/DiskIO/ReadRequest.h ...Ok.
Testing ../../src/DiskIO/DiskIOModule.h ...Ok.
Testing ../../src/DiskIO/DiskIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskFile.h ...Ok.
Testing ../../src/DiskIO/WriteRequest.h ...Ok.
Testing ../../src/DiskIO/IORequestor.h ...Ok.
Testing ../../src/DiskIO/Mmapped/MmappedFile.h ...Ok.
Testing ../../src/DiskIO/Mmapped/MmappedDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/Mmapped/MmappedIOStrategy.h ...Ok.
Testing ../../src/DiskIO/AIO/AIODiskFile.h ...Ok.
Testing ../../src/DiskIO/AIO/async_io.h ...Ok.
Testing ../../src/DiskIO/AIO/aio_win32.h ...Ok.
Testing ../../src/DiskIO/AIO/AIODiskIOModule.h ...Ok.
Testing ../../src/DiskIO/AIO/AIODiskIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreadsDiskFile.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/CommIO.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreads.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreadsIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskThreads/DiskThreadsDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/IpcIo/IpcIoFile.h ...Ok.
Testing ../../src/DiskIO/IpcIo/IpcIoDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/IpcIo/IpcIoIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskdFile.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/diomsg.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskdIOStrategy.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskdAction.h ...Ok.
Testing ../../src/DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h ...Ok.
Testing ../../src/DiskIO/Blocking/BlockingIOStrategy.h ...Ok.
Testing ../../src/DiskIO/Blocking/BlockingFile.h ...Ok.
Testing ../../src/DiskIO/Blocking/BlockingDiskIOModule.h ...Ok.
..
OK (2)
PASS: tests/testACLMaxUserIP
.
OK (1)
PASS: tests/testBoilerplate
..
OK (2)
PASS: tests/testCacheManager
.
OK (1)
PASS: tests/testDiskIO
..Actual Text:
Last event to run: last event

Operation\tNext Execution \tWeight\tCallback Valid?
test event   \t0.000 sec\t0\t N/A
test event2  \t0.000 sec\t0\t N/A


OK (6)
PASS: tests/testEvent
...
OK (3)
PASS: tests/testEventLoop
PASS: tests/test_http_range
.
OK (5)
PASS: tests/testHttpParser
.SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKIP: StatHist.cc enumInit (not implemented).
SKI

Build failed in Jenkins: 3.HEAD-ppc-MacOS-Leopard #53

2012-10-11 Thread noc
See 

--
[...truncated 3791 lines...]
-e 
"s%[@]DEFAULT_MIME_TABLE[@]%
 \
-e 
"s%[@]DEFAULT_DNSSERVER[@]%
 dnsserver | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_SSL_CRTD[@]%
 ssl_crtd  | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_UNLINKD[@]%
 unlinkd | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_PINGER[@]%
 pinger | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_DISKD[@]%
 diskd | sed 's,x,x,;s/$//'`%g" \
-e 
"s%[@]DEFAULT_LOGFILED[@]%
 log_file_daemon | sed 's,x,x,;s/$//'`%g;" \
-e 
"s%[@]DEFAULT_CACHE_LOG[@]%
 \
-e 
"s%[@]DEFAULT_ACCESS_LOG[@]%
 \
-e 
"s%[@]DEFAULT_STORE_LOG[@]%
 \
-e 
"s%[@]DEFAULT_PID_FILE[@]%
 \
-e 
"s%[@]DEFAULT_NETDB_FILE[@]%
 \
-e 
"s%[@]DEFAULT_SWAP_DIR[@]%
 \
-e 
"s%[@]DEFAULT_SSL_DB_DIR[@]%
 \
-e 
"s%[@]DEFAULT_ICON_DIR[@]%
 \
-e 
"s%[@]DEFAULT_CONFIG_DIR[@]%
 \
-e 
"s%[@]DEFAULT_ERROR_DIR[@]%
 \
-e 
"s%[@]DEFAULT_PREFIX[@]%
 \
-e "s%[@]DEFAULT_HOSTS[@]%/etc/hosts%g" \
-e "s%[@]SQUID[@]%SQUID\ 3.HEAD-BZR%g" \
< ../../src/cf.data.pre >cf.data
g++ -o cf_gen ../../src/cf_gen.cc -I../../src -I../include/ -I../src
./cf_gen cf.data ../../src/cf.data.depend
awk -f ../../src/mk-string-arrays.awk < ../../src/err_type.h > err_type.cc || 
(/bin/rm -f -f err_type.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/err_detail_type.h | sed 
's/ERR_DETAIL_//' > err_detail_type.cc || (/bin/rm -f -f err_detail_type.cc && 
exit 1)
awk -f ../../src/mk-globals-c.awk < ../../src/globals.h > globals.cc || 
(/bin/rm -f -f globals.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/hier_code.h > hier_code.cc || 
(/bin/rm -f -f hier_code.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/icp_opcode.h > icp_opcode.cc 
|| (/bin/rm -f -f icp_opcode.cc && exit 1)
awk -f ../../src/mk-string-arrays.awk < ../../src/lookup_t.h > lookup_t.cc || 
(/bin/rm -f -f lookup_t.cc && exit 1)
/bin/sh ../../src/repl_modules.sh lru > repl_modules.cc
make  all-recursive
Making all in base
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  
-I../../.. -I../../../include -I../../../lib -I../../../src -I../../include 
-I/opt/local/include  -I../../../libltdl   -Wall -Wpointer-arith 
-Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT AsyncCall.lo 
-MD -MP -MF .deps/AsyncCall.Tpo -c -o AsyncCall.lo 
../../../src/base/AsyncCall.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I../../.. -I../../../include 
-I../../../lib -I../../../src -I../../include -I/opt/local/include 
-I../../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror 
-pipe -D_REENTRANT -g -O2 

Re: Answers to questions raised on IRC

2012-10-11 Thread Kinkie
> To avoid misunderstanding, I am pretty sure this is a relatively new
> problem, but I have no idea which change(s) broke the build. A few bugs
> may have been fixed since my earlier tests, and the remaining bugs may
> not be related to your changes.

Hi,
  it doesn't seem related to my changes, but it doesn't really matter.
testStatHist was missing libmisccontainers.la .
Fixed in r12385.

-- 
/kinkie


Re: [PATCH] meta_header option

2012-10-11 Thread Tsantilas Christos
If there is not any objection I will commit this patch to trunk


On 09/19/2012 06:46 PM, Tsantilas Christos wrote:
> Hi all,
> 
> This patch adds meta_header option to squid.conf. It is similar to
> adaptation_meta but is applied after all adaptation and before logging.
> Values of named meta headers can be logged using %{name}meta_header macros.
> 
> meta_header name value acl ...
> logformat myFormat ... %{name}meta_header ...
> 
> This option may be initially used to log custom information about the
> master transaction. For example, an admin may configure Squid to log
> which "user group" the transaction belongs to, where "user group" will
> be determined based on a set of ACLs and not [just] authentication
> information.
> 
>>From user point of view, adaptation_header sets/implies meta_header
> (i.e., setting adaptation_header is sufficient to be able to log it
> using %meta_header) but the meta_header option itself (if any) is
> evaluated later, so it has no effect on ICAP headers.
> 
> This is a Measurement Factory project
>