bugFreeciv - Bugs: bug #18440, "IP_ADD_MEMBERSHIP...

Show feedback again

bug #18440: "IP_ADD_MEMBERSHIP ( failed" on Windows

Submitted by:  Jacob Nevins <jtn>
Submitted on:  Tue Aug 2 00:39:48 2011  
Category: generalSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: Operating System: Microsoft Windows
Planned Release: 2.6.0, 3.0.0Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Wed Dec 9 00:40:09 2015, comment #9:

Unfortunately it seems that there's more to this. Initial success was achieved on testing patch #6533 on S2_6, but the error is present in current S2_5 (with patch #6533 committed)

In S2_6/TRUNK there's also patch #6496 + bug #24000 that could have some effect on this.

Marko Lindqvist <cazfi>
Project Administrator
Tue Dec 8 23:03:29 2015, comment #8:

cazfi reports that upgrading to winsock2 (patch #6533) has, with his crosser builds, (a) made this message go away (b) made LAN announcements work for the first time.

Jacob Nevins <jtn>
Project Administrator
Sun Oct 12 14:52:37 2014, comment #7:

This bug is also seen at http://gna.org/bugs/?22448#comment10
with crosser build freeciv-win32-2.5.99-dev-r25830


a user compiled freeciv 2.5.0-beta1+ on windows

Tue Mar 11 21:39:11 2014, comment #6:

See also bug #19840.

Jacob Nevins <jtn>
Project Administrator
Sun Feb 2 15:08:45 2014, comment #5:

(On starting a standalone server, this is.)

Jacob Nevins <jtn>
Project Administrator
Sun Feb 2 15:08:16 2014, comment #4:

Just tried both cproc's r24327 test build and cazfi's S2_4 r24328 crosser build (with win32stack-0.12).

cproc's build did not show the issue but cazfi's did show it:

Same Windows 7 install as before. This time I can confirm it was not connected to a network.

Jacob Nevins <jtn>
Project Administrator
Sun Aug 4 20:39:33 2013, comment #3:

Maybe relevant information about conditional compilation around the failing call about crosser builds (from fc_config.h)

IPV6_SUPPORT not defined
HAVE_INET_ATON not defined

Marko Lindqvist <cazfi>
Project Administrator
Fri Jul 20 08:21:55 2012, comment #2:

The whole message is there, but you have to select the text and drag right to see it (dodgy CSS?)

"An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call."

I think I get something like this on Linux when starting Freeciv with no Internet connection; it's quite possible that Windows didn't have access to the Internet this time (it often doesn't).

Jacob Nevins <jtn>
Project Administrator
Thu Jul 19 23:56:45 2012, comment #1:

Was the end of error message eaten by gna formatting, or does it really not tell what is invalid?

This comes from sernet.c:server_open_socket() and as you suspected it's part of setting up game announcement socket.

Marko Lindqvist <cazfi>
Project Administrator
Tue Aug 2 00:39:48 2011, original submission:

Noticed with cazfi's trunk build (r20045) on Windows 7 Home Premium 32-bit: on starting the server, I get:

Also visible briefly in the client when it spawns a server.

I think I've seen this previously with other versions, probably S2_3 builds. Haven't checked yet if it's just cazfi's builds or cproc's as well.

I'm guessing this is something to do with the LAN scan. When I started a server and a separate client, the server didn't show up on the scan.

Jacob Nevins <jtn>
Project Administrator


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

   patch dependencies.


Carbon-Copy List
  • -unavailable- added by cazfi (Posted a comment)
  • -unavailable- added by jtn (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue May 3 21:53:08 2016cazfiPlanned Release2.6.0=>2.6.0, 3.0.0
    Sun Jan 4 07:50:42 2015cazfiPlanned Release2.4.0=>2.6.0
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup