[squid-dev] Compile Squid 4.x ubuntu 15 / ubuntu 14

Alireza Asgari ealireza at gmail.com
Thu Oct 1 04:49:20 UTC 2015


i have problem with compiling squid

generaly i use
./boos....
./configure
make

but it fail
what wrong

-pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT StoreSwapLogData.o
-MD -MP -MF $depbase.Tpo -c -o StoreSwapLogData.o StoreSwapLogData.cc &&\
mv -f $depbase.Tpo $depbase.Po
StoreSwapLogData.cc: In member function ‘std::ostream&
SwapChecksum24::print(std::ostream&) const’:
StoreSwapLogData.cc:47:15: error: no match for ‘operator<<’ (operand types
are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘const uint8_t {aka
const unsigned char}’)
     return os << raw[0] << '-' << raw[1] << '-' << raw[2];
               ^
StoreSwapLogData.cc:47:15: note: candidate is:
In file included from StoreSwapLogData.cc:12:0:
StoreSwapLogData.h:70:1: note: std::ostream& operator<<(std::ostream&,
const SwapChecksum24&)
 operator <<(std::ostream &os, const SwapChecksum24 &sum)
 ^
StoreSwapLogData.h:70:1: note:   no known conversion for argument 2 from
‘const uint8_t {aka const unsigned char}’ to ‘const SwapChecksum24&’
StoreSwapLogData.cc:48:1: error: control reaches end of non-void function
[-Werror=return-type]
 }
 ^
At global scope:
cc1plus: error: unrecognized command line option "-Wno-deprecated-register"
[-Werror]
cc1plus: all warnings being treated as errors
Makefile:6823: recipe for target 'StoreSwapLogData.o' failed
make[3]: *** [StoreSwapLogData.o] Error 1
make[3]: Leaving directory '/root/squid-4.0.0-20150929-r14330/src'
Makefile:6945: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/root/squid-4.0.0-20150929-r14330/src'
Makefile:5974: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/root/squid-4.0.0-20150929-r14330/src'
Makefile:569: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
root at UK-CDN:~/squid-4.0.0-20150929-r14330#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20151001/bef612ec/attachment-0001.html>


More information about the squid-dev mailing list