Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-06-07 Thread vollkommen
I just tried squid-3.HEAD-20090607 but am running into a few issues:

1. It doesn't appear to heed the "http_port 3129" directive in squid.conf, so 
it shuts down upon finding my regular squid-3.0RC1 running on port 3128.

2. When I make squid-3.HEAD-20090607 the only copy of squid running with "squid 
-N -X", it crashes as soon as I try to hit any website. "gdb squid core" finds 
nothing, but I do have an OS X crash log:

gdb squid core
GNU gdb 6.3.50-20050815 (Apple version gdb-696) (Sat Oct 20 18:16:54 GMT 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...
warning: --arch option not supported in this gdb.
Reading symbols for shared libraries ... done

warning: Could not find object file 
"/Users/my-id/squid-3.HEAD-20090607/src/.libs/squidS.o" - no debug information 
available for "squidS.c".


/usr/local/squid31/sbin/core: No such file or directory.


-- 
GMX FreeDSL mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 Euro/mtl.!
http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a


cache.log
Description: Binary data


crash-reporter.log
Description: Binary data


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-30 Thread Amos Jeffries

vollkom...@gmx.net wrote:

 Original-Nachricht 

1. DNS lookups fail completely. 204.127.198.4 is among a handful of
external DNS servers I use, whether defined as dns_nameservers in
squid.conf or picked by squid automatically from /etc/resolv.conf:

2009/05/20 21:44:49| comm_udp_sendto: FD 8, (family=2) 204.127.198.4:53:
(22) Invalid argument
2009/05/20 21:44:49| idnsSendQuery: FD 8: sendto: (22) Invalid argument
2009/05/20 21:46:10| comm_set_tos: setsockopt(IP_TOS) on FD 7: (22)
Invalid argument

Is IPv6 dual-stack enabled in your OS? it looks like the v6 sockets are
unable to do the v4-mapping they need to handle v4 traffic.
I find it a bit weird that setting TOS also fails, its one of the older
functionality and shared between both IP protocols.



I'd think so. I'm using 6to4, if that matters. Here's the snippet from 
config.log:t

configure:25519: checking whether to enable IPv6
configure:25534: result: yes
configure:25548: checking if PF_INET6 is available
configure:25583: g++ -o conftest  -g -O2   -g conftest.cpp   >&5
configure:25587: $? = 0
configure:25593: ./conftest
configure:25597: $? = 0
configure:25599: result: yes
configure:25624: result: 
configure:25643: checking for IPv6 split-stack requirement

configure:25666: result: no
configure:25672: checking for sin6_len field in struct sockaddr_in6
configure:25703: g++ -c  -g -O2  conftest.cpp >&5
configure:25710: $? = 0
configure:25727: result: yes
...
#define USE_IPV6 1
#define IPV6_SPECIAL_V4MAPPED 1
#define IPV6_SPECIAL_SPLITSTACK 0

Here's cache.log with debug_options 0,5 78,9:

2009/05/20 23:36:23.570| idnsALookup: buf is 36 bytes for www.ipv6.sixxs.net, 
id = 0x7fca
2009/05/20 23:36:23.570| comm_udp_sendto: FD 7, (family=2) 18.70.0.160:53: (22) 
Invalid argument
2009/05/20 23:36:23.570| idnsSendQuery: FD 7: sendto: (22) Invalid argument



Hmmm, this is looking suspiciously like a problem we just hit on OpenBSD 
as well, due to hybrid v4-mapping not being available. Squid does not 
detect it very well.
Since we have a good tester who knows the fine details to look for 
there. I'll fix that first then see if the same works for you.


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
  Current Beta Squid 3.1.0.8 or 3.0.STABLE16-RC1


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-24 Thread vollkommen
I was using my 3.0 squid.conf, slightly tweaked to suit 3.1, when I encountered 
those three issues. I did later try the 3.1 default, again with slight tweaks, 
as seen below. The DNS lookup issue persisted with that route:

diff squid.conf.default squid.conf
2,3c2,3
< acl localhost src 127.0.0.1/32
< acl to_localhost dst 127.0.0.0/8
---
> acl localhost src 127.0.0.1/32 ::1
> acl to_localhost dst 127.0.0.0/8 ::1
22a23
> http_access allow localhost
25c26
< http_port 3128
---
> http_port 3129
27c28,31
< coredump_dir /usr/local/squid31/var/cache
---
> coredump_dir /Applications/squid
> cache_access_log /Applications/squid/logs/access.log
> cache_log /Applications/squid/logs/cache.log
> cache_store_log none
31a36
> debug_options ALL,1 0,5 78,9

In addition, I've also tried replacing the ISC BIND daemon listening on 
localhost:53 with the 6to4-tranlating totd, or have squid 3.1 cache-peering 
with Polipo, all to no avail.

 Original-Nachricht  
> Sorry I didn't get to this a few days ago.
> 
> Are you using the default squid.conf that gets built with 3.1 or an 
> altered version?
> Problem #3 will show up for some settings even though there is not yet 
> any other way to do them than netmasks. So it needs to be looked at but 
> in some cases can be ignored.
> 
> Problem #1, I'm still thinking about.
> 
> Amos
> -- 
> Please be using
>Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
>Current Beta Squid 3.1.0.8 or 3.0.STABLE16-RC1

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-23 Thread Amos Jeffries

vollkom...@gmx.net wrote:

 Original-Nachricht 

1. DNS lookups fail completely. 204.127.198.4 is among a handful of
external DNS servers I use, whether defined as dns_nameservers in
squid.conf or picked by squid automatically from /etc/resolv.conf:

2009/05/20 21:44:49| comm_udp_sendto: FD 8, (family=2) 204.127.198.4:53:
(22) Invalid argument
2009/05/20 21:44:49| idnsSendQuery: FD 8: sendto: (22) Invalid argument
2009/05/20 21:46:10| comm_set_tos: setsockopt(IP_TOS) on FD 7: (22)
Invalid argument

Is IPv6 dual-stack enabled in your OS? it looks like the v6 sockets are
unable to do the v4-mapping they need to handle v4 traffic.
I find it a bit weird that setting TOS also fails, its one of the older
functionality and shared between both IP protocols.



I'd think so. I'm using 6to4, if that matters. Here's the snippet from 
config.log:t

configure:25519: checking whether to enable IPv6
configure:25534: result: yes
configure:25548: checking if PF_INET6 is available
configure:25583: g++ -o conftest  -g -O2   -g conftest.cpp   >&5
configure:25587: $? = 0
configure:25593: ./conftest
configure:25597: $? = 0
configure:25599: result: yes
configure:25624: result: 
configure:25643: checking for IPv6 split-stack requirement

configure:25666: result: no
configure:25672: checking for sin6_len field in struct sockaddr_in6
configure:25703: g++ -c  -g -O2  conftest.cpp >&5
configure:25710: $? = 0
configure:25727: result: yes
...
#define USE_IPV6 1
#define IPV6_SPECIAL_V4MAPPED 1
#define IPV6_SPECIAL_SPLITSTACK 0

Here's cache.log with debug_options 0,5 78,9:

2009/05/20 23:36:23.570| idnsALookup: buf is 36 bytes for www.ipv6.sixxs.net, 
id = 0x7fca
2009/05/20 23:36:23.570| comm_udp_sendto: FD 7, (family=2) 18.70.0.160:53: (22) 
Invalid argument
2009/05/20 23:36:23.570| idnsSendQuery: FD 7: sendto: (22) Invalid argument


2. Does that above have anything to do with the failure to apply this
patch?

patch -p0 < b9691.patch
patching file src/dnsserver.cc
Hunk #1 FAILED at 427.
Hunk #2 FAILED at 436.
2 out of 2 hunks FAILED -- saving rejects to file src/dnsserver.cc.rej

I hope not. That patch does not alter anything functionally and is
internal to the obsolete dnsserver helper.


3. I see the following in cache.log. I realize they're warnings, but is
there any way to make squid "happy"? I thought the slash format is a

CIDR

mask.

WARNING: Netmasks are deprecated. Please use CIDR masks instead.
WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6

to

IPv4 ranges.

squid.conf:
acl sitelocalsrc src fec0::/48
acl linklocalsrc src fe80::/64

The conf is correct, if the warnings are appearing on that line something
has definitely broken.

Tomorrow is my actually scheduled day for squid maintenance. I will have
to look at these closer after the maintenance work.

Amos



Turns out my previous conjecture was wrong. Those warnings appear even after 
I've commented out all the IPv6 bits in the ACLs. Here' the complete lines from 
cache.log, in case it matters:

2009/05/20 23:46:02| WARNING: Netmasks are deprecated. Please use CIDR masks 
instead.
2009/05/20 23:46:02| WARNING: IPv4 netmasks are particularly nasty when used to 
compare IPv6 to IPv4 ranges.
2009/05/20 23:46:02| WARNING: For now we assume you meant to write /12
2009/05/20 23:46:02| WARNING: Netmasks are deprecated. Please use CIDR masks 
instead.
2009/05/20 23:46:02| WARNING: IPv4 netmasks are particularly nasty when used to 
compare IPv6 to IPv4 ranges.
2009/05/20 23:46:02| WARNING: For now we assume you meant to write /12


Sorry I didn't get to this a few days ago.

Are you using the default squid.conf that gets built with 3.1 or an 
altered version?
Problem #3 will show up for some settings even though there is not yet 
any other way to do them than netmasks. So it needs to be looked at but 
in some cases can be ignored.


Problem #1, I'm still thinking about.

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
  Current Beta Squid 3.1.0.8 or 3.0.STABLE16-RC1


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-20 Thread vollkommen

 Original-Nachricht 
> > 1. DNS lookups fail completely. 204.127.198.4 is among a handful of
> > external DNS servers I use, whether defined as dns_nameservers in
> > squid.conf or picked by squid automatically from /etc/resolv.conf:
> >
> > 2009/05/20 21:44:49| comm_udp_sendto: FD 8, (family=2) 204.127.198.4:53:
> > (22) Invalid argument
> > 2009/05/20 21:44:49| idnsSendQuery: FD 8: sendto: (22) Invalid argument
> > 2009/05/20 21:46:10| comm_set_tos: setsockopt(IP_TOS) on FD 7: (22)
> > Invalid argument
> 
> Is IPv6 dual-stack enabled in your OS? it looks like the v6 sockets are
> unable to do the v4-mapping they need to handle v4 traffic.
> I find it a bit weird that setting TOS also fails, its one of the older
> functionality and shared between both IP protocols.
> 

I'd think so. I'm using 6to4, if that matters. Here's the snippet from 
config.log:t

configure:25519: checking whether to enable IPv6
configure:25534: result: yes
configure:25548: checking if PF_INET6 is available
configure:25583: g++ -o conftest  -g -O2   -g conftest.cpp   >&5
configure:25587: $? = 0
configure:25593: ./conftest
configure:25597: $? = 0
configure:25599: result: yes
configure:25624: result: 
configure:25643: checking for IPv6 split-stack requirement
configure:25666: result: no
configure:25672: checking for sin6_len field in struct sockaddr_in6
configure:25703: g++ -c  -g -O2  conftest.cpp >&5
configure:25710: $? = 0
configure:25727: result: yes
...
#define USE_IPV6 1
#define IPV6_SPECIAL_V4MAPPED 1
#define IPV6_SPECIAL_SPLITSTACK 0

Here's cache.log with debug_options 0,5 78,9:

2009/05/20 23:36:23.570| idnsALookup: buf is 36 bytes for www.ipv6.sixxs.net, 
id = 0x7fca
2009/05/20 23:36:23.570| comm_udp_sendto: FD 7, (family=2) 18.70.0.160:53: (22) 
Invalid argument
2009/05/20 23:36:23.570| idnsSendQuery: FD 7: sendto: (22) Invalid argument

> >
> > 2. Does that above have anything to do with the failure to apply this
> > patch?
> >
> > patch -p0 < b9691.patch
> > patching file src/dnsserver.cc
> > Hunk #1 FAILED at 427.
> > Hunk #2 FAILED at 436.
> > 2 out of 2 hunks FAILED -- saving rejects to file src/dnsserver.cc.rej
> 
> I hope not. That patch does not alter anything functionally and is
> internal to the obsolete dnsserver helper.
> 
> >
> > 3. I see the following in cache.log. I realize they're warnings, but is
> > there any way to make squid "happy"? I thought the slash format is a
> CIDR
> > mask.
> >
> > WARNING: Netmasks are deprecated. Please use CIDR masks instead.
> > WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6
> to
> > IPv4 ranges.
> >
> > squid.conf:
> > acl sitelocalsrc src fec0::/48
> > acl linklocalsrc src fe80::/64
> 
> The conf is correct, if the warnings are appearing on that line something
> has definitely broken.
> 
> Tomorrow is my actually scheduled day for squid maintenance. I will have
> to look at these closer after the maintenance work.
> 
> Amos
> 

Turns out my previous conjecture was wrong. Those warnings appear even after 
I've commented out all the IPv6 bits in the ACLs. Here' the complete lines from 
cache.log, in case it matters:

2009/05/20 23:46:02| WARNING: Netmasks are deprecated. Please use CIDR masks 
instead.
2009/05/20 23:46:02| WARNING: IPv4 netmasks are particularly nasty when used to 
compare IPv6 to IPv4 ranges.
2009/05/20 23:46:02| WARNING: For now we assume you meant to write /12
2009/05/20 23:46:02| WARNING: Netmasks are deprecated. Please use CIDR masks 
instead.
2009/05/20 23:46:02| WARNING: IPv4 netmasks are particularly nasty when used to 
compare IPv6 to IPv4 ranges.
2009/05/20 23:46:02| WARNING: For now we assume you meant to write /12
-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-20 Thread Amos Jeffries
> Thanks! It's finally up and running. But, it's not quite smooth sailing
> yet:
>
> 1. DNS lookups fail completely. 204.127.198.4 is among a handful of
> external DNS servers I use, whether defined as dns_nameservers in
> squid.conf or picked by squid automatically from /etc/resolv.conf:
>
> 2009/05/20 21:44:49| comm_udp_sendto: FD 8, (family=2) 204.127.198.4:53:
> (22) Invalid argument
> 2009/05/20 21:44:49| idnsSendQuery: FD 8: sendto: (22) Invalid argument
> 2009/05/20 21:46:10| comm_set_tos: setsockopt(IP_TOS) on FD 7: (22)
> Invalid argument

Is IPv6 dual-stack enabled in your OS? it looks like the v6 sockets are
unable to do the v4-mapping they need to handle v4 traffic.
I find it a bit weird that setting TOS also fails, its one of the older
functionality and shared between both IP protocols.

>
> 2. Does that above have anything to do with the failure to apply this
> patch?
>
> patch -p0 < b9691.patch
> patching file src/dnsserver.cc
> Hunk #1 FAILED at 427.
> Hunk #2 FAILED at 436.
> 2 out of 2 hunks FAILED -- saving rejects to file src/dnsserver.cc.rej

I hope not. That patch does not alter anything functionally and is
internal to the obsolete dnsserver helper.

>
> 3. I see the following in cache.log. I realize they're warnings, but is
> there any way to make squid "happy"? I thought the slash format is a CIDR
> mask.
>
> WARNING: Netmasks are deprecated. Please use CIDR masks instead.
> WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to
> IPv4 ranges.
>
> squid.conf:
> acl sitelocalsrc src fec0::/48
> acl linklocalsrc src fe80::/64

The conf is correct, if the warnings are appearing on that line something
has definitely broken.

Tomorrow is my actually scheduled day for squid maintenance. I will have
to look at these closer after the maintenance work.

Amos

>
>  Original-Nachricht 
>> Ah, possibly the init failure someone posted a fix for:
>> http://www.squid-cache.org/Versions/v3/HEAD/changesets/b9689.patch
>>
>> Amos
>>
>
> --
> Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate +
> Telefonanschluss für nur 17,95 Euro/mtl.!*
> http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a
>




Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-20 Thread vollkommen
Thanks! It's finally up and running. But, it's not quite smooth sailing yet:

1. DNS lookups fail completely. 204.127.198.4 is among a handful of external 
DNS servers I use, whether defined as dns_nameservers in squid.conf or picked 
by squid automatically from /etc/resolv.conf:

2009/05/20 21:44:49| comm_udp_sendto: FD 8, (family=2) 204.127.198.4:53: (22) 
Invalid argument
2009/05/20 21:44:49| idnsSendQuery: FD 8: sendto: (22) Invalid argument
2009/05/20 21:46:10| comm_set_tos: setsockopt(IP_TOS) on FD 7: (22) Invalid 
argument

2. Does that above have anything to do with the failure to apply this patch?

patch -p0 < b9691.patch
patching file src/dnsserver.cc
Hunk #1 FAILED at 427.
Hunk #2 FAILED at 436.
2 out of 2 hunks FAILED -- saving rejects to file src/dnsserver.cc.rej

3. I see the following in cache.log. I realize they're warnings, but is there 
any way to make squid "happy"? I thought the slash format is a CIDR mask.

WARNING: Netmasks are deprecated. Please use CIDR masks instead.
WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to IPv4 
ranges.

squid.conf:
acl sitelocalsrc src fec0::/48
acl linklocalsrc src fe80::/64 

 Original-Nachricht 
> Ah, possibly the init failure someone posted a fix for:
> http://www.squid-cache.org/Versions/v3/HEAD/changesets/b9689.patch
> 
> Amos
> 

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-20 Thread Amos Jeffries
> This patch got it built successfully, so I installed it twice: once afresh
> into /usr/local/squid31, then reconfigured and installed over
> 3.0STABLE16-RC1 in /usr/local/squid. I also tweaked the latter's
> squid.conf for IPv6. However, both copies of squid-3.HEAD-20090519 are
> crashing (simply "squid -v" will do) with the same Bus error I posted back
> on May 10, pointing to the same AuthReg.cc:21:
> http://marc.info/?l=squid-dev&m=124198980600328&w=2

Ah, possibly the init failure someone posted a fix for:
http://www.squid-cache.org/Versions/v3/HEAD/changesets/b9689.patch

Amos

>
>  Original-Nachricht 
>> Alright, we do have to bite the bullet then.
>> I've removed the ssl_error_t templating in patch
>> http://www.squid-cache.org/Versions/v3/HEAD/changesets/b9692.patch
>>
>> Amos
>> --
>> Please be using
>>Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
>>Current Beta Squid 3.1.0.7
>
> --
> Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate +
> Telefonanschluss für nur 17,95 Euro/mtl.!*
> http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a
>




Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-20 Thread vollkommen
This patch got it built successfully, so I installed it twice: once afresh into 
/usr/local/squid31, then reconfigured and installed over 3.0STABLE16-RC1 in 
/usr/local/squid. I also tweaked the latter's squid.conf for IPv6. However, 
both copies of squid-3.HEAD-20090519 are crashing (simply "squid -v" will do) 
with the same Bus error I posted back on May 10, pointing to the same 
AuthReg.cc:21: http://marc.info/?l=squid-dev&m=124198980600328&w=2

 Original-Nachricht 
> Alright, we do have to bite the bullet then.
> I've removed the ssl_error_t templating in patch
> http://www.squid-cache.org/Versions/v3/HEAD/changesets/b9692.patch
> 
> Amos
> -- 
> Please be using
>Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
>Current Beta Squid 3.1.0.7

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-20 Thread Amos Jeffries

vollkom...@gmx.net wrote:

Please find below the output of "make -w -d" against the 3.HEAD-20090519 source.
...
rm -f .libs/squid.nm .libs/squid.nmS .libs/squid.nmT
creating .libs/squidS.c
(cd .libs && gcc  -g -O2 -c -fno-builtin "squidS.c")
rm -f .libs/squidS.c .libs/squid.nm .libs/squid.nmS .libs/squid.nmT
g++ -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -g -O2 
.libs/squidS.o -g -o squid AclRegs.o AuthReg.o access_log.o AsyncEngine.o 
cache_cf.o ProtoPort.o CacheDigest.o cache_manager.o carp.o cbdata.o 
ChunkedCodingParser.o client_db.o client_side.o client_side_reply.o 
client_side_request.o BodyPipe.o clientStream.o CompletionDispatcher.o 
comm_select.o comm_select_win32.o comm_poll.o comm_epoll.o comm_kqueue.o 
ConfigOption.o ConfigParser.o debug.o delay_pools.o DelayId.o DelayBucket.o 
DelayConfig.o DelayPool.o DelaySpec.o DelayTagged.o DelayUser.o DelayVector.o 
NullDelayId.o disk.o DiskIO/DiskIOModule.o DiskIO/ReadRequest.o 
DiskIO/WriteRequest.o dlink.o dns_internal.o errorpage.o ETag.o event.o 
EventLoop.o external_acl.o ExternalACLEntry.o fd.o fde.o filemap.o forward.o 
fqdncache.o ftp.o gopher.o helper.o htcp.o http.o HttpStatusLine.o HttpHdrCc.o 
HttpHdrRange.o HttpHdrSc.o HttpHdrScTarget.o HttpHdrContRange.o HttpHeader.o 
HttpHeaderTools.o HttpBody.o HttpMsg.o Htt

pReply.o HttpRequest.o HttpRequestMethod.o icp_v2.o icp_v3.o int.o internal.o 
ipc.o ipcache.o list.o logfile.o main.o mem.o mem_node.o MemBuf.o MemObject.o 
mime.o multicast.o neighbors.o Packer.o Parsing.o pconn.o peer_digest.o 
peer_select.o peer_sourcehash.o peer_userhash.o redirect.o referer.o refresh.o 
RemovalPolicy.o send-announce.o snmp_core.o snmp_agent.o SquidNew.o 
ssl_support.o stat.o StatHist.o String.o stmem.o store.o StoreFileSystem.o 
store_io.o StoreIOState.o store_client.o store_digest.o store_dir.o 
store_key_md5.o store_log.o store_rebuild.o store_swapin.o store_swapmeta.o 
store_swapout.o StoreMeta.o StoreMetaMD5.o StoreMetaSTD.o StoreMetaSTDLFS.o 
StoreMetaUnpacker.o StoreMetaURL.o StoreMetaVary.o StoreSwapLogData.o Server.o 
SwapDir.o time.o tools.o tunnel.o unlinkd.o url.o URLScheme.o urn.o useragent.o 
wccp.o wccp2.o whois.o wordlist.o LoadableModule.o LoadableModules.o 
DiskIO/DiskIOModules_gen.o repl_modules.o globals.o string_arrays.o 
DiskIO/Blocking/Blocking
DiskIOModule.o -Wl,-bind_at_load  ./.libs/libsquid.a auth/.libs/libacls.a acl/.libs/libacls.a acl/.libs/libstate.a auth/.libs/libauth.a acl/.libs/libapi.a base/.libs/libbase.a ip/.libs/libip.a fs/.libs/libfs.a icmp/.libs/libicmp.a icmp/.libs/libicmp-core.a -L/Users/raymont/squid-3.HEAD-20090519/lib repl/libheap.a repl/liblru.a libBlocking.a ../snmplib/libsnmp.a adaptation/.libs/libadaptation.a -lssl -lcrypto -lmiscutil -lm -lresolv ../lib/libLtdl/.libs/libltdlc.a -ldl  

/usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: multiple definitions of symbol 
CbDataList::CBDATA_CbDataList
acl/.libs/libacls.a(Asn.o) definition of CbDataList::CBDATA_CbDataList 
 in section (__DATA,__data)
acl/.libs/libacls.a(SslErrorData.o) definition of 
CbDataList::CBDATA_CbDataList  in section (__DATA,__data)
collect2: ld returned 1 exit status
rm -f .libs/squidS.o
Got a SIGCHLD; 1 unreaped children.
Reaping losing child 0x00350220 PID 360 
make[3]: *** [squid] Error 1

Removing child 0x00350220 PID 360 from chain.

 Original-Nachricht  

We do have to wait unfortunately. The autotools bootstrapping is not part
of the patches. The snapshot is out now.

Amos





Alright, we do have to bite the bullet then.
I've removed the ssl_error_t templating in patch
http://www.squid-cache.org/Versions/v3/HEAD/changesets/b9692.patch

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
  Current Beta Squid 3.1.0.7


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-18 Thread vollkommen
Please find below the output of "make -w -d" against the 3.HEAD-20090519 source.
...
rm -f .libs/squid.nm .libs/squid.nmS .libs/squid.nmT
creating .libs/squidS.c
(cd .libs && gcc  -g -O2 -c -fno-builtin "squidS.c")
rm -f .libs/squidS.c .libs/squid.nm .libs/squid.nmS .libs/squid.nmT
g++ -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -g -O2 
.libs/squidS.o -g -o squid AclRegs.o AuthReg.o access_log.o AsyncEngine.o 
cache_cf.o ProtoPort.o CacheDigest.o cache_manager.o carp.o cbdata.o 
ChunkedCodingParser.o client_db.o client_side.o client_side_reply.o 
client_side_request.o BodyPipe.o clientStream.o CompletionDispatcher.o 
comm_select.o comm_select_win32.o comm_poll.o comm_epoll.o comm_kqueue.o 
ConfigOption.o ConfigParser.o debug.o delay_pools.o DelayId.o DelayBucket.o 
DelayConfig.o DelayPool.o DelaySpec.o DelayTagged.o DelayUser.o DelayVector.o 
NullDelayId.o disk.o DiskIO/DiskIOModule.o DiskIO/ReadRequest.o 
DiskIO/WriteRequest.o dlink.o dns_internal.o errorpage.o ETag.o event.o 
EventLoop.o external_acl.o ExternalACLEntry.o fd.o fde.o filemap.o forward.o 
fqdncache.o ftp.o gopher.o helper.o htcp.o http.o HttpStatusLine.o HttpHdrCc.o 
HttpHdrRange.o HttpHdrSc.o HttpHdrScTarget.o HttpHdrContRange.o HttpHeader.o 
HttpHeaderTools.o HttpBody.o HttpMsg.o HttpReply.o HttpRequest.o 
HttpRequestMethod.o icp_v2.o icp_v3.o int.o internal.o ipc.o ipcache.o list.o 
logfile.o main.o mem.o mem_node.o MemBuf.o MemObject.o mime.o multicast.o 
neighbors.o Packer.o Parsing.o pconn.o peer_digest.o peer_select.o 
peer_sourcehash.o peer_userhash.o redirect.o referer.o refresh.o 
RemovalPolicy.o send-announce.o snmp_core.o snmp_agent.o SquidNew.o 
ssl_support.o stat.o StatHist.o String.o stmem.o store.o StoreFileSystem.o 
store_io.o StoreIOState.o store_client.o store_digest.o store_dir.o 
store_key_md5.o store_log.o store_rebuild.o store_swapin.o store_swapmeta.o 
store_swapout.o StoreMeta.o StoreMetaMD5.o StoreMetaSTD.o StoreMetaSTDLFS.o 
StoreMetaUnpacker.o StoreMetaURL.o StoreMetaVary.o StoreSwapLogData.o Server.o 
SwapDir.o time.o tools.o tunnel.o unlinkd.o url.o URLScheme.o urn.o useragent.o 
wccp.o wccp2.o whois.o wordlist.o LoadableModule.o LoadableModules.o 
DiskIO/DiskIOModules_gen.o repl_modules.o globals.o string_arrays.o 
DiskIO/Blocking/BlockingDiskIOModule.o -Wl,-bind_at_load  ./.libs/libsquid.a 
auth/.libs/libacls.a acl/.libs/libacls.a acl/.libs/libstate.a 
auth/.libs/libauth.a acl/.libs/libapi.a base/.libs/libbase.a ip/.libs/libip.a 
fs/.libs/libfs.a icmp/.libs/libicmp.a icmp/.libs/libicmp-core.a 
-L/Users/raymont/squid-3.HEAD-20090519/lib repl/libheap.a repl/liblru.a 
libBlocking.a ../snmplib/libsnmp.a adaptation/.libs/libadaptation.a -lssl 
-lcrypto -lmiscutil -lm -lresolv ../lib/libLtdl/.libs/libltdlc.a -ldl  
/usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: multiple definitions of symbol 
CbDataList::CBDATA_CbDataList
acl/.libs/libacls.a(Asn.o) definition of CbDataList::CBDATA_CbDataList 
 in section (__DATA,__data)
acl/.libs/libacls.a(SslErrorData.o) definition of 
CbDataList::CBDATA_CbDataList  in section (__DATA,__data)
collect2: ld returned 1 exit status
rm -f .libs/squidS.o
Got a SIGCHLD; 1 unreaped children.
Reaping losing child 0x00350220 PID 360 
make[3]: *** [squid] Error 1
Removing child 0x00350220 PID 360 from chain.

 Original-Nachricht  
> We do have to wait unfortunately. The autotools bootstrapping is not part
> of the patches. The snapshot is out now.
> 
> Amos
> 

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-18 Thread Amos Jeffries
> Thanks. Since I didn't want to wait for 3.HEAD-20090519, I simply applied
> your patch to the 3.HEAD-20090518 source. Here's the output:
>

We do have to wait unfortunately. The autotools bootstrapping is not part
of the patches. The snapshot is out now.

Amos




Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-18 Thread vollkommen
Thanks. Since I didn't want to wait for 3.HEAD-20090519, I simply applied your 
patch to the 3.HEAD-20090518 source. Here's the output:

patch -p0 < b9686.patch
...
 g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../src -I../../include 
-I/usr/include/libxml2 -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments 
-g -O2 -c StringData.cc  -fno-common -DPIC -o .libs/StringData.o
 g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../src -I../../include 
-I/usr/include/libxml2 -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments 
-g -O2 -c StringData.cc -o StringData.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  -I../.. 
-I../../include -I../../src -I../../include   -I/usr/include/libxml2  -Werror 
-Wall -Wpointer-arith -Wwrite-strings -Wcomments  -g -O2 -c -o Time.lo Time.cc
 g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../src -I../../include 
-I/usr/include/libxml2 -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments 
-g -O2 -c Time.cc  -fno-common -DPIC -o .libs/Time.o
 g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../src -I../../include 
-I/usr/include/libxml2 -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments 
-g -O2 -c Time.cc -o Time.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  -I../.. 
-I../../include -I../../src -I../../include   -I/usr/include/libxml2  -Werror 
-Wall -Wpointer-arith -Wwrite-strings -Wcomments  -g -O2 -c -o TimeData.lo 
TimeData.cc
 g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../src -I../../include 
-I/usr/include/libxml2 -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments 
-g -O2 -c TimeData.cc  -fno-common -DPIC -o .libs/TimeData.o
 g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../src -I../../include 
-I/usr/include/libxml2 -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments 
-g -O2 -c TimeData.cc -o TimeData.o >/dev/null 2>&1
make[3]: *** No rule to make target `Asn.cc', needed by `Asn.lo'.  Stop.
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1


 Original-Nachricht 
> Have been working on this a little. Seems asn.cc and Asn.cc were not 
> both needed anyway, so merging and killing one.
> 
> The clash is looking more like a clash between pure int and a type which 
> has been typedef'd from int. int vs ssl_error_t.
> I find it very strange that the compiler is doing that.
> 
> The next snapshot should be 3.HEAD-20090519. Can you please test that 
> when its bundled to see if all this fixing has had any effect on your 
> latest problem.
> 
> Amos
> -- 
> Please be using
>Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
>Current Beta Squid 3.1.0.7

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-18 Thread Amos Jeffries

vollkom...@gmx.net wrote:

Here's what I did and the outcome, with squid-3.HEAD-20090511:

patch -p0 < b9683.patch

vi src/asn.cc
/* template cbdata_type CbDataList::CBDATA_CbDataList;
*/

Then 2) & 3).

/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  -I../.. 
-I../../include -I../../src -I../../include   -I/usr/include/libxml2  -Werror 
-Wall -Wpointer-arith -Wwrite-strings -Wcomments  -g -O2 -c -o Asn.lo Asn.cc
 g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../src -I../../include 
-I/usr/include/libxml2 -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments 
-g -O2 -c Asn.cc  -fno-common -DPIC -o .libs/Asn.o
Asn.cc:44: error: expected unqualified-id before 'template'
make[3]: *** [Asn.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

 Original-Nachricht 

I wonder.

Lets experiment then. If you would please:

 1. comment out the annoying line:
template cbdata_type CbDataList::CBDATA_CbDataList;


 2. add this to src/asn.cc:

class FubarA {
public:
  char a;
}
template cbdata_type CbDataList::CBDATA_CbDataList;


3. add this to acl/Asn.cc:

class FubarB {
public:
  char b;
}
template cbdata_type CbDataList::CBDATA_CbDataList;


4. rebuild and see what happens...




Have been working on this a little. Seems asn.cc and Asn.cc were not 
both needed anyway, so merging and killing one.


The clash is looking more like a clash between pure int and a type which 
has been typedef'd from int. int vs ssl_error_t.

I find it very strange that the compiler is doing that.

The next snapshot should be 3.HEAD-20090519. Can you please test that 
when its bundled to see if all this fixing has had any effect on your 
latest problem.


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
  Current Beta Squid 3.1.0.7


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-11 Thread vollkommen
Here's what I did and the outcome, with squid-3.HEAD-20090511:

patch -p0 < b9683.patch

vi src/asn.cc
/* template cbdata_type CbDataList::CBDATA_CbDataList;
*/

Then 2) & 3).

/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  -I../.. 
-I../../include -I../../src -I../../include   -I/usr/include/libxml2  -Werror 
-Wall -Wpointer-arith -Wwrite-strings -Wcomments  -g -O2 -c -o Asn.lo Asn.cc
 g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../src -I../../include 
-I/usr/include/libxml2 -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments 
-g -O2 -c Asn.cc  -fno-common -DPIC -o .libs/Asn.o
Asn.cc:44: error: expected unqualified-id before 'template'
make[3]: *** [Asn.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

 Original-Nachricht 
> I wonder.
> 
> Lets experiment then. If you would please:
> 
>  1. comment out the annoying line:
> template cbdata_type CbDataList::CBDATA_CbDataList;
> 
> 
>  2. add this to src/asn.cc:
> 
> class FubarA {
> public:
>   char a;
> }
> template cbdata_type CbDataList::CBDATA_CbDataList;
> 
> 
> 3. add this to acl/Asn.cc:
> 
> class FubarB {
> public:
>   char b;
> }
> template cbdata_type CbDataList::CBDATA_CbDataList;
> 
> 
> 4. rebuild and see what happens...
> 
> 
> 
> Amos
> 

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-10 Thread Amos Jeffries
> Or, maybe another case of OS X's case-insensitiveness?
>
> find . -iname 'asn*'
> ./include/asn1.h
> ./snmplib/asn1.c
> ./src/acl/Asn.cc
> ./src/acl/Asn.h
> ./src/asn.cc
>

I wonder.

Lets experiment then. If you would please:

 1. comment out the annoying line:
template cbdata_type CbDataList::CBDATA_CbDataList;


 2. add this to src/asn.cc:

class FubarA {
public:
  char a;
}
template cbdata_type CbDataList::CBDATA_CbDataList;


3. add this to acl/Asn.cc:

class FubarB {
public:
  char b;
}
template cbdata_type CbDataList::CBDATA_CbDataList;


4. rebuild and see what happens...



Amos



> less src/acl/Asn.h
> ...
> private:
> static ACL::Prototype SourceRegistryProtoype;
> static ACLStrategised SourceRegistryEntry_;
> static ACL::Prototype DestinationRegistryProtoype;
> static ACLStrategised DestinationRegistryEntry_;
> CbDataList *data;
> };
>
>  Original-Nachricht 
> From my untrained eyes, it seems to be the following files
>
> /usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: multiple definitions of
> symbol CbDataList::CBDATA_CbDataList
> asn.o definition of CbDataList::CBDATA_CbDataList  in section
> (__DATA,__data)
> acl/.libs/libacls.a(SslErrorData.o) definition of
> CbDataList::CBDATA_CbDataList  in section (__DATA,__data)
> collect2: ld returned 1 exit status
>
> 1.
> ./include/CbDataList.h
>
> /** \cond AUTODOCS-IGNORE */
> template 
> cbdata_type CbDataList::CBDATA_CbDataList = CBDATA_UNKNOWN;
> /** \endcond */
>
> 2.
> ./src/asn.cc
>
> /// \cond AUTODOCS-IGNORE
> template cbdata_type CbDataList::CBDATA_CbDataList;
> /// \endcond
>
> 3.
> ./src/acl/SslErrorData.cc
>
> /* explicit instantiation required for some systems */
> /** \cond AUTODOCS-IGNORE */
> template cbdata_type CbDataList::CBDATA_CbDataList;
> /** \endcond */
>
>
>  Original-Nachricht 
>> > 2. In src/asn.cc, comment out:
>> > template cbdata_type CbDataList::CBDATA_CbDataList;
>>
>> I can't see how or what is clashing with CbDataList though, is
>> there
>> any better info when just the (1) above is done?
>>
>> Amos
>>
>
> --
> Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate +
> Telefonanschluss für nur 17,95 Euro/mtl.!*
> http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a
>




Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-10 Thread vollkommen
Or, maybe another case of OS X's case-insensitiveness?

find . -iname 'asn*'
./include/asn1.h
./snmplib/asn1.c
./src/acl/Asn.cc
./src/acl/Asn.h
./src/asn.cc

less src/acl/Asn.h
...
private:
static ACL::Prototype SourceRegistryProtoype;
static ACLStrategised SourceRegistryEntry_;
static ACL::Prototype DestinationRegistryProtoype;
static ACLStrategised DestinationRegistryEntry_;
CbDataList *data;
};

 Original-Nachricht 
>From my untrained eyes, it seems to be the following files

/usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: multiple definitions of symbol 
CbDataList::CBDATA_CbDataList
asn.o definition of CbDataList::CBDATA_CbDataList  in section 
(__DATA,__data)
acl/.libs/libacls.a(SslErrorData.o) definition of 
CbDataList::CBDATA_CbDataList  in section (__DATA,__data)
collect2: ld returned 1 exit status

1.
./include/CbDataList.h

/** \cond AUTODOCS-IGNORE */
template 
cbdata_type CbDataList::CBDATA_CbDataList = CBDATA_UNKNOWN;
/** \endcond */

2.
./src/asn.cc

/// \cond AUTODOCS-IGNORE
template cbdata_type CbDataList::CBDATA_CbDataList;
/// \endcond

3.
./src/acl/SslErrorData.cc

/* explicit instantiation required for some systems */
/** \cond AUTODOCS-IGNORE */
template cbdata_type CbDataList::CBDATA_CbDataList;
/** \endcond */


 Original-Nachricht 
> > 2. In src/asn.cc, comment out:
> > template cbdata_type CbDataList::CBDATA_CbDataList;
> 
> I can't see how or what is clashing with CbDataList though, is there
> any better info when just the (1) above is done?
> 
> Amos
> 

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-10 Thread vollkommen
>From my untrained eyes, it seems to be the following files

/usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: multiple definitions of symbol 
CbDataList::CBDATA_CbDataList
asn.o definition of CbDataList::CBDATA_CbDataList  in section 
(__DATA,__data)
acl/.libs/libacls.a(SslErrorData.o) definition of 
CbDataList::CBDATA_CbDataList  in section (__DATA,__data)
collect2: ld returned 1 exit status

1.
./include/CbDataList.h

/** \cond AUTODOCS-IGNORE */
template 
cbdata_type CbDataList::CBDATA_CbDataList = CBDATA_UNKNOWN;
/** \endcond */

2.
./src/asn.cc

/// \cond AUTODOCS-IGNORE
template cbdata_type CbDataList::CBDATA_CbDataList;
/// \endcond

3.
./src/acl/SslErrorData.cc

/* explicit instantiation required for some systems */
/** \cond AUTODOCS-IGNORE */
template cbdata_type CbDataList::CBDATA_CbDataList;
/** \endcond */


 Original-Nachricht 
> > 2. In src/asn.cc, comment out:
> > template cbdata_type CbDataList::CBDATA_CbDataList;
> 
> I can't see how or what is clashing with CbDataList though, is there
> any better info when just the (1) above is done?
> 
> Amos
> 

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-10 Thread Amos Jeffries
> I see in the changelog that ClientInfo.h issue has been fixed. So I gave
> squid-3.HEAD-20090510 a whirl. It erred out:
>
> rm -f .libs/squidS.c .libs/squid.nm .libs/squid.nmS .libs/squid.nmT
> g++ -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -g -O2
> .libs/squidS.o -g -o squid AclRegs.o AuthReg.o access_log.o asn.o
> AsyncEngine.o cache_cf.o ProtoPort.o CacheDigest.o cache_manager.o carp.o
> cbdata.o ChunkedCodingParser.o client_db.o client_side.o
> client_side_reply.o client_side_request.o BodyPipe.o clientStream.o
> CompletionDispatcher.o comm_select.o comm_select_win32.o comm_poll.o
> comm_epoll.o comm_kqueue.o ConfigOption.o ConfigParser.o debug.o
> delay_pools.o DelayId.o DelayBucket.o DelayConfig.o DelayPool.o
> DelaySpec.o DelayTagged.o DelayUser.o DelayVector.o NullDelayId.o disk.o
> DiskIO/DiskIOModule.o DiskIO/ReadRequest.o DiskIO/WriteRequest.o dlink.o
> dns_internal.o errorpage.o ETag.o event.o EventLoop.o external_acl.o
> ExternalACLEntry.o fd.o fde.o filemap.o forward.o fqdncache.o ftp.o
> gopher.o helper.o htcp.o http.o HttpStatusLine.o HttpHdrCc.o
> HttpHdrRange.o HttpHdrSc.o HttpHdrScTarget.o HttpHdrContRange.o
> HttpHeader.o HttpHeaderTools.o HttpBody.o HttpMsg.o HttpReply.o
> HttpRequest.o HttpRequestMethod.o icp_v2.o icp_v3.o int.o internal.o ipc.o
> ipcache.o list.o logfile.o main.o mem.o mem_node.o MemBuf.o MemObject.o
> mime.o multicast.o neighbors.o Packer.o Parsing.o pconn.o peer_digest.o
> peer_select.o peer_sourcehash.o peer_userhash.o redirect.o referer.o
> refresh.o RemovalPolicy.o send-announce.o snmp_core.o snmp_agent.o
> SquidNew.o ssl_support.o stat.o StatHist.o String.o stmem.o store.o
> StoreFileSystem.o store_io.o StoreIOState.o store_client.o store_digest.o
> store_dir.o store_key_md5.o store_log.o store_rebuild.o store_swapin.o
> store_swapmeta.o store_swapout.o StoreMeta.o StoreMetaMD5.o StoreMetaSTD.o
> StoreMetaSTDLFS.o StoreMetaUnpacker.o StoreMetaURL.o StoreMetaVary.o
> StoreSwapLogData.o Server.o SwapDir.o time.o tools.o tunnel.o unlinkd.o
> url.o URLScheme.o urn.o useragent.o wccp.o wccp2.o whois.o wordlist.o
> LoadableModule.o LoadableModules.o DiskIO/DiskIOModules_gen.o
> repl_modules.o globals.o string_arrays.o
> DiskIO/Blocking/BlockingDiskIOModule.o -Wl,-bind_at_load
> ./.libs/libsquid.a auth/.libs/libacls.a acl/.libs/libacls.a
> acl/.libs/libstate.a auth/.libs/libauth.a acl/.libs/libapi.a
> base/.libs/libbase.a ip/.libs/libip.a fs/.libs/libfs.a
> icmp/.libs/libicmp.a icmp/.libs/libicmp-core.a
> -L/Users/raymont/squid-3.HEAD-20090510/lib repl/libheap.a repl/liblru.a
> libBlocking.a ../snmplib/libsnmp.a adaptation/.libs/libadaptation.a -lssl
> -lcrypto -lmiscutil -lm -lresolv ../lib/libLtdl/.libs/libltdlc.a -ldl
> /usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: multiple definitions of
> symbol ACLStrategised::prepareForUse()
> acl/.libs/libacls.a(MyPort.o) definition of
> ACLStrategised::prepareForUse() in section (__TEXT,__text)
> acl/.libs/libacls.a(SslError.o) definition of
> ACLStrategised::prepareForUse() in section (__TEXT,__text)
> /usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: multiple definitions of
> symbol __ZN14ACLStrategisedIiE13prepareForUseEv.eh
> acl/.libs/libacls.a(MyPort.o) definition of absolute
> __ZN14ACLStrategisedIiE13prepareForUseEv.eh (value 0x0)
> acl/.libs/libacls.a(SslError.o) definition of absolute
> __ZN14ACLStrategisedIiE13prepareForUseEv.eh (value 0x0)
> /usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: multiple definitions of
> symbol ACLStrategised::Pool
> acl/.libs/libacls.a(MyPort.o) definition of ACLStrategised::Pool
> in section (__DATA,__data)
> acl/.libs/libacls.a(SslError.o) definition of ACLStrategised::Pool
>  in section (__DATA,__data)
> /usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: multiple definitions of
> symbol ACLStrategised::match(ACLChecklist*)
> acl/.libs/libacls.a(MyPort.o) definition of
> ACLStrategised::match(ACLChecklist*) in section (__TEXT,__text)
> acl/.libs/libacls.a(SslError.o) definition of
> ACLStrategised::match(ACLChecklist*) in section (__TEXT,__text)
> /usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: multiple definitions of
> symbol ACLStrategised::match(int const&)
> acl/.libs/libacls.a(MyPort.o) definition of ACLStrategised::match(int
> const&)in section (__TEXT,__text)
> acl/.libs/libacls.a(SslError.o) definition of
> ACLStrategised::match(int const&)in section (__TEXT,__text)
> /usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: multiple definitions of
> symbol ACLStrategised::parse()
> acl/.libs/libacls.a(MyPort.o) definition of ACLStrategised::parse()
>  in section (__TEXT,__text)
> acl/.libs/libacls.a(SslError.o) definition of ACLStrategised::parse()
>in section (__TEXT,__text)
> /usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: multiple definitions of
> symbol __ZN14ACLStrategisedIiE5parseEv.eh
> acl/.libs/libacls.a(MyPort.o) definition of absolute
> __ZN14ACLStrategisedIiE5parseEv.eh (value 0x0)
> acl/.libs/libacls.a(SslError.o) definition of absolute
> __ZN14ACLStrate

Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-10 Thread Amos Jeffries
> I see in the changelog that ClientInfo.h issue has been fixed. So I gave
> squid-3.HEAD-20090510 a whirl. It erred out:
>

> /usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: multiple definitions of
> symbol ACLStrategised::Pool

>
> These appear to be due to "duplicate template instantiation", and a
> combination of strict enforcement by Apple and GCC 4.x. After trying a
> variety of techniques such as extern, inline, or pragma
> interface/implemenation in the header files, I finally found the following
> workaround that got it built successfully:
>
> 1. In src/acl/MyPort.cc, comment out:
> template class ACLStrategised;
>
> 2. In src/asn.cc, comment out:
> template cbdata_type CbDataList::CBDATA_CbDataList;
>

Aye, we have a perpetual problem with these templates on Apple.
The fix is a quick one, merging the two instantiations into one shared.
I'll get that done shortly.
Looks like that was the last of your build issues?


> Now I'm able to browse IPv6 sites without cache-peering with Polipo 6to4
> relay. However, Squid 3 Head standalone seems to have problem with a
> particular site, as seen in cache.log: ipcacheParse: No Address records in
> response to 'ipv6.google.com'.

Ah, this is a problem between Squid and the recursive resolver its using.

Squid currently depends on the resolver to do recursion properly. When the
resolver is too strictly limited it returns no results for a CNAME that
crosses between domains ie:
  ipv6.goole.com -> blah.google.net -> IP  is changing TLD before it gets
the IP.

It is a bit weird to see that on google. I would expect that particular
one to work since its only ipv6.google.com->ipv6.l.google.com -> IP  which
does not change TLD or base 'google.com' domain.

Amos

>
>  Original-Nachricht 
> Attached please find the make.log of squid-3.HEAD-20090504. It erred out
> looking for a non-existent ClientInfo.h.
>
> ./configure \
> --build=i686-apple-darwin \
> --mandir=/usr/local/share/man \
> --with-large-files \
> --disable-ident-lookups --disable-dependency-tracking \
> --enable-filters --enable-ssl \
> --enable-icap-client \
> --enable-removal-policies=heap,lru \
> --enable-external-acl-helpers=ip_user,ldap_group \
> --enable-auth=basic,digest,ntlm,negotiate \
> --enable-basic-auth-helpers=PAM,NCSA,LDAP,multi-domain-NTLM \
> --enable-digest-auth-helpers=password \
> --enable-delay-pools \
> --enable-multicast-miss \
> --with-filedescriptors=16384 --with-dl \
> --enable-gnuregex \
> --enable-zph-qos \
>
>  Original-Nachricht 
>> Okay. The needed changes are now made to 3.HEAD and the many bugs which
>> were uncovered doing it appear to have been zapped now.
>>
>> 3.HEAD snapshot can be found at:
>>   http://www.squid-cache.org/Versions/v3/HEAD/
>>
>> Could you try with that code please and let us know if there are any
>> additional problems or even good results.
>>
>> Cheers
>> Amos





Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-10 Thread vollkommen
Apparently, I spoke too soon. It's been crashing with Bus error, even when 
started manually (not through launchd).

Date/Time:  2009-05-10 16:48:56.722 -0400
OS Version: 10.4.11 (Build 8S2167)
Report Version: 4

Command: squid
Path:/usr/local/squid/sbin/squid
Parent:  launchd [1]

Version: ??? (???)

PID:24312
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:  KERN_PROTECTION_FAILURE (0x0002) at 0x0008

Thread 0 Crashed:
0   squid   0x001aed30 _static_initialization_and_destruction_0(int, int) + 
96 (AuthReg.cc:21)
1   dyld0x8fe0fe90 
ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 170
2   dyld0x8fe0a236 
ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&) + 160
3   dyld0x8fe0c6de 
ImageLoader::runInitializers(ImageLoader::LinkContext const&) + 90
4   dyld0x8fe03070 dyld::initializeMainExecutable() + 112
5   squid   0x282e _start + 148
6   squid   0x2799 start + 41

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00229cf0  ebx: 0x001aecdc  ecx: 0x00113d28  edx: 0x
  edi: 0x8fe54860  esi: 0x0001  ebp: 0xbdd8  esp: 0xbdc0
   ss: 0x001f  efl: 0x00010282  eip: 0x001aed30   cs: 0x0017
   ds: 0x001f   es: 0x001f   fs: 0x   gs: 0x0037

Binary Images Description:
0x1000 -   0x1edfff squid   /usr/local/squid/sbin/squid
0x8fe0 - 0x8fe4afff dyld 46.16  /usr/lib/dyld
0x9000 - 0x90171fff libSystem.B.dylib   /usr/lib/libSystem.B.dylib
0x901c1000 - 0x901c3fff libmathCommon.A.dylib   
/usr/lib/system/libmathCommon.A.dylib
0x90aff000 - 0x90b63fff libstdc++.6.dylib   /usr/lib/libstdc++.6.dylib
0x90bd2000 - 0x90bd9fff libgcc_s.1.dylib/usr/lib/libgcc_s.1.dylib
0x9351 - 0x9352dfff libresolv.9.dylib   /usr/lib/libresolv.9.dylib
0x952bd000 - 0x9536 libcrypto.0.9.7.dylib   /usr/lib/libcrypto.0.9.7.dylib
0x953cc000 - 0x953f1fff libssl.0.9.7.dylib  /usr/lib/libssl.0.9.7.dylib

 Original-Nachricht 
I see in the changelog that ClientInfo.h issue has been fixed. So I gave 
squid-3.HEAD-20090510 a whirl. It erred out:

rm -f .libs/squidS.c .libs/squid.nm .libs/squid.nmS .libs/squid.nmT
g++ -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -g -O2 
.libs/squidS.o -g -o squid AclRegs.o AuthReg.o access_log.o asn.o AsyncEngine.o 
cache_cf.o ProtoPort.o CacheDigest.o cache_manager.o carp.o cbdata.o 
ChunkedCodingParser.o client_db.o client_side.o client_side_reply.o 
client_side_request.o BodyPipe.o clientStream.o CompletionDispatcher.o 
comm_select.o comm_select_win32.o comm_poll.o comm_epoll.o comm_kqueue.o 
ConfigOption.o ConfigParser.o debug.o delay_pools.o DelayId.o DelayBucket.o 
DelayConfig.o DelayPool.o DelaySpec.o DelayTagged.o DelayUser.o DelayVector.o 
NullDelayId.o disk.o DiskIO/DiskIOModule.o DiskIO/ReadRequest.o 
DiskIO/WriteRequest.o dlink.o dns_internal.o errorpage.o ETag.o event.o 
EventLoop.o external_acl.o ExternalACLEntry.o fd.o fde.o filemap.o forward.o 
fqdncache.o ftp.o gopher.o helper.o htcp.o http.o HttpStatusLine.o HttpHdrCc.o 
HttpHdrRange.o HttpHdrSc.o HttpHdrScTarget.o HttpHdrContRange.o HttpHeader.o 
HttpHeaderTools.o HttpBody.o HttpMsg.o HttpReply.o HttpRequest.o 
HttpRequestMethod.o icp_v2.o icp_v3.o int.o internal.o ipc.o ipcache.o list.o 
logfile.o main.o mem.o mem_node.o MemBuf.o MemObject.o mime.o multicast.o 
neighbors.o Packer.o Parsing.o pconn.o peer_digest.o peer_select.o 
peer_sourcehash.o peer_userhash.o redirect.o referer.o refresh.o 
RemovalPolicy.o send-announce.o snmp_core.o snmp_agent.o SquidNew.o 
ssl_support.o stat.o StatHist.o String.o stmem.o store.o StoreFileSystem.o 
store_io.o StoreIOState.o store_client.o store_digest.o store_dir.o 
store_key_md5.o store_log.o store_rebuild.o store_swapin.o store_swapmeta.o 
store_swapout.o StoreMeta.o StoreMetaMD5.o StoreMetaSTD.o StoreMetaSTDLFS.o 
StoreMetaUnpacker.o StoreMetaURL.o StoreMetaVary.o StoreSwapLogData.o Server.o 
SwapDir.o time.o tools.o tunnel.o unlinkd.o url.o URLScheme.o urn.o useragent.o 
wccp.o wccp2.o whois.o wordlist.o LoadableModule.o LoadableModules.o 
DiskIO/DiskIOModules_gen.o repl_modules.o globals.o string_arrays.o 
DiskIO/Blocking/BlockingDiskIOModule.o -Wl,-bind_at_load  ./.libs/libsquid.a 
auth/.libs/libacls.a acl/.libs/libacls.a acl/.libs/libstate.a 
auth/.libs/libauth.a acl/.libs/libapi.a base/.libs/libbase.a ip/.libs/libip.a 
fs/.libs/libfs.a icmp/.libs/libicmp.a icmp/.libs/libicmp-core.a 
-L/Users/raymont/squid-3.HEAD-20090510/lib repl/libheap.a repl/liblru.a 
libBlocking.a ../snmplib/libsnmp.a adaptation/.libs/libadaptation.a -lssl 
-lcrypto -lmiscutil -lm -lresolv ../lib/libLtdl/.libs/libltdlc.a -ldl  
/usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: multiple definitions of symbol 
ACLStrategised::prepareForUse()
acl/.libs/libacls.a(MyPort.o) definition of 
ACLStrategised::prepareForUse() in section (__TEXT,__text)
acl/.libs/libacls.a(SslError.o) definition of 
ACLStrat

Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-05-04 Thread Amos Jeffries

Amos Jeffries wrote:

Found It!

grr...  src/acl/Time.h

Your filesystem appears to be case-insensitive.

We already worked out what the fix should be since its needed elsewhere 
for future changes. I'm testing to see what the effect is on current 
code and will commit ASAP.


Amos


Okay. The needed changes are now made to 3.HEAD and the many bugs which 
were uncovered doing it appear to have been zapped now.


3.HEAD snapshot can be found at:
 http://www.squid-cache.org/Versions/v3/HEAD/

Could you try with that code please and let us know if there are any 
additional problems or even good results.


Cheers
Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
  Current Beta Squid 3.1.0.7


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-04-22 Thread vollkommen
Great! Thanks. Yes, the HFS+ file system is case-insensitive but case-aware and 
case-preserving.

I look forward to being able to build 3.1.

 Original-Nachricht 
> Found It!
> 
> grr...  src/acl/Time.h
> 
> Your filesystem appears to be case-insensitive.
> 
> We already worked out what the fix should be since its needed elsewhere 
> for future changes. I'm testing to see what the effect is on current 
> code and will commit ASAP.
> 
> Amos
> -- 
> Please be using
>Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
>Current Beta Squid 3.1.0.7

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-04-22 Thread Amos Jeffries

Found It!

grr...  src/acl/Time.h

Your filesystem appears to be case-insensitive.

We already worked out what the fix should be since its needed elsewhere 
for future changes. I'm testing to see what the effect is on current 
code and will commit ASAP.


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
  Current Beta Squid 3.1.0.7


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-04-21 Thread vollkommen
Yes, that's a fresh download of the 20090420 src tarball with  
macosx_fatal_fails_mk2.patch applied. Assuming "./time.h:38" was referring to 
/usr/include/time.h, I'm attaching the two time.h files on my OS X 10.4.11 
below. 

time1.h => /usr/include/time.h
time2.h => /usr/include/sys/time.h

Hopefully, these files can shed more light on it. There're other copies of 
"time.h" scattered all over, most notably, 
/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/sys/time.h, I 
don't think they're involved.

I'll provide the remote access info separately off-the-list.

 Original-Nachricht 
> Okay! this is much more helpful. Key bit is:
> 
> In file included from ../../include/Array.h:40,
>   from ../../src/acl/Acl.h:38,
>   from ./time.h:38,
>   from /usr/include/sys/time.h:235,
>   from /usr/include/sys/select.h:148,
>   from ../../include/squid_types.h:74,
>   from ../../compat/compat.h:45,
>   from ../../include/config.h:58,
>   from Acl.cc:34:
> ../../include/fatal.h:9: error: expected initializer before 
> 'PRINTF_FORMAT_ARG1'
> 
> 
> Seems we have a problem with system includes including squid includes 
> and nasty loop begins. With time.h at fault.
> 
> Squid does not even have a file called time.h to get confused with 
> (carefully calling our file SquidTime.h to be sure of that), and I 
> seriously doubt any system file would normally include a squid-pathed
> file.
> 
> I'm no more closer to knowing how or how to prevent, but at least we 
> know whats happening now.
> 
> Is this a perfectly clean build attempt, with no patches other than 
> maybe the ones I've given you during the tracing?
> 

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger01
/*
 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
 *
 * @APPLE_LICENSE_HEADER_START@
 * 
 * This file contains Original Code and/or Modifications of Original Code
 * as defined in and that are subject to the Apple Public Source License
 * Version 2.0 (the 'License'). You may not use this file except in
 * compliance with the License. Please obtain a copy of the License at
 * http://www.opensource.apple.com/apsl/ and read it before using this
 * file.
 * 
 * The Original Code and all software distributed under the License are
 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 * Please see the License for the specific language governing rights and
 * limitations under the License.
 * 
 * @APPLE_LICENSE_HEADER_END@
 */
/*
 * Copyright (c) 1989, 1993
 *  The Regents of the University of California.  All rights reserved.
 * (c) UNIX System Laboratories, Inc.
 * All or some portions of this file are derived from material licensed
 * to the University of California by American Telephone and Telegraph
 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
 * the permission of UNIX System Laboratories, Inc.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *notice, this list of conditions and the following disclaimer in the
 *documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *must display the following acknowledgement:
 *  This product includes software developed by the University of
 *  California, Berkeley and its contributors.
 * 4. Neither the name of the University nor the names of its contributors
 *may be used to endorse or promote products derived from this software
 *without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 

Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-04-21 Thread Amos Jeffries

vollkom...@gmx.net wrote:

Thanks for pointing these out. I'm not sure where the IPv6 headers are on OS X 
or if auto-detection would work so I'm leaving --enable-ipv6 in just to be safe.



:) enable only turns on the auto-detection.
Scan the config.log for "if PF_INET6 is available" says yes to confirm 
if its detected.



I'll try to set up SSH for remote access on my box (behind NAT) in a bit. In the 
meantime, I'm attaching a "make" output with gcc 4.2.1 (Apple Inc. build 5564) 
that appears to produce more verbose output. Maybe that'd provide a clue to the issue 
that gcc 4.0.1 doesn't.



Okay! this is much more helpful. Key bit is:

In file included from ../../include/Array.h:40,
 from ../../src/acl/Acl.h:38,
 from ./time.h:38,
 from /usr/include/sys/time.h:235,
 from /usr/include/sys/select.h:148,
 from ../../include/squid_types.h:74,
 from ../../compat/compat.h:45,
 from ../../include/config.h:58,
 from Acl.cc:34:
../../include/fatal.h:9: error: expected initializer before 
'PRINTF_FORMAT_ARG1'



Seems we have a problem with system includes including squid includes 
and nasty loop begins. With time.h at fault.


Squid does not even have a file called time.h to get confused with 
(carefully calling our file SquidTime.h to be sure of that), and I 
seriously doubt any system file would normally include a squid-pathed file.


I'm no more closer to knowing how or how to prevent, but at least we 
know whats happening now.


Is this a perfectly clean build attempt, with no patches other than 
maybe the ones I've given you during the tracing?





 Original-Nachricht 

Oooh. I don't think its relevant, but some cleanup is needed there...

Drop:
 --with-ipv6-split-stack;  it was partially added for Windows XP but never
completed due to windows VCS issues. Squid does dual-stack nicely.

 --enable-ipv6;  It's auto-detected. Just ensure you have the proper
v6-capable kernel and headers present.

 --enable-dl-malloc; obsolete

 --enable-storeio=coss; COSS has too many bugs in Squid-3 to be considered
usable.


No change in the trace. This is really, really weird. Am I able to get
shell access to the box you build these on? I'd like to test the build a
bit and first-hand is best for that.



Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
  Current Beta Squid 3.1.0.7


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-04-20 Thread Amos Jeffries
> Attached please find the new "make" outut, after:
>
> # patch -p0 < macosx_fatal_fails_mk2.patch
> patching file compat/compat_shared.h
> patching file include/config.h
> patching file include/fatal.h
>
> Here're the ./configure options I used:
>
> ./configure \
> --build=i686-apple-darwin \
> --with-large-files \
> --disable-ident-lookups --disable-dependency-tracking \
> --enable-ipv6 \
> --enable-filters --enable-snmp --enable-ssl \
> --enable-icap-client \
> --enable-removal-policies=heap,lru \
> --enable-external-acl-helpers=ip_user,ldap_group,unix_group,wbinfo_group \
> --enable-auth=basic,digest,ntlm,negotiate \
> --enable-basic-auth-helpers=PAM,NCSA,LDAP,MSNT,NCSA,SMB,YP,getpwnam,multi-domain-NTLM
> \
> --enable-negotiate-auth-helpers=squid_kerb_auth \
> --enable-digest-auth-helpers=password \
> --enable-ntlm-auth-helpers=fakeauth \
> --enable-delay-pools \
> --enable-multicast-miss \
> --with-filedescriptors=16384 --with-dl \
> --enable-dl-malloc \
> --enable-gnuregex \
> --enable-storeio=coss \
> --with-ipv6-split-stack \
>

Oooh. I don't think its relevant, but some cleanup is needed there...

Drop:
 --with-ipv6-split-stack;  it was partially added for Windows XP but never
completed due to windows VCS issues. Squid does dual-stack nicely.

 --enable-ipv6;  It's auto-detected. Just ensure you have the proper
v6-capable kernel and headers present.

 --enable-dl-malloc; obsolete

 --enable-storeio=coss; COSS has too many bugs in Squid-3 to be considered
usable.


No change in the trace. This is really, really weird. Am I able to get
shell access to the box you build these on? I'd like to test the build a
bit and first-hand is best for that.

Amos




Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-04-20 Thread Amos Jeffries

vollkom...@gmx.net wrote:

Sorry, third try...

 Original-Nachricht 

Hmm, I have a small suspicion... what happens if you change the top of
src/acl/Acl.cc

from:
   #include "config.h"

to:
   #include "squid.h"

or to:
   #include "include/config.h"

Amos
--
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
   Current Beta Squid 3.1.0.7




It does appear as if config.h is being skipped for some reason.
Possibly a double-include, lets try this attached patch (-p0) on a clean 
copy of todays snapshot.


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
  Current Beta Squid 3.1.0.7
=== modified file 'compat/compat_shared.h'
--- compat/compat_shared.h	2009-04-07 14:14:19 +
+++ compat/compat_shared.h	2009-04-20 12:52:26 +
@@ -210,4 +210,20 @@
 #endif
 
 
+/**
+ * gcc requires some special function formatting hints.
+ *
+ * gcc doesn't recognize the Windows native 64 bit formatting tags causing
+ * the compile fail, so we must disable the check on native Windows.
+ */
+#if __GNUC__ && !defined(_SQUID_MSWIN_)
+#define PRINTF_FORMAT_ARG1 __attribute__ ((format (printf, 1, 2)))
+#define PRINTF_FORMAT_ARG2 __attribute__ ((format (printf, 2, 3)))
+#define PRINTF_FORMAT_ARG3 __attribute__ ((format (printf, 3, 4)))
+#else
+#define PRINTF_FORMAT_ARG1
+#define PRINTF_FORMAT_ARG2
+#define PRINTF_FORMAT_ARG3
+#endif
+
 #endif /* _SQUID_COMPAT_SHARED_H */

=== modified file 'include/config.h'
--- include/config.h	2009-03-03 02:52:23 +
+++ include/config.h	2009-04-20 12:50:52 +
@@ -237,20 +237,6 @@
 #define squid_srandom srand
 #endif
 
-/* gcc doesn't recognize the Windows native 64 bit formatting tags causing
- * the compile fail, so we must disable the check on native Windows.
- */
-
-#if __GNUC__ && !defined(_SQUID_MSWIN_)
-#define PRINTF_FORMAT_ARG1 __attribute__ ((format (printf, 1, 2)))
-#define PRINTF_FORMAT_ARG2 __attribute__ ((format (printf, 2, 3)))
-#define PRINTF_FORMAT_ARG3 __attribute__ ((format (printf, 3, 4)))
-#else
-#define PRINTF_FORMAT_ARG1
-#define PRINTF_FORMAT_ARG2
-#define PRINTF_FORMAT_ARG3
-#endif
-
 /*
  * Determine if this is a leak check build or standard
  */

=== modified file 'include/fatal.h'
--- include/fatal.h	2009-02-15 13:01:35 +
+++ include/fatal.h	2009-04-20 12:53:08 +
@@ -1,8 +1,10 @@
+#ifndef SQUID_CONFIG_H
+#include "config.h"
+#endif
+
 #ifndef SQUID_FATAL_H
 #define SQUID_FATAL_H
 
-#include "config.h"
-
 SQUIDCEXTERN void fatal(const char *message);
 SQUIDCEXTERN void fatalf(const char *fmt,...) PRINTF_FORMAT_ARG1;
 SQUIDCEXTERN void fatal_dump(const char *message);



Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-04-19 Thread Amos Jeffries

gewe...@gmx.net wrote:

Hello,

I'm wondering if there is any follow-up to this issue. I'd love to try out 
3.1's IPv6 feature.



Sorry, I suddenly got busy with family this weekend.
I'm planning on working on it sometime the next few days this week.

Amos


 Original-Nachricht ----
Betreff: Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

Sorry, third try...

 Original-Nachricht 

Hmm, I have a small suspicion... what happens if you change the top of
src/acl/Acl.cc

from:
   #include "config.h"

to:
   #include "squid.h"

or to:
   #include "include/config.h"

Amos
--
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
   Current Beta Squid 3.1.0.7





--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
  Current Beta Squid 3.1.0.7


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-04-13 Thread vollkommen
Oops, forgot to attach...

 Original-Nachricht 
>
> Hmm, I have a small suspicion... what happens if you change the top of
> src/acl/Acl.cc
>
> from:
>#include "config.h"
>
> to:
>#include "squid.h"
>
> or to:
>#include "include/config.h"
>
> Amos
> --
> Please be using
>Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
>Current Beta Squid 3.1.0.7

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger01


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-04-13 Thread vollkommen
Attached please find the outputs from the two variants.

 Original-Nachricht 
> 
> Hmm, I have a small suspicion... what happens if you change the top of 
> src/acl/Acl.cc
> 
> from:
>#include "config.h"
> 
> to:
>#include "squid.h"
> 
> or to:
>#include "include/config.h"
> 
> Amos
> -- 
> Please be using
>Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
>Current Beta Squid 3.1.0.7

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-04-12 Thread Amos Jeffries

vollkom...@gmx.net wrote:

Thanks for taking a look at it. "Make" still errs out, after applying the patch 
(patch -p0 < macosx_printf_test.patch). Please find the new output in the attachment.



Hmm, I have a small suspicion... what happens if you change the top of 
src/acl/Acl.cc


from:
  #include "config.h"

to:
  #include "squid.h"

or to:
  #include "include/config.h"

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
  Current Beta Squid 3.1.0.7


Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-04-12 Thread Amos Jeffries

vollkom...@gmx.net wrote:

Please find the full "make" output below:




 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../.. -I../../include 
-I../../src -I../../include -I/usr/include/libxml2 -Werror -Wall 
-Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -MT AsyncJob.lo -MD -MP -MF 
.deps/AsyncJob.Tpo -c AsyncJob.cc  -fno-common -DPIC -o .libs/AsyncJob.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../.. -I../../include -I../../src 
-I../../include -I/usr/include/libxml2 -Werror -Wall -Wpointer-arith -Wwrite-strings 
-Wcomments -g -O2 -MT AsyncJob.lo -MD -MP -MF .deps/AsyncJob.Tpo -c AsyncJob.cc -o 
AsyncJob.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CXX --mode=link g++ -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments  -g -O2  -g -o libbase.la   AsyncJob.lo  
ar cru .libs/libbase.a .libs/AsyncJob.o

ranlib .libs/libbase.a
creating libbase.la
(cd .libs && rm -f libbase.la && ln -s ../libbase.la libbase.la)
Making all in acl
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. 
-I../../include -I../.. -I../../include -I../../src -I../../include   
-I/usr/include/libxml2  -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments  -g -O2 
-MT Acl.lo -MD -MP -MF ".deps/Acl.Tpo" -c -o Acl.lo Acl.cc; \
then mv -f ".deps/Acl.Tpo" ".deps/Acl.Plo"; else rm -f ".deps/Acl.Tpo"; exit 1; 
fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../.. -I../../include 
-I../../src -I../../include -I/usr/include/libxml2 -Werror -Wall 
-Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -MT Acl.lo -MD -MP -MF 
.deps/Acl.Tpo -c Acl.cc  -fno-common -DPIC -o .libs/Acl.o
../../include/fatal.h:7: error: expected initializer before 'PRINTF_FORMAT_ARG1'


After some discussion on IRC we have come to the conclusion the cause is 
probably your compiler not defining  __GNUC__ like we are expecting.


Are you able to test and confirm or deny that?
(attached patch -p0 temporarily forces the define)

If possible are you able to track down what alternative definition is 
actually being made instead of __GNU__? so we can make this a permanent 
build-time fix.


Thanks

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
  Current Beta Squid 3.1.0.7
=== modified file 'include/config.h'
--- include/config.h	2009-03-03 02:52:23 +
+++ include/config.h	2009-04-13 04:00:08 +
@@ -241,7 +241,7 @@
  * the compile fail, so we must disable the check on native Windows.
  */
 
-#if __GNUC__ && !defined(_SQUID_MSWIN_)
+#if 1 // __GNUC__ && !defined(_SQUID_MSWIN_)
 #define PRINTF_FORMAT_ARG1 __attribute__ ((format (printf, 1, 2)))
 #define PRINTF_FORMAT_ARG2 __attribute__ ((format (printf, 2, 3)))
 #define PRINTF_FORMAT_ARG3 __attribute__ ((format (printf, 3, 4)))



Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

2009-04-12 Thread Amos Jeffries

Thank you for the report.

Beta release code problems only to squid-dev@squid-cache.org or bugzilla 
in future please. CC'd squid-dev for now.



vollkom...@gmx.net wrote:

I'm running into the following error(s) making squid-3.1.0.7-20090412 on Mac OS 
X 10.4.11 with gcc 4.0.1. Is there any workaround for that?

...
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../.. -I../../include 
-I../../src -I../../include -I/usr/include/libxml2 -Werror -Wall 
-Wpointer-arith -Wwrite-strings -Wcomments -D_REENTRANT -g -O2 -MT AsyncJob.lo 
-MD -MP -MF .deps/AsyncJob.Tpo -c AsyncJob.cc  -fno-common -DPIC -o 
.libs/AsyncJob.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../.. -I../../include -I../../src 
-I../../include -I/usr/include/libxml2 -Werror -Wall -Wpointer-arith -Wwrite-strings 
-Wcomments -D_REENTRANT -g -O2 -MT AsyncJob.lo -MD -MP -MF .deps/AsyncJob.Tpo -c 
AsyncJob.cc -o AsyncJob.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CXX --mode=link g++ -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments  -D_REENTRANT -g -O2  -g -o libbase.la   AsyncJob.lo  
ar cru .libs/libbase.a .libs/AsyncJob.o

ranlib .libs/libbase.a
creating libbase.la
(cd .libs && rm -f libbase.la && ln -s ../libbase.la libbase.la)
Making all in acl
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. 
-I../../include -I../.. -I../../include -I../../src -I../../include   
-I/usr/include/libxml2  -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments  
-D_REENTRANT -g -O2 -MT Acl.lo -MD -MP -MF ".deps/Acl.Tpo" -c -o Acl.lo Acl.cc; 
\
then mv -f ".deps/Acl.Tpo" ".deps/Acl.Plo"; else rm -f ".deps/Acl.Tpo"; exit 1; 
fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../.. -I../../include 
-I../../src -I../../include -I/usr/include/libxml2 -Werror -Wall 
-Wpointer-arith -Wwrite-strings -Wcomments -D_REENTRANT -g -O2 -MT Acl.lo -MD 
-MP -MF .deps/Acl.Tpo -c Acl.cc  -fno-common -DPIC -o .libs/Acl.o
../../include/fatal.h:7: error: expected initializer before 'PRINTF_FORMAT_ARG1'
../../include/SquidNew.h: In function 'void* operator new(size_t)':
/usr/include/c++/4.0.0/new:84: error: previous declaration of 'void* operator 
new(size_t)' with 'C++' linkage
../../include/SquidNew.h:46: error: conflicts with new declaration with 'C' 
linkage
../../include/SquidNew.h: In function 'void operator delete(void*)':
/usr/include/c++/4.0.0/new:86: error: previous declaration of 'void operator 
delete(void*)' with 'C++' linkage
../../include/SquidNew.h:50: error: conflicts with new declaration with 'C' 
linkage
../../include/SquidNew.h: In function 'void* operator new [](size_t)':
/usr/include/c++/4.0.0/new:85: error: previous declaration of 'void* operator 
new [](size_t)' with 'C++' linkage
../../include/SquidNew.h:54: error: conflicts with new declaration with 'C' 
linkag
.
(snipped)


More likely to be a patch to fix this type of problem.

Something appears to be causing all the Squid C++ code to be either 
built or symbolized as C.


Can you resend just to squid-dev with the full trace please?


.
/usr/include/c++/4.0.0/iomanip:251: error: template with C linkage
/usr/include/c++/4.0.0/iomanip:259: error: template with C linkage
../../include/Stack.h:45: error: template with C linkage
../../include/splay.h:15: error: template with C linkage
../../include/splay.h:40: error: template with C linkage
../../include/splay.h:47: error: template with C linkage
../../include/splay.h:51: error: template with C linkage
../../include/splay.h:55: error: template with C linkage
../../include/splay.h:67: error: template with C linkage
../../src/ip/IpAddress.h: In function 'std::ostream& operator<<(std::ostream&, 
const IpAddress&)':
../../src/ip/IpAddress.h:416: error: declaration of C function 'std::ostream& 
operator<<(std::ostream&, const IpAddress&)' conflicts with
../../src/Debug.h:111: error: previous declaration 'std::ostream& 
operator<<(std::ostream&, uint8_t)' here
../../include/RefCount.h: At global scope:
../../include/RefCount.h:43: error: template with C linkage
../../include/RefCount.h:143: error: template with C linkage
../../include/Range.h:44: error: template with C linkage
../../include/Range.h:57: error: template with C linkage
../../src/Packer.h:65: error: expected initializer before 'PRINTF_FORMAT_ARG2'
../../src/SquidString.h:181: error: declaration of C function 'std::ostream& 
operator<<(std::ostream&, const String&)' conflicts with
../../src/ip/IpAddress.h:416: error: previous declaration 'std::ostream& 
operator<<(std::ostream&, const IpAddress&)' here
../../src/structs.h:112: error: 'regex_t' does not name a type
../../src/structs.h:1073: error: 'regex_t' does not name a type
../../src/protos.h:104: error: expected initializer before 'PRINTF_FORMAT_ARG1'
../../src/protos.h:116: error: template with C linkage
../../src/protos.h:271: error: expected initializer before 'PRINTF_FORMAT_ARG3'
../../src/protos.h:562: error: expected initializer before 'PRINTF_FORMAT_ARG1'
../../src/proto