R: [squid-users] Building squid 3.1.0.13 on MS-Windows (minGW)

From: Guido Serassio <guido.serassio_at_acmeconsulting.it>
Date: Mon, 17 Aug 2009 14:15:35 +0200

Hi Amos,

>
> The big part of that (source re-formatting, error page template changes,
> and AsyncCalls) won't affect windows. The bits that will I think are
> quite small. The problem is only the time and testing needed to find
> them. Nevil has been very helpful and found this one, I think it's
> worthwhile fixing whatever happens.
>
> (This is only regarding the 3.0->3.1 diff, any big issues from 3.0 may
> still be large problems).
>
> >
> > For my point of view, currently the Windows port of Squid > 3.0 must be
> > considered fully broken because is incomplete and untested.
> >
> > Regards
> >
> > Guido
> >
>
> We have now limited this particular functionality problem to
> getaddrinfo().
>
> I'm thinking the socket API wrappings in mswin.h just need to be
> expanded to include those getaddrinfo/freeaddrinfo/getnameinfo calls.
> That will cover one of the bigger gaps in the new system API calls 3.1
> makes.
>
> I was hoping you could help out with some info on how to do the wrapping
> properly.
>
> If Nevil is happy to continue as tester with this I'm happy to keep
> debugging and fixing windows things by remote.
>

Sorry Amos, but things are more complex.

The only really working build and debug environment on Windows is Visual Studio, gdb on Windows is very unreliable.
 
But currently Squid > 3.0 doesn't build at all using Visual Studio: there are too many source rearrangement and changes to the build process that are incompatible with the old Squid 3.0 project.

The Visual Studio project for Squid 3 is a very sensitive object because there are some basic emulation of the standard configure process (not available in Visual Studio).

Just as example, the following recent change is enough to broke the whole build process:

-AC_INIT(Squid Web Proxy, 3.HEAD-BZR, http://www.squid-cache.org/bugs/, squid)
-AM_CONFIG_HEADER(include/autoconf.h)
+AC_INIT([Squid Web Proxy],[3.HEAD-BZR],[http://www.squid-cache.org/bugs/],[squid])

Regards

Guido

Guido Serassio
Acme Consulting S.r.l.
Microsoft Gold Certified Partner
Via Lucia Savarino, 1 10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135 Fax. : +39.011.9781115
Email: guido.serassio_at_acmeconsulting.it
WWW: http://www.acmeconsulting.it

> -----Messaggio originale-----
> Da: Amos Jeffries [mailto:squid3_at_treenet.co.nz]
> Inviato: luned́ 17 agosto 2009 7.04
> A: Guido Serassio
> Cc: Nevil Thatcher; squid-users_at_squid-cache.org; Squid Developers
> Oggetto: Re: [squid-users] Building squid 3.1.0.13 on MS-Windows (minGW)
>
> Guido Serassio wrote:
> > Hi Amos,
> >
> > At 14.25 16/08/2009, Amos Jeffries wrote:
> >> CC'ing to squi-dev. This really should be over there.
> >> Maybe Guido can help.
> >
> > Probably the solution is not simple.
> >
> > As you know, the development of Squid 3 is stopped since April 2008
> > after the bazaar migration.
> >
> > This means that ALL subsequent code changes to Squid 3 are fully
> > untested on Windows.
> > Two months ago I was able to fix all the build failures of Squid 3 when
> > building using MinGW, but nothing was done on functionality side.
> >
> > Today, according to Canonical people, bazaar should really work on
> > Windows, but the there are too much outstanding code changes to be
> > checked for a single developer: looking to Squid 3.1 project summary,
> > there are 1022 changesets with 204446 line insertion and 295342 line
> > deletion.
>
> The big part of that (source re-formatting, error page template changes,
> and AsyncCalls) won't affect windows. The bits that will I think are
> quite small. The problem is only the time and testing needed to find
> them. Nevil has been very helpful and found this one, I think it's
> worthwhile fixing whatever happens.
>
> (This is only regarding the 3.0->3.1 diff, any big issues from 3.0 may
> still be large problems).
>
> >
> > For my point of view, currently the Windows port of Squid > 3.0 must be
> > considered fully broken because is incomplete and untested.
> >
> > Regards
> >
> > Guido
> >
>
> We have now limited this particular functionality problem to
> getaddrinfo().
>
> I'm thinking the socket API wrappings in mswin.h just need to be
> expanded to include those getaddrinfo/freeaddrinfo/getnameinfo calls.
> That will cover one of the bigger gaps in the new system API calls 3.1
> makes.
>
> I was hoping you could help out with some info on how to do the wrapping
> properly.
>
> If Nevil is happy to continue as tester with this I'm happy to keep
> debugging and fixing windows things by remote.
>
> Amos
> --
> Please be using
> Current Stable Squid 2.7.STABLE6 or 3.0.STABLE18
> Current Beta Squid 3.1.0.13
Received on Mon Aug 17 2009 - 12:16:17 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 18 2009 - 12:00:05 MDT