Gentoo Archives: gentoo-user

From: Zhu Sha Zang <zhushazang@×××××××××.br>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] squid 3.1.18 build failure
Date: Mon, 26 Dec 2011 10:52:32
Message-Id: 4EF85199.9000000@yahoo.com.br
In Reply to: [gentoo-user] squid 3.1.18 build failure by Adam Carter
1 Em 26-12-2011 07:16, Adam Carter escreveu:
2 > System is mostly amd64, but gcc and squid are ~amd64.
3 >
4 > The error appears to be at;
5 > x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H
6 > -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\"
7 > -DDEFAULT_SQUID_DATA_DIR=\"/usr/share/squid\"
8 > -DDEFAULT_SQUID_CONFIG_DIR=\"/etc/squid\" -I.. -I../include -I../src
9 > -I../include -I../src -Wall -Wpointer-arith -Wwrite-strings
10 > -Wcomments -D_REENTRANT -m64 -march=amdfam10 -mcx16 -msahf -mpopcnt
11 > -mabm -O2 -pipe -c -o store.o store.cc
12 > store.cc: In member function ‘void StoreEntry::deferProducer(const
13 > AsyncCall::Pointer&)’:
14 > store.cc:376:232: error: no match for ‘operator<<’ in ‘std::operator<<
15 > [with _Traits =
16 > std::char_traits<char>](((std::basic_ostream<char>&)((std::ostream*)operator<<(((std::ostream&)((std::basic_ostream<char>*)std::operator<<
17 > [with _Traits =
18 > std::char_traits<char>](((std::basic_ostream<char>&)((std::basic_ostream<char>*)std::operator<<
19 > [with _Traits =
20 > std::char_traits<char>](((std::basic_ostream<char>&)((std::basic_ostream<char>*)std::operator<<
21 > [with _Traits =
22 > std::char_traits<char>](((std::basic_ostream<char>&)((std::basic_ostream<char>*)std::operator<<
23 > [with _Traits =
24 > std::char_traits<char>](((std::basic_ostream<char>&)((std::basic_ostream<char>*)((std::basic_ostream<char>*)std::operator<<
25 > [with _Traits =
26 > std::char_traits<char>](((std::basic_ostream<char>&)((std::basic_ostream<char>*)std::operator<<
27 > [with _Traits =
28 > std::char_traits<char>](((std::basic_ostream<char>&)((std::ostream*)Debug::getDebugOut())),
29 > ((const char*)"store.cc")))), ((const
30 > char*)"(")))->std::basic_ostream<_CharT, _Traits>::operator<< [with
31 > _CharT = char, _Traits = std::char_traits<char>](377))), ((const
32 > char*)") ")))), ((const char*)(& __FUNCTION__))))), ((const char*)":
33 > ")))), ((const char*)"Deferred producer call is allready set to:
34 > ")))), ((AsyncCall&)((AsyncCall*)((StoreEntry*)this)->StoreEntry::deferredProducer.RefCount<C>::operator*
35 > [with C = AsyncCall]()))))), ((const char*)", requested call: "))<<
36 > ((const AsyncCall::Pointer*)producer)->RefCount<C>::operator* [with C
37 > = AsyncCall]()’
38 > /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4/ostream:108:7:
39 > note: candidates are: std::basic_ostream<_CharT,
40 > _Traits>::__ostream_type& std::basic_ostream<_CharT,
41 > _Traits>::operator<<(std::basic_ostream<_CharT,
42 > _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT,
43 > _Traits>::__ostream_type&)) [with _CharT = char, _Traits =
44 > std::char_traits<char>, std::basic_ostream<_CharT,
45 > _Traits>::__ostream_type = std::basic_ostream<char>]
46 > /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4/ostream:117:7:
47 > note: std::basic_ostream<_CharT,
48 > _Traits>::__ostream_type& std::basic_ostream<_CharT,
49 > _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type&
50 > (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT =
51 > char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT,
52 > _Traits>::__ostream_type = std::basic_ostream<char>,
53 > std::basic_ostream<_CharT, _Traits>::__ios_type =
54 > std::basic_ios<char>]
55 > /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4/ostream:127:7:
56 > note: std::basic_ostream<_CharT,
57 > _Traits>::__ostream_type& std::basic_ostream<_CharT,
58 > _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT
59 > = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT,
60 > _Traits>::__ostream_type = std::basic_ostream<char>]
61 > etc
62 >
63 > I tried pulling MAKEOPTS back to -j1 - no difference. Any ideas or
64 > should I just log a bug?
65 >
66 > emerge -pv shows;
67 >
68 > Calculating dependencies... done!
69 > [ebuild U ~] net-proxy/squid-3.1.18 [3.1.16] USE="ecap epoll ipv6
70 > logrotate mysql pam snmp sqlite ssl -caps -icap-client
71 > (-ipf-transparent) -kerberos (-kqueue) -ldap -nis (-pf-transparent)
72 > -postgres -radius -samba -sasl (-selinux) -test -tproxy
73 > -zero-penalty-hit" 0 kB
74 >
75 > Total: 1 package (1 upgrade), Size of downloads: 0 kB
76 >
77 >
78
79 Same here!
80
81 --
82
83 ---
84 Zhu Sha Zang