Re: Problems compiling squid 3.3.8

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 04 Sep 2013 22:30:30 +1200

On 4/09/2013 2:02 a.m., Christian wrote:
> Am 03.09.2013 12:22, schrieb Amos Jeffries:
>> On 3/09/2013 3:01 a.m., Christian wrote:
>>> Am 02.09.2013 06:29, schrieb Amos Jeffries:
>>>> On 2/09/2013 7:32 a.m., Alex Rousskov wrote:
>>>>> On 09/01/2013 07:04 AM, Christian wrote:
>>>>>> [ 229s] libtool: compile: g++ -DHAVE_CONFIG_H -I../..
>>>>>> -I../../include
>>>>>> -I../../lib -I../../src -I../../include -Wall -Wpointer-arith
>>>>>> -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -m64
>>>>>> -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
>>>>>> -funwind-tables -fasynchronous-unwind-tables -fPIC -DOPENSSL_LOAD_CONF
>>>>>> -std=c++0x -MT InfoAction.lo -MD -MP -MF .deps/InfoAction.Tpo -c
>>>>>> InfoAction.cc -fPIE -o InfoAction.o >/dev/null 2>&1
>>>>>> [ 230s] cc1plus: warnings being treated as errors
>>>>>> [ 230s] Inquirer.cc: In member function 'virtual void
>>>>>> Mgr::Inquirer::start()':
>>>>>> [ 230s] Inquirer.cc:90: error: 'auto_ptr' is deprecated (declared at
>>>>>> /usr/include/c++/4.3/backward/auto_ptr.h:91)
>>>>>> Can somebody help, please?
>>>>> I suggest filing a bug report (if there is not one already) and then
>>>>> building Squid without -Werror in CXXFLAGS.
>>>> The bug here is in the version mismatch between GCC libraries/headers vs
>>>> compiler unfortunately.
>>>>
>>>> Somebody appears to have added (has RHEL back-porting struck again?)
>>>> that deprecation warning into GCC headers a version or so before the
>>>> compiler support for C++11 unique_ptr. So our code tests for which
>>>> built-in pointer type is available select auto_ptr and hit that
>>>> nastiness. Not using it will crash randomly, using it will not build
>>>> with -Werror.
>>>>
>>>> An upgrade of the compiler is highly recommended. Second best choice is
>>>> the --disable-strict-error-checking configure option which disables
>>>> -Werror cleanly and make sure -Werror is not also in any custom flags.
>>>>
>>>> Amos
>>> Hi Amos,
>>>
>>> so if I understand you correctly I should use
>>> configure --disable-strict-error-checking
>> Yes for now.
>> And upgrade your compiler as soon as possible. This bug will hit other
>> software with C++11 support in unpredictable ways.
>>
>> Amos
> which version (>=) would you advise ?
> Then I will try to file a request for SLES 11 to upgrade compiler.

We don't seem to have this problem with GCC 4.5+ on other OS. But I
would recommend going with the most recent of their stable versions if
it is possible to.

Amos
Received on Wed Sep 04 2013 - 10:30:45 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 04 2013 - 12:00:12 MDT