[squid-dev] g++ 4.8.x and std::regex problems

Christos Tsantilas christos at chtsanti.net
Tue Nov 29 07:46:58 UTC 2016

On 29/11/2016 04:29 πμ, Amos Jeffries wrote:
> Please note that GCC 4.8 is not capable of building correctly operating
> Squid-4 either. So its not a matter of GCC 4.8 vs Squid.

The 4.8 does not have any problem. I was doing all of my developments 
and tests using GCC-4.8 and never found a problem, an incompatibility 
something does not work well.

On my side I upgraded my development system, however this is not 
something which can be done without spending a lot of hours. Also maybe 
required to upgrade 1-2 virtual machines I am using.

We should define at least a warning period before applying such changes 
in squid.

> there anyway and probably already being linked to Squid as -lregex. The
> other cases it is supposed to be implemented by something faster, like
> libpcre. The benefits to Squid are that the API is standardized and we
> dont have to care about which library is linked any more. In all cases
> it should be using either the same library as before behind the STL API,
> or something better.

The regex library is small, it has a small number of API functions. And 
Personally I do not remember a case the regex causes problems.

Also, my opinion is that if pcre is faster we should consider to use 
them. At least have it as a todo.

> Amos

More information about the squid-dev mailing list