Re: [squid-users] Fwd: squid-3.2.0.6 - make issue on OpenBSD 4.8 - 64 bit

From: Silamael <Silamael_at_coronamundi.de>
Date: Tue, 05 Apr 2011 18:09:08 +0200

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
Received on Tue Apr 05 2011 - 16:09:17 MDT

This archive was generated by hypermail 2.2.0 : Fri Apr 08 2011 - 12:00:03 MDT