Re: [squid-users] error build squid-3.1.17 with gcc-4.5.3

From: Pedro Correia Sardinha <correiasardinha_at_gmail.com>
Date: Sat, 3 Dec 2011 17:32:20 +0000

Thank you for the new version, but when I try to compile the 3.1.18,
give me now this output error:

store.cc:376:9: error: no match for 'operator<<' in 'std::operator<<
[with _Traits =
std::char_traits<char>](((std::basic_ostream<char>&)((std::ostream*)operator<<(((std::ostream&)((std::basic_ostream<char>*)std::operator<<
[with _Traits =
std::char_traits<char>](((std::basic_ostream<char>&)((std::basic_ostream<char>*)std::operator<<
[with _Traits =
std::char_traits<char>](((std::basic_ostream<char>&)((std::basic_ostream<char>*)std::operator<<
[with _Traits =
std::char_traits<char>](((std::basic_ostream<char>&)((std::basic_ostream<char>*)std::operator<<
[with _Traits =
std::char_traits<char>](((std::basic_ostream<char>&)((std::basic_ostream<char>*)((std::basic_ostream<char>*)std::operator<<
[with _Traits =
std::char_traits<char>](((std::basic_ostream<char>&)((std::basic_ostream<char>*)std::operator<<
[with _Traits =
std::char_traits<char>](((std::basic_ostream<char>&)((std::ostream*)Debug::getDebugOut())),
((const char*)"store.cc")))), ((const
char*)"(")))->std::basic_ostream<_CharT, _Traits>::operator<< [with
_CharT = char, _Traits = std::char_traits<char>](377))), ((const
char*)") ")))), ((const char*)(& __FUNCTION__))))), ((const char*)":
")))), ((const char*)"Deferred producer call is allready set to:
")))), ((AsyncCall&)((AsyncCall*)((StoreEntry*)this)->StoreEntry::deferredProducer.RefCount<C>::operator*
[with C = AsyncCall]()))))), ((const char*)", requested call: ")) <<
((const AsyncCall::Pointer*)producer)->RefCount<C>::operator* [with C
= AsyncCall]()'
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/ostream:108:7:
note: candidates are: std::basic_ostream<_CharT,
_Traits>::__ostream_type& std::basic_ostream<_CharT,
_Traits>::operator<<(std::basic_ostream<_CharT,
_Traits>::__ostream_type& (*)(std::basic_ostream<_CharT,
_Traits>::__ostream_type&)) [with _CharT = char, _Traits =
std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__ostream_type = std::basic_ostream<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/ostream:117:7:
note: std::basic_ostream<_CharT,
_Traits>::__ostream_type& std::basic_ostream<_CharT,
_Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type&
(*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT =
char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__ostream_type = std::basic_ostream<char>,
std::basic_ostream<_CharT, _Traits>::__ios_type =
std::basic_ios<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/ostream:127:7:
note: std::basic_ostream<_CharT,
_Traits>::__ostream_type& std::basic_ostream<_CharT,
_Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT
= char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__ostream_type = std::basic_ostream<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/ostream:165:7:
note: std::basic_ostream<_CharT,
_Traits>::__ostream_type& std::basic_ostream<_CharT,
_Traits>::operator<<(long int) [with _CharT = char, _Traits =
std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__ostream_type = std::basic_ostream<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/ostream:169:7:
note: std::basic_ostream<_CharT,
_Traits>::__ostream_type& std::basic_ostream<_CharT,
_Traits>::operator<<(long unsigned int) [with _CharT = char, _Traits =
std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__ostream_type = std::basic_ostream<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/ostream:173:7:
note: std::basic_ostream<_CharT,
_Traits>::__ostream_type& std::basic_ostream<_CharT,
_Traits>::operator<<(bool) [with _CharT = char, _Traits =
std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__ostream_type = std::basic_ostream<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/bits/ostream.tcc:91:5:
note: std::basic_ostream<_CharT, _Traits>&
std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with
_CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/ostream:180:7:
note: std::basic_ostream<_CharT,
_Traits>::__ostream_type& std::basic_ostream<_CharT,
_Traits>::operator<<(short unsigned int) [with _CharT = char, _Traits
= std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__ostream_type = std::basic_ostream<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/bits/ostream.tcc:105:5:
note: std::basic_ostream<_CharT, _Traits>&
std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT =
char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/ostream:191:7:
note: std::basic_ostream<_CharT,
_Traits>::__ostream_type& std::basic_ostream<_CharT,
_Traits>::operator<<(unsigned int) [with _CharT = char, _Traits =
std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__ostream_type = std::basic_ostream<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/ostream:200:7:
note: std::basic_ostream<_CharT,
_Traits>::__ostream_type& std::basic_ostream<_CharT,
_Traits>::operator<<(long long int) [with _CharT = char, _Traits =
std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__ostream_type = std::basic_ostream<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/ostream:204:7:
note: std::basic_ostream<_CharT,
_Traits>::__ostream_type& std::basic_ostream<_CharT,
_Traits>::operator<<(long long unsigned int) [with _CharT = char,
_Traits = std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__ostream_type = std::basic_ostream<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/ostream:209:7:
note: std::basic_ostream<_CharT,
_Traits>::__ostream_type& std::basic_ostream<_CharT,
_Traits>::operator<<(double) [with _CharT = char, _Traits =
std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__ostream_type = std::basic_ostream<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/ostream:213:7:
note: std::basic_ostream<_CharT,
_Traits>::__ostream_type& std::basic_ostream<_CharT,
_Traits>::operator<<(float) [with _CharT = char, _Traits =
std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__ostream_type = std::basic_ostream<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/ostream:221:7:
note: std::basic_ostream<_CharT,
_Traits>::__ostream_type& std::basic_ostream<_CharT,
_Traits>::operator<<(long double) [with _CharT = char, _Traits =
std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__ostream_type = std::basic_ostream<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/ostream:225:7:
note: std::basic_ostream<_CharT,
_Traits>::__ostream_type& std::basic_ostream<_CharT,
_Traits>::operator<<(const void*) [with _CharT = char, _Traits =
std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__ostream_type = std::basic_ostream<char>]
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../include/c++/4.5.3/bits/ostream.tcc:119:5:
note: std::basic_ostream<_CharT, _Traits>&
std::basic_ostream<_CharT,
_Traits>::operator<<(std::basic_ostream<_CharT,
_Traits>::__streambuf_type*) [with _CharT = char, _Traits =
std::char_traits<char>, std::basic_ostream<_CharT,
_Traits>::__streambuf_type = std::basic_streambuf<char>]
Debug.h:131:22: note: std::ostream&
operator<<(std::ostream&, uint8_t)
ip/IpAddress.h:378:1: note: std::ostream&
operator<<(std::ostream&, const IpAddress&)
String.cci:199:1: note: std::ostream&
operator<<(std::ostream&, const String&)
base/AsyncCall.h:90:15: note: std::ostream&
operator<<(std::ostream&, AsyncCall&)
DnsLookupDetails.h:26:15: note: std::ostream&
operator<<(std::ostream&, const DnsLookupDetails&)
HttpRequestMethod.h:156:1: note: std::ostream&
operator<<(std::ostream&, const HttpRequestMethod&)
mem_node.h:67:1: note: std::ostream&
operator<<(std::ostream&, mem_node&)
make[3]: *** [store.o] Error 1
make[3]: Leaving directory `/usr/local/src/SQUID/squid-3.1.18/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/SQUID/squid-3.1.18/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/SQUID/squid-3.1.18/src'
make: *** [all-recursive] Error 1

2011/12/3 Amos Jeffries <squid3_at_treenet.co.nz>:
> On 3/12/2011 12:45 p.m., Jose-Marcio Martins da Cruz wrote:
>>
>> Pedro Correia Sardinha wrote:
>>>
>>> Hello,
>>>
>>> When I try to build the last version as usual, "make all" it's giving
>>> me this output (my compiler is gcc-4.5.3):
>>>
>>> ftp.cc: In member function 'void
>>> FtpStateData::ftpAcceptDataConnection(const CommAcceptCbParams&)':
>>> ftp.cc:3124:38: error: redeclaration of 'char ntoapeer [75]'
>>> ftp.cc:3076:31: error: 'char ntoapeer [75]' previously declared here
>>> make[3]: *** [ftp.o] Error 1
>>> make[3]: Leaving directory `/usr/local/src/SQUID/squid-3.1.17/src'
>>> make[2]: *** [all-recursive] Error 1
>>> make[2]: Leaving directory `/usr/local/src/SQUID/squid-3.1.17/src'
>>> make[1]: *** [all] Error 2
>>> make[1]: Leaving directory `/usr/local/src/SQUID/squid-3.1.17/src'
>>> make: *** [all-recursive] Error 1
>>>
>>> Anyone has this issue or have a sugestion to fix it?
>>
>>
>> I saw it here. Just comment the second declaration : file src/ftp.cc, line
>> 3124
>>
>
> Sorrry folks. Bumping 3.1.18 out in a few hours instead with that regression
> fixed.
>
> Amos
Received on Sat Dec 03 2011 - 17:32:49 MST

This archive was generated by hypermail 2.2.0 : Sat Dec 03 2011 - 12:00:02 MST