Ritter, Nicholas wrote:
I get the following error when doing a make of squid-3.HEAD-020080609 on Fedora 9. The odd thing is that the error doesn't happen with each build attempt, just 95% of the build attempts. I tried removing various CFLAG options but to with no luck. I have also included by configure directives. Any ideas on how to fix this?
Configure command:
# squid compile options
#
CHOST="x86_64-pc-linux-gnu" \
CFLAGS="-DNUMTHREADS=65 \
-march=nocona" \
./configure \
--enable-async-io \
--enable-icmp \
--enable-useragent-log \
--enable-snmp \
--enable-cache-digests \
--enable-follow-x-forwarded-for \
--enable-storeio="aufs" \
--enable-removal-policies="heap,lru" \
--with-maxfd=16384 \
--enable-poll \
--disable-ident-lookups \
--enable-linux-trpoxy4 \
--enable-auth="basic,digest" \
--enable-zph-qos \
--enable-ssl \
Error output:
if g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/opt/squid/etc/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -I../lib/libTrie/include -I../lib -I../lib -I/usr/include/libxml2 -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -D_REENTRANT -g -O2 -MT client_side_reply.o -MD -MP -MF "$depbase.Tpo" -c -o client_side_reply.o client_side_reply.cc; \
then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi
cc1plus: warnings being treated as errors
client_side_reply.cc: In member function ‘void clientReplyContext::doGetMoreData()’:
client_side_reply.cc:1575: error: suggest parentheses around && within ||
client_side_reply.cc:1592: error: suggest parentheses around && within ||
Are you sure the same compiler is being used each build?
That is a warning that appears only in the latest g++.
We have seen a few recently and thanks for pointing this out. I've fixed
it just now. The next snapshot will get further.
Please bring any other code issues up in squid-dev. This mailing list is
really for users configuration and general help.
Amos
--
Please use Squid 2.7.STABLE2 or 3.0.STABLE6