Search squid archive

Re: OpenBSD 4.6: Squid 3.1.3 compilation error (patch attached)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/03/2010 02:04 PM, Amos Jeffries wrote:
> Silamael wrote:
>> Hello!
>>
>> I'm getting some error when compiling Squid 3.1.3 on OpenBSD 4.6 due to
>> a redefinition of FD_SETSIZE in compat/fdsetsize.h.
>> Patch attached which fixed this for me.
>>
>> Greetings,
>> Matthias
>>
> 
> Thanks for the thought, but...
> 
>  Code in Squid is NOT permitted to include system headers before the
> FD_* compat code. Kernel defines will be allocated with incompatible
> size and overflows happen.
> 
> Can you provide a full compiler trace of the clash so we can fix the
> include sequence?
> 
> Amos

No problem. Here you are.

-- Matthias
Making all in smbval
cc -DHAVE_CONFIG_H  -I/ports/www/squid3/w-squid3/squid-3.1.3 -I/ports/www/squid3/w-squid3/squid-3.1.3/include -I/ports/www/squid3/w-squid3/squid-3.1.3/src  -I../../../../include  -I/ports/www/squid3/w-squid3/squid-3.1.3/helpers/ntlm_auth/smb_lm/smbval -g -I/usr/local/include -DDEFAULT_SQUID_ERROR_DIR=\"/usr/local/share/squid/errors\"   -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -O2 -pipe -MT valid.o -MD -MP -MF .deps/valid.Tpo -c -o valid.o /ports/www/squid3/w-squid3/squid-3.1.3/helpers/ntlm_auth/smb_lm/smbval/valid.c
mv -f .deps/valid.Tpo .deps/valid.Po
cc -DHAVE_CONFIG_H  -I/ports/www/squid3/w-squid3/squid-3.1.3 -I/ports/www/squid3/w-squid3/squid-3.1.3/include -I/ports/www/squid3/w-squid3/squid-3.1.3/src  -I../../../../include  -I/ports/www/squid3/w-squid3/squid-3.1.3/helpers/ntlm_auth/smb_lm/smbval -g -I/usr/local/include -DDEFAULT_SQUID_ERROR_DIR=\"/usr/local/share/squid/errors\"   -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -O2 -pipe -MT session.o -MD -MP -MF .deps/session.Tpo -c -o session.o /ports/www/squid3/w-squid3/squid-3.1.3/helpers/ntlm_auth/smb_lm/smbval/session.c
In file included from /ports/www/squid3/w-squid3/squid-3.1.3/compat/compat.h:34,
                 from /ports/www/squid3/w-squid3/squid-3.1.3/include/config.h:58,
                 from /ports/www/squid3/w-squid3/squid-3.1.3/include/util.h:37,
                 from /ports/www/squid3/w-squid3/squid-3.1.3/helpers/ntlm_auth/smb_lm/smbval/std-includes.h:27,
                 from /ports/www/squid3/w-squid3/squid-3.1.3/helpers/ntlm_auth/smb_lm/smbval/session.c:33:
/ports/www/squid3/w-squid3/squid-3.1.3/compat/fdsetsize.h:74:1: "FD_SETSIZE" redefined
In file included from /usr/include/sys/types.h:224,
                 from /usr/include/stdlib.h:41,
                 from /ports/www/squid3/w-squid3/squid-3.1.3/helpers/ntlm_auth/smb_lm/smbval/session.c:27:
/usr/include/sys/select.h:47:1: this is the location of the previous definition
*** Error code 1

Stop in /ports/www/squid3/w-squid3/build-i386/helpers/ntlm_auth/smb_lm/smbval (line 92 of /usr/share/mk/sys.mk).
*** Error code 1

Stop in /ports/www/squid3/w-squid3/build-i386/helpers/ntlm_auth/smb_lm (line 418 of Makefile).
*** Error code 1

Stop in /ports/www/squid3/w-squid3/build-i386/helpers/ntlm_auth (line 311 of Makefile).
*** Error code 1

Stop in /ports/www/squid3/w-squid3/build-i386/helpers (line 306 of Makefile).
*** Error code 1

Stop in /ports/www/squid3/w-squid3/build-i386 (line 366 of Makefile).
*** Error code 1

Stop in /ports/www/squid3 (line 2189 of /usr/ports/infrastructure/mk/bsd.port.mk).

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux