[squid-dev] std::uniform_int_distribution not available on centos-6

Kinkie gkinkie at gmail.com
Sun Aug 23 08:16:06 UTC 2015


apparently not yet in lib/ntlmauth :(

icpc: command line warning #10006: ignoring unknown option
'-Wno-deprecated-register'
../../../lib/ntlmauth/ntlmauth.cc(188): error: qualified name is not allowed
      static std::uniform_int_distribution<uint8_t> dist;
             ^

../../../lib/ntlmauth/ntlmauth.cc(188): error: expected a ";"
      static std::uniform_int_distribution<uint8_t> dist;
                                          ^

../../../lib/ntlmauth/ntlmauth.cc(191): error: identifier "dist" is undefined
          nonce[i] = static_cast<char>(dist(mt) & 0xFF);



On Sun, Aug 23, 2015 at 9:43 AM, Amos Jeffries <squid3 at treenet.co.nz> wrote:

> On 23/08/2015 7:21 p.m., Kinkie wrote:
> > Hi,
> >   std::uniform_int_distribution is not available on any compiler in
> > centos-6.
> > We can either retire centos-6 or autoconf our way around the missing
> > functionality.
> >
> > RHEL6.7 is supported by RH through mid 2017; I suppose the best option is
> > to autoconf :\
>
> It already is autoconf-ing a definition based on
> std::tr1::uniform_int_distribution which should be available and working
> as far back as GCC 4.0.
>
> Amos
>
> _______________________________________________
> squid-dev mailing list
> squid-dev at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-dev
>



-- 
    Francesco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20150823/4a19d425/attachment.html>


More information about the squid-dev mailing list