Search squid archive

RE: Error compiling squid 3.0 stable4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

> ----------------------------------------
> > Date: Thu, 25 Feb 2010 11:38:52 +0530
> > From: senthilkumaar2021@xxxxxxxxx
> > To: squid-users@xxxxxxxxxxxxxxx
> > Subject:  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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux