Re: [squid-users] 3.3.4 compilation error on Solaris 10

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 08 May 2013 02:36:30 +1200

On 8/05/2013 1:32 a.m., C. Pelissier wrote:
> Use Solaris gcc (compiling with studio no longer works after version
> 2.7).

It should. We had 3.1 building with Studio before the public build farm
we were using to maintain the portability got discontinued. Now we are
back once again reliant on people actually reporting problems and those
with access to the compiler testing fixes. If either of you are
interested in helping out please run Studio over the latest 3.HEAD code
and report any build errors [and warnings] that are occuring still to
bugzilla (bugs.squid-cache.org). If you are able to provide a patch as
well that would be a great help, but simply being aware of the problems
is the most important step.

FWIW: the problem below is shadowed variables "-Wshadow" error check
added in 3.3. That and several dozens of other shadowed variables have
been fixed in the 3.HEAD bundles, but are still present in 3.3 and older
series of releases.

You may be able to get it to build with ./configure
--disable-strict-error-checking.

If you get it to build can you please provide some feedback on this bug:
http://bugs.squid-cache.org/show_bug.cgi?id=3764. The MacOS and Windows
people provided some fixes for 3.2+ which should mean its no longer
relevant on Solaris (or may need only small tweaking to work).

HTH
Amos

>
>
> Le mar. 07/05/2013 à 15:08, drewB a écrit :
>> Compiling version 3.3.4 on Solaris 10 using Solaris Studio 12.3, I get the
>> following error:
>>
>> ...
>> Making all in format
>> source='Config.cc' object='Config.lo' libtool=yes \
>> DEPDIR=.deps depmode=none /bin/bash ../../cfgaux/depcomp \
>> /bin/bash ../../libtool --tag=CXX --mode=compile CC -DHAVE_CONFIG_H
>> -I../.. -I../../include -I../../lib -I../../src -I../../include
>> -I../../libltdl -errwarn=%all,no%badargtype2w,no%wbadinit,no%wbadasg
>> -errtags -D_REENTRANT -lpthread -g -c -o Config.lo Config.cc
>> libtool: compile: CC -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib
>> -I../../src -I../../include -I../../libltdl
>> -errwarn=%all,no%badargtype2w,no%wbadinit,no%wbadasg -errtags -D_REENTRANT
>> -lpthread -g -c Config.cc -KPIC -DPIC -o .libs/Config.o
>> libtool: compile: CC -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib
>> -I../../src -I../../include -I../../libltdl
>> -errwarn=%all,no%badargtype2w,no%wbadinit,no%wbadasg -errtags -D_REENTRANT
>> -lpthread -g -c Config.cc -o Config.o >/dev/null 2>&1
>> source='Format.cc' object='Format.lo' libtool=yes \
>> DEPDIR=.deps depmode=none /bin/bash ../../cfgaux/depcomp \
>> /bin/bash ../../libtool --tag=CXX --mode=compile CC -DHAVE_CONFIG_H
>> -I../.. -I../../include -I../../lib -I../../src -I../../include
>> -I../../libltdl -errwarn=%all,no%badargtype2w,no%wbadinit,no%wbadasg
>> -errtags -D_REENTRANT -lpthread -g -c -o Format.lo Format.cc
>> libtool: compile: CC -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib
>> -I../../src -I../../include -I../../libltdl
>> -errwarn=%all,no%badargtype2w,no%wbadinit,no%wbadasg -errtags -D_REENTRANT
>> -lpthread -g -c Format.cc -KPIC -DPIC -o .libs/Format.o
>> "Format.cc", line 82: Error, wvarhidemem: name hides Format::Format::name.
>> "Format.cc", line 87: Error, wvarhidemem: format hides
>> Format::Format::format.
>> 2 Error(s) detected.
>> *** Error code 1
>>
>> Configuration parameters are: ./configure --prefix=/usr/local/squid
>> --with-logdir=/var/log/squid --without-krb5-config
>>
>> Is this just caused by the strictness of the compiler and if so is there an
>> option to override it during the make?
>>
>> Thanks
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/3-3-4-compilation-error-on-Solaris-10-tp4659827.html
>> Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Tue May 07 2013 - 14:36:37 MDT

This archive was generated by hypermail 2.2.0 : Tue May 07 2013 - 12:00:04 MDT