Hi!
I tried make the squid on x86 Solaris 10
I got follow:
bash-3.00# uname -a
SunOS Kronos 5.10 Generic_118844-08 i86pc i386 i86pc
bash-3.00# gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
squid-2.5.STABLE10
bash-3.00# ./configure --enable-ipf-transparent
....
checking for ip_compat.h... no
checking for ip_fil_compat.h... no
checking for ip_fil.h... no
checking for ip_nat.h... no
....
checking for netinet/if_ether.h... yes
checking for netinet/in.h... yes
checking for netinet/tcp.h... yes
checking for netinet/ip_compat.h... no
checking for netinet/ip_fil_compat.h... no
checking for netinet/ip_fil.h... no
checking for netinet/ip_nat.h... no
....
checking if IP-Filter header files are installed... no
WARNING: Cannot find necessary IP-Filter header files
Transparent Proxy support WILL NOT be enabled
After that I removed IP filter packages SUNWipfr and SUNWipfu.
I installed SUN Studio, pfil-2.1.6 and ip_fil4.1.8
and I got the same errors.
I find headers from IP filter in /usr/include/ipfilter
I copy them to /usr/include/netinet and configure pass.
But make get the error
gcc -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I. -I.
-I../include -I. -I. -I../include -I../include -g -Wall -c `test -f
client_side.c || echo './'`client_side.c
In file included from /usr/include/sys/systm.h:20,
from /usr/include/inet/ip.h:30,
from /usr/include/netinet/ip_compat.h:171,
from client_side.c:51:
/usr/include/sys/proc.h:516: error: conflicting types for 'exit'
/usr/include/sys/proc.h:516: error: conflicting types for 'exit'
/usr/include/sys/proc.h:563: error: conflicting types for 'signal'
/usr/include/iso/signal_iso.h:48: error: previous declaration of
'signal' was here
/usr/include/sys/proc.h:563: error: conflicting types for 'signal'
/usr/include/iso/signal_iso.h:48: error: previous declaration of
'signal' was here
/usr/include/sys/proc.h:685: error: syntax error before '*' token
/usr/include/sys/proc.h:686: error: syntax error before '*' token
/usr/include/sys/proc.h:687: error: syntax error before '*' token
In file included from /usr/include/inet/ip.h:30,
from /usr/include/netinet/ip_compat.h:171,
from client_side.c:51:
/usr/include/sys/systm.h:213: error: conflicting types for 'ffs'
/usr/include/sys/systm.h:213: error: conflicting types for 'ffs'
.....
Is it possible to correct this error and how?
Thanks
Victor Belous