Your message dated Sat, 13 Feb 2016 09:34:48 +0100
with message-id <[email protected]>
and subject line Re: Bug#813059: mingw32: Incorrect value for 
IP_ADD_MEMBERSHIP=5, should be 12. setsockopt does not work.
has caused the Debian Bug report #813059,
regarding mingw32: Incorrect value for IP_ADD_MEMBERSHIP=5, should be 12. 
setsockopt does not work.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
813059: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813059
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mingw32
Version: 4.9.1-19+14.3
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
My program compiles correctly under Debian wheezy and also on many other
systems. Fedora, Windows XP etc. Debian jessie and sid do not work.
They also do not work when I try to generate 64 bit  code.
The progarm fails when setsockopt is called with IPPROTO_IP and 
IP_ADD_MEMBERSHIP. The reported error is 10042, WSAENOPROTOOPT

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
I replaced IP_ADD_MEMBERSHIP with its correct numerical value = 12

   * What was the outcome of this action?
The program works correctly. 

   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.3.0-1-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mingw32 depends on:
ii  dpkg                1.18.4
ii  g++-mingw-w64-i686  5.3.1-3+16+b1
ii  gcc-mingw-w64-base  5.3.1-3+16+b1
ii  gcc-mingw-w64-i686  5.3.1-3+16+b1
ii  mingw32-binutils    2.25-5+5.2+deb8u1

mingw32 recommends no packages.

mingw32 suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Hi Leif,

On Fri, 12 Feb 2016 22:38:53 +0100, Leif Asbrink <[email protected]> wrote:
> I have been using winsock.h and I find that this has been wrong
> all the time because it sets IP_ADD_MEMBERSHIP=5
> 
> As it happens previous mingw versions have defined _WINSOCK_H
> by including winsock2.h into windows.h so this way the incorrect
> value from winsock.h was never applied.
> 
> Following your advice I have now included ws2tcpip.h instead
> (before windows.h) and all is well.
> 
> Thank you very much:-)

You're very welcome!

Regards,

Stephen

Attachment: pgpi5XmQMWNqV.pgp
Description: OpenPGP digital signature


--- End Message ---

Reply via email to