<div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, 14 Nov 2018 at 17:10, Amos Jeffries <<a href="mailto:squid3@treenet.co.nz">squid3@treenet.co.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 15/11/18 12:54 AM, Odhiambo Washington wrote:<br>
> OS is FreeBSD 11.2:<br>
> squid-5.0.0-20181111-r1205859 <br>
> <br>
> Making all in eDirectory_userip<br>
> depbase=`echo ext_edirectory_userip_acl.o | sed<br>
> 's|[^/]*$|.deps/&|;s|\.o$||'`; clang++ -DHAVE_CONFIG_H<br>
> -DDEFAULT_CONFIG_FILE=\"/opt/squid-5/etc/squid.conf\" <br>
> -DDEFAULT_SQUID_DATA_DIR=\"/opt/squid-5/share\" <br>
> -DDEFAULT_SQUID_CONFIG_DIR=\"/opt/squid-5/etc\" -I../../../..<br>
> -I../../../../include -I../../../../lib -I../../../../src <br>
> -I../../../../include -I/usr/include -I/usr/include <br>
> -I../../../../libltdl -I/usr/include -I/usr/local/include/libxml2<br>
> -I/usr/local/include -I/usr/local/include/libxml2 -Werror<br>
> -Qunused-arguments -Wno-deprecated-register -D_REENTRANT<br>
> -I/usr/local/include -I/usr/local/include -I/usr/local/include <br>
> -I/usr/local/include -I/usr/local/include/p11-kit-1 -g -O2<br>
> -march=native -I/usr/local/include -MT ext_edirectory_userip_acl.o -MD<br>
> -MP -MF $depbase.Tpo -c -o ext_edirectory_userip_acl.o<br>
> ext_edirectory_userip_acl.cc && mv -f $depbase.Tpo $depbase.Po<br>
> ext_edirectory_userip_acl.cc:891:31: error: use of undeclared identifier<br>
> 'AF_INET6'<br>
> if (dst->ai_family == AF_INET6) {<br>
> ^<br>
> ext_edirectory_userip_acl.cc:893:64: error: member access into<br>
> incomplete type 'struct sockaddr_in6'<br>
> const char *ia = reinterpret_cast<const char<br>
> *>(sia->sin6_addr.s6_addr);<br>
<br>
<br>
So probably FreeBSD has changed its networking OS headers again in a way<br>
that breaks the sockaddr_in6 definition. They do it every so often with<br>
similar results to this appearing out of nowhere.<br>
<br>
Can you figure out which one is missing? and/or what has changed with<br>
the ordering that *BSD require software to use with these headers in 11.2?<br>
<br>
<br>
PS. build issues with the experimental (Squid-5 currently) code should<br>
be brought up in squid-dev mailing list or bugzilla. Not here.<br>
<br>
Amos<br>
_______________________________________________<br></blockquote><div><br></div><div>Actually, the same thing happened with a squid-4.4 build.</div><div>It failed the same way.</div><div><br></div><div>The problem is, I do not know how to find out what has changed that's causing this.</div><div><br></div><div><div>Making all in eDirectory_userip</div><div>depbase=`echo ext_edirectory_userip_acl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; clang++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/opt/squid-4/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/opt/squid-4/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/opt/squid-4/etc\" -I../../../.. -I../../../../include -I../../../../lib -I../../../../src -I../../../../include -I/usr/include -I/usr/include -I../../../../libltdl -I/usr/include -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/libxml2 -Werror -Qunused-arguments -Wno-deprecated-register -D_REENTRANT -I/usr/local/include -I/usr/local/include -I/usr/local/include/p11-kit-1 -g -O2 -march=native -I/usr/local/include -MT ext_edirectory_userip_acl.o -MD -MP -MF $depbase.Tpo -c -o ext_edirectory_userip_acl.o ext_edirectory_userip_acl.cc && mv -f $depbase.Tpo $depbase.Po</div><div>ext_edirectory_userip_acl.cc:891:31: error: use of undeclared identifier 'AF_INET6'</div><div> if (dst->ai_family == AF_INET6) {</div><div> ^</div><div>ext_edirectory_userip_acl.cc:893:64: error: member access into incomplete type 'struct sockaddr_in6'</div><div> const char *ia = reinterpret_cast<const char *>(sia->sin6_addr.s6_addr);</div><div> ^</div><div>ext_edirectory_userip_acl.cc:892:20: note: forward declaration of 'sockaddr_in6'</div><div> struct sockaddr_in6 *sia = reinterpret_cast<struct sockaddr_in6 *>(dst->ai_addr);</div><div> ^</div><div>ext_edirectory_userip_acl.cc:893:66: error: expected ')'</div><div> const char *ia = reinterpret_cast<const char *>(sia->sin6_addr.s6_addr);</div><div> ^</div><div>ext_edirectory_userip_acl.cc:893:60: note: to match this '('</div><div> const char *ia = reinterpret_cast<const char *>(sia->sin6_addr.s6_addr);</div><div> ^</div><div>ext_edirectory_userip_acl.cc:896:38: error: use of undeclared identifier 'AF_INET'</div><div> } else if (dst->ai_family == AF_INET) {</div><div> ^</div><div>ext_edirectory_userip_acl.cc:898:66: error: member access into incomplete type 'struct sockaddr_in'</div><div> const char *ia = reinterpret_cast<const char *>(&(sia->sin_addr));</div><div> ^</div><div>ext_edirectory_userip_acl.cc:897:20: note: forward declaration of 'sockaddr_in'</div><div> struct sockaddr_in *sia = reinterpret_cast<struct sockaddr_in *>(dst->ai_addr);</div><div> ^</div><div>5 errors generated.</div><div>*** Error code 1</div></div><div><br></div></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<br>"<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">"</span></div></div></div></div></div>