RE: [squid-users] Error compiling squid 3.0 stable4

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Thu, 25 Feb 2010 20:55:26 +0100

tor 2010-02-25 klockan 06:55 -0500 skrev Mike Marchywka:

> ----------------------------------------
> > Date: Thu, 25 Feb 2010 11:38:52 +0530
> > From: senthilkumaar2021_at_gmail.com
> > To: squid-users_at_squid-cache.org
> > Subject: [squid-users] Error compiling squid 3.0 stable4
> >
> > Hi All,
> >
> > When i compile squid 3.0 stable 4 i getting the following error
> >
> > logfile.cc: In function ‘Logfile* logfileOpen(const char*, size_t, int)’:
> > logfile.cc:105: error: invalid conversion from ‘const char*’ to ‘char*’
> > logfile.cc:108: error: invalid conversion from ‘const char*’ to ‘char*’

This was fixed 2009-04-04 in the Squid-3.0 tree. (2009-02-19 in HEAD)

> Can you post code from this file and build options? As someone who casts away const from
> time to time, LOL, there are ways you may be able to satisfy the compiler
> but question would be how the code got checked in and called stable.
> Sometimes there is confusion over const ptr and const target but I'm
> still not sure how it would matter.

GCC prior to 4.4 was not very picky and allowed simple const -> nonconst
casting in some cases.

Regards
Henrik
Received on Thu Feb 25 2010 - 19:55:31 MST

This archive was generated by hypermail 2.2.0 : Fri Feb 26 2010 - 12:00:11 MST