Re: Residual build errors on MinGW and MSVC++

From: Serassio Guido <guido.serassio@dont-contact.us>
Date: Sun, 10 Aug 2003 11:09:51 +0200

Hi Robert,

At 09.49 10/08/2003, Robert Collins wrote:

>On Sun, 2003-08-10 at 17:14, Serassio Guido wrote:
>
>
> > Sorry Robert, but I'm not sure how to better convert
> >
> > O *anObject = static_cast <O *>(address);
> > delete anObject;
> >
> > to a static function, please do you can help me ?
>
>Look at my recent checkin - I've done it.

Great ! It works fine !

> > >Sounds like mingw have a 'funny' struct definition for in_addr. Perhaps a
> > >memset is best for now.
> >
> > Ok, of course it works.
>
>Henrik has checked in this fix. Are there any remaining issues in HEAD?

There are some little thing already fixed in the nt branch, not sure if
mine are the better fixes.
I have attached the changes, and this are the descriptions / fixed errors:

errorpage.cc:
in errorDynamicPageInfoDestroy() a loop counter is seen first as int, after
as size_t

protos.h:
c:\work\nt-3.0\src\protos.h(443) : warning C4190: '<Unknown>' has C-linkage
specified, but returns UDT 'String' which is incompatible with C
         c:\work\nt-3.0\src\squidstring.h(77) : see declaration of 'String'
c:\work\nt-3.0\src\protos.h(444) : warning C4190: '<Unknown>' has C-linkage
specified, but returns UDT 'String' which is incompatible with C
         c:\work\nt-3.0\src\squidstring.h(77) : see declaration of 'String'
c:\work\nt-3.0\src\protos.h(445) : warning C4190: '<Unknown>' has C-linkage
specified, but returns UDT 'String' which is incompatible with C
         c:\work\nt-3.0\src\squidstring.h(77) : see declaration of 'String'
c:\work\nt-3.0\src\protos.h(446) : warning C4190: '<Unknown>' has C-linkage
specified, but returns UDT 'String' which is incompatible with C
         c:\work\nt-3.0\src\squidstring.h(77) : see declaration of 'String'
c:\work\nt-3.0\src\protos.h(447) : warning C4190: '<Unknown>' has C-linkage
specified, but returns UDT 'String' which is incompatible with C
         c:\work\nt-3.0\src\squidstring.h(77) : see declaration of 'String'

protos.h:
c:\work\nt-3.0\src\protos.h(740) : error C2526: 'storeCreate' : C linkage
function cannot return C++ class 'RefCount<class storeIOState>'
c:\work\nt-3.0\src\protos.h(741) : error C2526: 'storeOpen' : C linkage
function cannot return C++ class 'RefCount<class storeIOState>'

typedefs.h:
c:\work\nt-3.0\src\httprequest.h(56) : warning C4099: 'HttpRequest' : type
name first seen using 'struct' now seen using 'class'
         c:\work\nt-3.0\src\typedefs.h(202) : see declaration of 'HttpRequest'

ACLRequestHeaderStrategy.h
c:\work\nt-3.0\src\aclrequestheaderstrategy.h(88) : error C2059: syntax
error : 'constant'

ACLStrategised.h
c:\work\nt-3.0\src\aclreplyheaderstrategy.h(88) : error C2059: syntax error
: 'constant'

ACLReplyHeaderStrategy.h:
c:\work\nt-3.0\src\aclreplyheaderstrategy.h(87) : error C2059: syntax error
: 'constant'

Regards

Guido

-
========================================================
Guido Serassio
Acme Consulting S.r.l.
Via Gorizia, 69 10136 - Torino - ITALY
Tel. : +39.011.3249426 Fax. : +39.011.3293665
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/

Received on Sun Aug 10 2003 - 03:10:38 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:27 MST