apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40398] - Cannot compile project on Windows SDK 6.0 (Vista), network _io\unix\multicast.c being called instead of network_io\win32\multicast.c
Date Fri, 08 Jun 2007 17:35:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40398>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40398


thaiha@psv.com.vn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |
            Summary|Cannot compile project in VS|Cannot compile project on
                   |2005, network               |Windows SDK 6.0 (Vista),
                   |_io\unix\multicast.c being  |network _io\unix\multicast.c
                   |called instead of           |being called instead of
                   |network_io\win32\multicast.c|network_io\win32\multicast.c




------- Additional Comments From thaiha@psv.com.vn  2007-06-08 10:35 -------
I have the same problem with Windows SDK 6.0. I found a workaround solution at
http://procfs.blogspot.com/2007/02/build-apache-on-vista.html.
After more investigating on the issue I figured out that Windows SDK 6.0
introduces the new macro MCAST_JOIN_SOURCE_GROUP and that's the reason of the
error messages.

--- ws2ipdef.h --------
651: #define MCAST_JOIN_SOURCE_GROUP     45	// Join IP group/source.

748: #if (NTDDI_VERSION >= NTDDI_WINXP)
762: typedef struct group_source_req {
783: #endif

Clearly that in some cases, if the macro MCAST_JOIN_SOURCE_GROUP is defined,
struct group_source_req is not defined (because #if). On Linux
(http://lxr.oss.org.cn/source/include/linux/in.h), there is no #if
(NTDDI_VERSION >= NTDDI_WINXP) like that.

So I think if we change the code of multicast.c from

136: #if MCAST_JOIN_SOURCE_GROUP
148: #if MCAST_JOIN_SOURCE_GROUP

to

136: #if defined(group_source_req)
148: #if defined(group_source_req)

the error will be resolved.

I have updated the file multicast.c and it fixed the issue on my machine
(Windows XP, VS2005, Windows SDK 6.0) 


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message