On 06/04/11 04:09, Silamael wrote:
On 04/05/2011 12:05 PM, Indunil Jayasooriya wrote:
Hi ALL,
I downloaded squid-3.2.0.6 from below URL
http://www.squid-cache.org/Versions/v3/3.2/squid-3.2.0.6.tar.gz
I ran (this is on OpenBSD 4.8 - 64 bit)
./configure
It went fine.
Then, ran
make
stoped at below error
/usr/include/arpa/inet.h:74: warning: 'struct in_addr' declared inside
parameter list
/usr/include/arpa/inet.h:74: warning: its scope is only this
definition or declaration, which is probably not what you want
/usr/include/arpa/inet.h:75: warning: 'struct in_addr' declared inside
parameter list
*** Error code 1
Stop in /root/software/squid-3.2.0.6/lib (line 589 of Makefile).
*** Error code 1
Stop in /root/software/squid-3.2.0.6/lib (line 708 of Makefile).
*** Error code 1
Stop in /root/software/squid-3.2.0.6 (line 433 of Makefile).
Hi Indunil,
The problem is that netinet/in.h must be included before arpa/inet.h in
include/util.h (at least for 3.1.11). Just add
#include<netinet/in.h> before the #include<arpa/inet.h> line in this
file. At least that fixed the same problem with Squid 3.1.11 on OpenBSD 4.9.
-- Matthias
For the record this is now tracked in
http://bugs.squid-cache.org/show_bug.cgi?id=3185
Amos
--
Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.12
Beta testers wanted for 3.2.0.6