[squid-users] Latest squid-5 compile error

Amos Jeffries squid3 at treenet.co.nz
Wed Nov 14 14:10:15 UTC 2018


On 15/11/18 12:54 AM, Odhiambo Washington wrote:
> OS is FreeBSD 11.2:
> squid-5.0.0-20181111-r1205859  
> 
> Making all in eDirectory_userip
> depbase=`echo ext_edirectory_userip_acl.o | sed
> 's|[^/]*$|.deps/&|;s|\.o$||'`; clang++ -DHAVE_CONFIG_H
> -DDEFAULT_CONFIG_FILE=\"/opt/squid-5/etc/squid.conf\" 
> -DDEFAULT_SQUID_DATA_DIR=\"/opt/squid-5/share\" 
> -DDEFAULT_SQUID_CONFIG_DIR=\"/opt/squid-5/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 
> -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
> ext_edirectory_userip_acl.cc:891:31: error: use of undeclared identifier
> 'AF_INET6'
>         if (dst->ai_family == AF_INET6) {
>                               ^
> ext_edirectory_userip_acl.cc:893:64: error: member access into
> incomplete type 'struct sockaddr_in6'
>             const char *ia = reinterpret_cast<const char
> *>(sia->sin6_addr.s6_addr);


So probably FreeBSD has changed its networking OS headers again in a way
that breaks the sockaddr_in6 definition. They do it every so often with
similar results to this appearing out of nowhere.

Can you figure out which one is missing? and/or what has changed with
the ordering that *BSD require software to use with these headers in 11.2?


PS. build issues with the experimental (Squid-5 currently) code should
be brought up in squid-dev mailing list or bugzilla. Not here.

Amos


More information about the squid-users mailing list