New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
struct ip_mqreq is redefined #8214
Comments
From ThomasKratz@web.deCreated by ThomasKratz@WEB.DEwin32sck.c includes winsock.h (Winsock Version 1.1) and The IP_ constants for winsock2.h are in ws2tcpip.h which is not included If you now try to include ws2tcpip.h for another module As far as I can judge *either* winsock.h *or* winsock2.h should be used. Thomas Perl Info
|
From guest@guest.guest.xxxxxxxx
Sorry for the missing subject. I had to copy/paste this to another mail Reading my own error report I feel I should clarify a bit (note to I am trying to build IO::Socket::Multicast 1.02 on perl 5.8.7 under Win32. This is due to wrongly set constants defined in Winsock.h. (for example Perl is compiled to use winsock2 (via ws2spi.h), but perl.h includes Including it in the extensions XS code will result in errors due to A workaround for IO::Socket::Multicast will be supplying the correct Thomas
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;P:\ABT\SIRONCS\PROD\BIN;P:\ABT\ZEIDON32.RUN\BIN;C:\Programme\Microsoft
Server\80\Tools\BINN;C:\Programme\Reflection;C:\NUTCROOT\bin;C:\NUTCROOT\bin\x11;C:\NUTCROOT\mksnt;D:\Programme\Support Tools\;D:\Programme\Subversion\bin;D:\programme\cygwin\bin;C:\Programme\Reuters\Common\Login;C:\Programme\Reuters\TIBRV\BIN;C:\PROGRA
|
The RT System itself - Status changed from 'new' to 'open' |
From @janduboisOn Mon, 21 Nov 2005, Guest via RT wrote:
I think this analysis is correct (except that it is win32/include/sys/socket.h If perl.h unconditionally includes winsock2.h then you get I believe that most modules that do this will not be using socket There are also references to winsock.h in ext/Errno/Errno_pm.PL, but as Cheers, Inline Patch--- perl/5.8.7/win32/include/sys/socket.h.~1~ Mon Nov 21 21:04:43 2005
+++ perl/5.8.7/win32/include/sys/socket.h Mon Nov 21 21:04:43 2005
@@ -15,7 +15,11 @@
# define Win32_Winsock
#endif
#include <windows.h>
-#include <winsock.h>
+
+/* Too late to include winsock2.h if winsock.h has already been loaded */
+#ifndef _WINSOCKAPI_
+# include <winsock2.h>
+#endif
#include "win32.h"
End of Patch. |
From @TuxOn Mon, 21 Nov 2005 21:35:51 -0800, "Jan Dubois" <jand@ActiveState.com> wrote:
Thanks, I have applied this patch to *blead* in change #26189
-- |
p5p@spam.wizbit.be - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#37708 (status was 'resolved')
Searchable as RT37708$
The text was updated successfully, but these errors were encountered: