[squid-users] Squid 3.4.10 incorrectly configured on Solaris 10

Yuri Voinov yvoinov at gmail.com
Fri Dec 19 09:17:36 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
I found,

from where legs grows.

The problems beguns from ip_compat.h:

configure:27435: checking for netinet/ip_compat.h
configure:27435: g++ -c -m64 -O3 -m64 -fPIE -fstack-protector
-mtune=core2 --param=ssp-buffer-size=4 -pipe -march=native -std=c++11
-I/usr/include -I/opt/csw/include
-I/opt/csw/lib/gcc/i386-pc-solaris2.10/4.9.2/include-fixed/
-I/usr/include/gssapi -I/usr/include/kerberosv5 conftest.cpp >&5
In file included from conftest.cpp:261:0:
/opt/csw/lib/gcc/i386-pc-solaris2.10/4.9.2/include-fixed/netinet/ip_compat.h:1094:14:
error: conflicting declaration 'typedef int minor_t'
 typedef int  minor_t;
              ^
In file included from conftest.cpp:211:0:
/usr/include/sys/types.h:303:16: note: previous declaration as 'typedef
uint_t minor_t'
 typedef uint_t minor_t; /* minor part of device number */
                ^
configure:27435: $? = 1
configure: failed program was:

Try to find workaround...

18.12.2014 20:11, Kinkie пишет:
> Hello Yuri,
>   this is probably a system header dependency.
> Could you check if the manuals mention anything about ipfmutex_t ? If
> they do, at the beginning of the page they should include a list of
> #include <...> lines. Could you copy-paste these lines here?
>
> Thanks
>
> On Thu, Dec 18, 2014 at 3:01 PM, Yuri Voinov <yvoinov at gmail.com> wrote:
>>
> Hi there,
>
> yesterday (and during last four day) I've try to build transparent
> caching proxy on Solaris 10 (x86_64) testing environment.
>
> Configuration options are:
>
> # Without SSL 64 bit GCC
> ./configure '--prefix=/usr/local/squid' '--enable-translation'
> '--enable-external-acl-helpers=file_userip,unix_group'
> '--enable-icap-client' '--enable-ipf-transparent'
> '--enable-storeio=diskd' '--enable-removal-policies=lru,heap'
> '--enable-devpoll' '--disable-wccp' '--enable-wccpv2'
> '--enable-http-violations' '--enable-follow-x-forwarded-for'
> '--enable-arp-acl' '--enable-htcp' '--enable-cache-digests' '--with-dl'
> '--enable-auth-negotiate=none' '--disable-auth-digest'
> '--disable-auth-ntlm' '--disable-auth-basic'
> '--enable-storeid-rewrite-helpers=file'
> '--enable-log-daemon-helpers=file' '--with-filedescriptors=131072'
> '--with-build-environment=POSIX_V6_LP64_OFF64' 'CFLAGS=-O3 -m64 -fPIE
> -fstack-protector -mtune=core2 --param=ssp-buffer-size=4 -pipe'
> 'CXXFLAGS=-O3 -m64 -fPIE -fstack-protector -mtune=core2
> --param=ssp-buffer-size=4 -pipe' 'CPPFLAGS=-I/usr/include
> -I/opt/csw/include' 'LDFLAGS=-fPIE -pie -Wl,-z,now'
>
> But binaries built without interceptor support.
>
> Some investigation:
>
> Config.log has errors with ip_nat.h compilation:
>
> configure:27435: checking for netinet/ip_nat.h
> configure:27435: g++ -c -m64 -O3 -m64 -fPIE -fstack-protector
> -mtune=core2 --param=ssp-buffer-size=4 -pipe -march=native -std=c++11
> -I/usr/include -I/opt/csw/include -I/usr/include/gssapi
> -I/usr/include/kerberosv5 conftest.cpp >&5
> In file included from conftest.cpp:266:0:
>
/opt/csw/lib/gcc/i386-pc-solaris2.10/4.9.2/include-fixed/netinet/ip_nat.h:98:2:
> error: 'ipfmutex_t' does not name a type
>   ipfmutex_t nat_lock;
>   ^
>
/opt/csw/lib/gcc/i386-pc-solaris2.10/4.9.2/include-fixed/netinet/ip_nat.h:108:2:
> error: 'frentry_t' does not name a type
>   frentry_t *nat_fr; /* filter rule ptr if appropriate */
>   ^
>
/opt/csw/lib/gcc/i386-pc-solaris2.10/4.9.2/include-fixed/netinet/ip_nat.h:112:2:
> error: 'ipftqent_t' does not name a type
>   ipftqent_t nat_tqe;
>   ^
>
/opt/csw/lib/gcc/i386-pc-solaris2.10/4.9.2/include-fixed/netinet/ip_nat.h:113:2:
> error: 'u_32_t' does not name a type
>   u_32_t  nat_flags;
>   ^
>
/opt/csw/lib/gcc/i386-pc-solaris2.10/4.9.2/include-fixed/netinet/ip_nat.h:114:2:
> error: 'u_32_t' does not name a type
>   u_32_t  nat_sumd[2]; /* ip checksum delta for data segment */
>   ^
>
/opt/csw/lib/gcc/i386-pc-solaris2.10/4.9.2/include-fixed/netinet/ip_nat.h:115:2:
> error: 'u_32_t' does not name a type
>   u_32_t  nat_ipsumd; /* ip checksum delta for ip header */
>   ^
>
/opt/csw/lib/gcc/i386-pc-solaris2.10/4.9.2/include-fixed/netinet/ip_nat.h:116:2:
> error: 'u_32_t' does not name a type
>   u_32_t  nat_mssclamp; /* if != zero clamp MSS to this */
>   ^
>
/opt/csw/lib/gcc/i386-pc-solaris2.10/4.9.2/include-fixed/netinet/ip_nat.h:117:2:
> error: 'i6addr_t' does not name a type
>   i6addr_t nat_inip6;
>
> and so, configure does not see IP Filter finally, ergo cannot build
> interceptor.
>
> Yes, IP Filter installed in system. Yes, I've try to build 32 bit also.
> Yes, I've try to build on another system. Yes, I've try to play with
> configure option. Yes, I've try also development version 3.5.x - with
> the same result.
>
> Amos, need your help.
>
> Thanks in advance,
>
> WBR, Yuri
>
>>
>>
>> _______________________________________________
>> squid-users mailing list
>> squid-users at lists.squid-cache.org
>> http://lists.squid-cache.org/listinfo/squid-users
>
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
 
iQEcBAEBAgAGBQJUk+0vAAoJENNXIZxhPexGpXYIAJCALmyB6uEyUgiVEoG+Zgrc
rEMOdHeYrZuIQGs+ZNLng/lg7fC6gBTsYohJehFnsdVEwNMXoHPqT3aaxA7GwZc1
jxTBJco8qHPEQhZD/X6oKGL62YnMDb89pPVfsj8hMuF/ss3RVtHpth8UUKmg5slz
S23xJIMFJCnOXOK1UMUnw6+ntzIlX0+/Iho2/zlVADnLPgZs4BLpFbJ8PAhEuMVQ
AQjbqv7z7IVC3l2NzZpLc8QSyxW8subbxyaOXFl3F7Pk6Ky7UkC2M++zRjQLD4cQ
uz2JcAVwTHRpwkkJkNgI1sRTHHN03LZaq8Mk2gl7B39fkmOO1FM5qkPwvb2euBw=
=mbhU
-----END PGP SIGNATURE-----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20141219/7f9b31a2/attachment-0001.html>


More information about the squid-users mailing list