[squid-users] ipv6 on Squid3 OpenBSD

2008-07-21 Thread Dika-v6

hi all,

i have an error when i was installing squid3-HEAD (ipv6 supported).
./configure --enable-ipv6 --with-ipv6-split-stack --enable-pf-transparent

configure has running well, but when i performed make, some error has 
occured, they are:


--

if g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include
-Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -MT 
IPAddress.o -MD -MP -MF .deps/IPAddress.Tpo -c -o IPAddress.o 
IPAddress.cc;  then mv -f .deps/IPAddress.Tpo .deps/IPAddress.Po; 
else rm -f .deps/IPAddress.Tpo; exit 1; fi

IPAddress.cc: In member function `bool IPAddress::IsIPv4() const':
IPAddress.cc:256: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc:257: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc:258: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc: In member function `bool IPAddress::IsIPv6() const':
IPAddress.cc:274: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc:275: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc:276: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc: In member function `bool IPAddress::IsAnyAddr() const':
IPAddress.cc:286: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc:287: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc:288: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc:289: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc: In member function `bool IPAddress::SetIPv4()':
IPAddress.cc:319: error: 'struct in6_addr' has no member named 's6_addr32'
IPAddress.cc:320: error: 'struct in6_addr' has no member named 's6_addr32'
IPAddress.cc:326: error: 'struct in6_addr' has no member named 's6_addr32'
IPAddress.cc: In member function `bool IPAddress::IsLocalhost() const':
IPAddress.cc:343: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc:344: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc:345: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc:346: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc:350: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc: In member function `bool IPAddress::IsNoAddr() const':
IPAddress.cc:380: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc: In member function `bool 
IPAddress::GetReverseString(char*, int)

 const':
IPAddress.cc:458: error: 'const struct in6_addr' has no member named 
's6_addr32

 '
IPAddress.cc: In member function `void IPAddress::Map4to6(const in_addr,
 in6_addr) const':
IPAddress.cc:1210: error: 'struct in6_addr' has no member named 's6_addr32'
IPAddress.cc:1211: error: 'struct in6_addr' has no member named 's6_addr32'

IPAddress.cc:1230: error: 'struct in6_addr' has no member named 's6_addr32'
IPAddress.cc: In member function `void IPAddress::Map6to4(const in6_addr,
 in_addr) const':
IPAddress.cc:1241: error: 'const struct in6_addr' has no member named '
 s6_addr32'
*** Error code 1

---

im sure that ipv6 have fully supported by OpenBSD kernel.
and i have a native ipv6 allocation and running so well in my OpenBSD box.

any sugestions ??

--
dika



Re: [squid-users] ipv6 on Squid3 OpenBSD

2008-07-23 Thread Dika-v6

due to bugs http://www.squid-cache.org/bugs/show_bug.cgi?id=2421
i've applied the patch and reconfigure squid3-HEAD under OpenBSD4.3
installation were running smoothly, --ipv6-enable, but when I tested 
with standard

config at squid.conf with a 'little' customs, I've got this messages.

--
2008/07/23 16:02:58| comm_udp_sendto: FD 4, (family=24) 
192.168.17.12:53: (51)

Network is unreachable
2008/07/23 16:02:58| idnsSendQuery: FD 4: sendto: (51) Network is 
unreachable
2008/07/23 16:03:03| comm_udp_sendto: FD 4, (family=24) 
192.168.17.12:53: (51)

Network is unreachable
2008/07/23 16:03:03| idnsSendQuery: FD 4: sendto: (51) Network is 
unreachable
2008/07/23 16:03:08| comm_udp_sendto: FD 4, (family=24) 
192.168.17.12:53: (51)

Network is unreachable


192.168.17.12 is my nameserver. thats really confuse me because I am 
sure that I

can ping those ip from my squid host, and I've set PF to pass all traffics.

I tried to recompile squid again, the same version and patch but without 
adding

--ipv6-enable, everything's worked properly.

it is another bug (?)
any advice ?

--
dika 




Henrik Nordstrom wrote:

tis 2008-07-22 klockan 00:39 +0700 skrev Dika-v6:

  
configure has running well, but when i performed make, some error has 
occured, they are:

IPAddress.cc: In member function `bool IPAddress::IsIPv4() const':
IPAddress.cc:256: error: 'const struct in6_addr' has no member named 
's6_addr32



Looks like OpenBSD has a slightly different IPv6 API than the other
OS:es Squid-3 has been tested on.

Please file a bug report

   http://bugs.squid-cache.org/

Regards
Henrik