Search squid archive

Re: Problem with running squid 3.5 on windows 7

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

 



Hi Amos,
 
Hmm, after checking I found out that this fix works only for 64 bit.
When I try this on 32, both mingw on Cygwin and Ubuntu cannot identify presence of getaddrinfo.
 
It seems the 32 bit version of libws2_32 is compiled with "stdcall", i.e. the following works:
 
#ifdef __cplusplus
extern "C"
#endif
char __attribute__((__stdcall__)) getaddrinfo(int, int, int, int); //

 
// AUTOCONF tries out the below one (which does not mingle @16)
// char getaddrinfo();
// return getaddrinfo();
 
int
main ()
{

    return getaddrinfo(0,0,0,0);
  ;
  return 0;
}

 
I also found the following report, which kind of confirms what I see (https://patches.libav.org/patch/545/):
This moves network_extralibs setup before use so that the link test
works correctly on mingw-w64.  mingw32 still fails to detect it due
to calling convention differences; getaddrinfo() is STDCALL, so it
is mangled as getaddrinfo@16 on x86.


Unfortunately, my background is windows, so I'm new to autoconf and all unix business. What do you think will be the right approach here? Maybe AC_CECK_DECL instead of AC_REPLACE_FUNC for getaddrinfo (and maybe some other funcs declared in the same lib)?
 
Thank you very much for all your help, really appreciate it!
 
--e
 
> Date: Sun, 21 Dec 2014 03:11:40 +1300
> From: squid3@xxxxxxxxxxxxx
> To: squid-users@xxxxxxxxxxxxxxxxxxxxx
> Subject: Re: Problem with running squid 3.5 on windows 7
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 20/12/2014 9:46 a.m., Amos Jeffries wrote:
> > On 20/12/2014 7:05 a.m., Eldar Akchurin wrote:
> >> Hi Amos,
> >
> >> Thanks a lot for the hint! Specifying LIBS="-lws2_32" fixes this
> >> particular issue. Let's see what comes up next.
> >
> >> --e
> >
> > Great! thank you. I have added that to Squid-3. For the next
> > release you should not have to explicitly define it or the 0x601
> > version options.
>
> Actually, spoke too soon. I have been testing prior to the commit and
> it seems this does not work for me.
>
> Amos
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (MingW32)
>
> iQEcBAEBAgAGBQJUlYOcAAoJELJo5wb/XPRjPg0H/34HEDJvxJzxmuFIcavcRmCt
> 3BxwAUeVb07e5gX96wEcVboaKgCqWuYrjtGEnUv11E3Uo3wvmBtw83U8eFxb2DEv
> 9+FOSy59Q20oFmErmNHlWTEHfdc+I9G5aSIxQxSefvANAV3foTS7cOR8M4RBuLhp
> SumXc/p3qtp4HhNYpab/qXwuAxXsEPuQtTzocEOFOiRrQa1HIHvjj5hYcy3/BICE
> E4jdqNinpJ9EO2w8hDqwfGqn//mFJMf+/wcg8z9u6NED8xmt/7ihVaYZTy9p8YOk
> b21/9AdcvuniiC50YATzhyM8Uk8GdsmN9xUBhVKy6SP8Dd9dGIYThfYE2cg3pf0=
> =/ab+
> -----END PGP SIGNATURE-----
> _______________________________________________
> squid-users mailing list
> squid-users@xxxxxxxxxxxxxxxxxxxxx
> http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

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

  Powered by Linux