> Hi, > > Trying to build the latest 3.HEAD on Windows, I have found a lot of > C++ errors, some are warnings. > Please, there is someone that could suggest the needed fixes ?
Ah, VS Fubar. I'll have to research on how we should solve it properly. But fr teh time being IPAddress is exactly identical in data format to sockaddr_in (IPv4-only mode) or sockaddr_in6 (IPv6-enabeld mode) for C purposes. If you need to you can hack a windows-specific C-mapping to those for them. Amos > > Thanks in advance. > > Regards > > Guido > > > ACLReplyMIMEType.cc: > c:\work\nt-3.0\src\protos.h(419) : warning C4190: 'getOutgoingAddr' > has C-linkage specified, but returns UDT 'IPAddress' which is > incompatible with C > ../../../include\IPAddress.h(87) : see declaration of 'IPAddress' > c:\work\nt-3.0\src\ACLReplyHeaderStrategy.h(64) : warning C4661: > 'ACLReplyHeaderStrategy<header>::ACLReplyHeaderStrategy(const > ACLReplyHeaderStrategy<header> &)' : no suitable definition provided > for explicit template instantiation request > with > [ > header=HDR_CONTENT_TYPE > ] > c:\work\nt-3.0\src\ACLReplyHeaderStrategy.h(57) : see > declaration of 'ACLReplyHeaderStrategy<header>::ACLReplyHeaderStrategy' > with > [ > header=HDR_CONTENT_TYPE > ] > c:\work\nt-3.0\src\ACLReplyHeaderStrategy.h(81) : warning C4661: > 'ACLReplyHeaderStrategy<header>::ACLReplyHeaderStrategy(const > ACLReplyHeaderStrategy<header> &)' : no suitable definition provided > for explicit template instantiation request > with > [ > header=HDR_CONTENT_TYPE > ] > c:\work\nt-3.0\src\ACLReplyHeaderStrategy.h(57) : see > declaration of 'ACLReplyHeaderStrategy<header>::ACLReplyHeaderStrategy' > with > [ > header=HDR_CONTENT_TYPE > ] > > event.cc: > c:\work\nt-3.0\src\protos.h(419) : warning C4190: 'getOutgoingAddr' > has C-linkage specified, but returns UDT 'IPAddress' which is > incompatible with C > ../../../include\IPAddress.h(87) : see declaration of 'IPAddress' > ..\..\..\src\event.cc(215) : warning C4099: 'ev_entry' : type name > first seen using 'class' now seen using 'struct' > c:\work\nt-3.0\src\event.h(58) : see declaration of 'ev_entry' > ..\..\..\src\event.cc(266) : warning C4099: 'ev_entry' : type name > first seen using 'class' now seen using 'struct' > c:\work\nt-3.0\src\event.h(58) : see declaration of 'ev_entry' > ..\..\..\src\event.cc(289) : warning C4099: 'ev_entry' : type name > first seen using 'class' now seen using 'struct' > c:\work\nt-3.0\src\event.h(58) : see declaration of 'ev_entry' > ..\..\..\src\event.cc(312) : warning C4099: 'ev_entry' : type name > first seen using 'class' now seen using 'struct' > c:\work\nt-3.0\src\event.h(58) : see declaration of 'ev_entry' > ..\..\..\src\event.cc(314) : warning C4099: 'ev_entry' : type name > first seen using 'class' now seen using 'struct' > c:\work\nt-3.0\src\event.h(58) : see declaration of 'ev_entry' > > squidclient.cc: > ../../../include\IPAddress.h(408) : error C2027: use of undefined > type 'std::basic_ostream<_Elem,_Traits>' > with > [ > _Elem=char, > _Traits=std::char_traits<char> > ] > > > depbase=`echo ACLARP.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \ > if g++ -DHAVE_CONFIG_H > -DDEFAULT_CONFIG_FILE=\"c:/mgw-3.0/etc/squid.conf\" -I. -I. > -I../include -I. -I. -I../include -I../include > -I../lib/libTrie/include -I/usr/include/libxml2 -Werror -Wall > -Wpointer-arith -Wwrite-strings -Wcomments -D_FILE_OFFSET_BITS=64 -g > -O2 -mthreads -MT ACLARP.o -MD -MP -MF "$depbase.Tpo" -c -o ACLARP.o > ACLARP.cc; \ > then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit > 1; fi > ACLARP.cc: In function `int aclMatchArp(SplayNode<acl_arp_data*>**, > IPAddress&)': > ACLARP.cc:571: error: no matching function for call to > `in_addr::in_addr(DWORD&)' > d:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winsock2.h:223: > note: candidates are: in_addr::in_addr() > d:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winsock2.h:223: > note: in_addr::in_addr(const in_addr&) > make[3]: *** [ACLARP.o] Error 1 > > > > - > ======================================================== > Guido Serassio > Acme Consulting S.r.l. - Microsoft Certified Partner > Via Lucia Savarino, 1 10098 - Rivoli (TO) - ITALY > Tel. : +39.011.9530135 Fax. : +39.011.9781115 > Email: [EMAIL PROTECTED] > WWW: http://www.acmeconsulting.it/ > >
