Re: "Your vendor has not defined Socket macro AI_ADDRCONFIG"

2016-01-25 Thread Curtis Jewell
Something else that matters here is what level of Windows support
Strawberry Perl is built with. At this point, I *think* the line is set
at XP, so that AI_ADDRCONFIG would not end up in the headers after
preprocessing. (I know it was when I was building it, I'd have to look
and see what it is now.)

--Curtis Jewell

On Mon, Jan 25, 2016, at 08:53, Alexandr Ciornii wrote:
> Hello
> 
> 2016-01-25 17:38 GMT+02:00 Martin Puppe :
> 
> >>perl foo.pl
> > Your vendor has not defined Socket macro AI_ADDRCONFIG, used at foo.pl line 
> > 6.
> 
> Which version of Windows do you use? AI_ADDRCONFIG was added in
> Windows 6.0/Vista (
> https://msdn.microsoft.com/en-us/library/windows/desktop/ms738520%28v=vs.85%29.aspx
> )
> 
> -- 
> Alexandr Ciornii, http://chorny.net


Re: "Your vendor has not defined Socket macro AI_ADDRCONFIG"

2016-01-25 Thread Alexandr Ciornii
Hello

2016-01-25 17:38 GMT+02:00 Martin Puppe :

>>perl foo.pl
> Your vendor has not defined Socket macro AI_ADDRCONFIG, used at foo.pl line 6.

Which version of Windows do you use? AI_ADDRCONFIG was added in
Windows 6.0/Vista (
https://msdn.microsoft.com/en-us/library/windows/desktop/ms738520%28v=vs.85%29.aspx
)

-- 
Alexandr Ciornii, http://chorny.net


"Your vendor has not defined Socket macro AI_ADDRCONFIG"

2016-01-25 Thread Martin Puppe
Hello,

the following code (foo.pl) results in the error message mentioned in the 
subject line.

```
use Socket qw(:DEFAULT IPPROTO_TCP);

&SOCK_STREAM; &IPPROTO_TCP; &SOMAXCONN;

import Socket qw(/^(?:AI|NI|NIx|EAI)_/);
&AI_ADDRCONFIG;
```

```
>perl foo.pl
Your vendor has not defined Socket macro AI_ADDRCONFIG, used at foo.pl line 6.
```

In case you are wondering where that code is from, it is from SpamAssassin's 
spamd. See 
https://github.com/apache/spamassassin/blob/d13e61ed7b75744eb8bebbe88d6e1e2c6af0c9f0/spamd/spamd.raw#L46
 Because of this error, spamd cannot use IPv6 and falls back to IPv4 instead.

I am currently trying to understand the scope of the problem and what would be 
needed to be done to fix it. I would be grateful for any hints.

Regards,
Martin








JAM Software GmbH
Managing Director: Joachim Marder
Am Wissenschaftspark 26 * 54296 Trier * Germany
Phone: +49 (0)651-145 653 -0 * Fax: +49 (0)651-145 653 -29
Commercial register number HRB 4920 (AG Wittlich) http://www.jam-software.com






JAM Software GmbH
Geschäftsführer: Joachim Marder
Am Wissenschaftspark 26 * 54296 Trier * Germany
Tel: 0651-145 653 -0 * Fax: 0651-145 653 -29
Handelsregister Nr. HRB 4920 (AG Wittlich) http://www.jam-software.de