Re: [squid-users] squid-3 make

From: Florian <tslbai@dont-contact.us>
Date: Fri, 25 Apr 2008 00:03:53 +0200

Henrik Nordstrom schrieb:
> fre 2008-04-18 klockan 07:27 +0200 skrev Florian:
>
>
>> Another compiler (gcc 4.1.1) crashes too when compiling the squid-3.1
>> sources.
>>
>> Where is my mistake?
>>
>> Bye Florian
>>
>> CC=/usr/bin/gcc4; export CC
>>
>
> Here.. you only upgraded gcc (C), not g++ (C++).
>
> CXX=/usr/bin/g++4; export CXX
>
Ok, i hope, i've upgraded all necessary now. ;-)
I installed the latest gcc, switched off Optimization but have errors:

CC=/usr/local/gcc430/bin/gcc; export CC
CXX=/usr/local/gcc430/bin/c++; export CXX
CPP=/usr/local/gcc430/bin/cpp; export CPP
LD_LIBRARY_PATH=/usr/local/mpfr231/lib:/usr/local/gmp422/lib; export
LD_LIBRARY_PATH
CFALGS="-O0"; export CFLAGS
./configure --prefix=/usr/local/squid310
make
...
if /usr/local/gcc430/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../include
-I../include - I../include -Werror -Wall
-Wpointer-arith -Wwrite-strings -Wmissing-prototype s
-Wmissing-declarations -Wcomments -O0 -MT heap.o -MD -MP -MF
".deps/heap.Tpo" -c -o heap.o heap.c; \
        then mv -f ".deps/heap.Tpo" ".deps/heap.Po"; else rm -f
".deps/heap.Tpo" ; exit 1; fi
if /usr/local/gcc430/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../include
-I../include - I../include -Werror -Wall
-Wpointer-arith -Wwrite-strings -Wmissing-prototype s
-Wmissing-declarations -Wcomments -O0 -MT html_quote.o -MD -MP -MF
".deps/html _quote.Tpo" -c -o html_quote.o html_quote.c; \
        then mv -f ".deps/html_quote.Tpo" ".deps/html_quote.Po"; else rm
-f ".de ps/html_quote.Tpo"; exit 1; fi
if /usr/local/gcc430/bin/c++ -DHAVE_CONFIG_H -I. -I. -I../include
-I../include - I../include -Werror -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -O0 -MT
IPAddress.o -MD -MP -MF ".deps/IPAddress.Tpo" -c -o IPAddress.o
IPAddress.cc; \
        then mv -f ".deps/IPAddress.Tpo" ".deps/IPAddress.Po"; else rm
-f ".deps /IPAddress.Tpo"; exit 1; fi
cc1plus: warnings being treated as errors
IPAddress.cc: In member function 'void
IPAddress::GetAddrInfo(addrinfo*&, int) c onst':
IPAddress.cc:837: error: suggest parentheses around && within ||
make[2]: *** [IPAddress.o] Error 1
make[2]: Leaving directory `/home/users/bai/squid-3/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/users/bai/squid-3/lib'
make: *** [all-recursive] Error 1
Received on Thu Apr 24 2008 - 22:03:59 MDT

This archive was generated by hypermail 2.2.0 : Thu May 01 2008 - 12:00:04 MDT