[Xorp-hackers] FIXed Fw: win32api IP_LOCAL_BINDING defined wrong in routeprot.h Or . . . include/routprot.h:51: error 'IP_LOCAL_BINDING' does not name a type
Victor Miasnikov
vvm at tut.by
Tue Mar 20 01:36:49 PDT 2012
Hi!
Big thanks to Ben Greear for source code and Chris Sutcliffe for commit to CVS!
Error described in
BUILD_NOTES
==
. . .
3.7 Microsoft Windows
=====================
* This describes steps to cross-compile Xorp.ct on Linux, using mingw
toolchain to produce windows binaries.
. . .
If you see errors such as:
In file included from fea/data_plane/fibconfig/fibconfig_entry_get_iphelper.cc:34:
/usr/i686-pc-mingw32/sys-root/mingw/include/routprot.h:51: error: 'IP_LOCAL_BINDING' does not name a type
scons: *** [obj/i386-pc-mingw32/fea/data_plane/fibconfig/fibconfig_entry_get_iphelper.o] Error 1
scons: building terminated because of errors.
Then you should patch the routprot.h file:
diff --git a/routprot.h.orig b/routprot.h
. . .
==
fixed in Rev v1.3 of routprot.h
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/include/?cvsroot=src
==
. . .
routprot.h 1.3 6 hours ironhead 2012-03-19 Ben Greear <greear at users.sf.net> * include/routprot.h ...
. . .
==
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/include/routprot.h?cvsroot=src
==
CVS log for src/winsup/w32api/include/routprot.h
. . .
--------------------------------------------------------------------------------
Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 20 00:28:53 2012 UTC (6 hours, 36 minutes ago) by
ironhead
Changes since 1.2: +4 -4 lines
Diff to previous 1.2(colored)
2012-03-19 Ben Greear <greear at users.sf.net>
* include/routprot.h (IP_LOCAL_BINDING): Move above IP_ADAPTER_BINDING_INFO
to correct warning about IP_LOCAL_BINDING being undefined.
. . .
==
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/include/routprot.h.diff?r1=1.2&r2=1.3&cvsroot=src
==
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/routprot.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- src/winsup/w32api/include/routprot.h 2006/05/11 15:57:11 1.2
+++ src/winsup/w32api/include/routprot.h 2012/03/20 00:28:53 1.3
@@ -43,6 +43,10 @@
#define IPX_PROTOCOL_NLSP 0x00020002
/*--- Router Management Reference - Router Management Structures */
#if (_WIN32_WINNT >= 0x0500)
+typedef struct IP_LOCAL_BINDING {
+ DWORD Address;
+ DWORD Mask;
+} IP_LOCAL_BINDING,*PIP_LOCAL_BINDING;
typedef struct IP_ADAPTER_BINDING_INFO {
ULONG AddressCount;
DWORD RemoteAddress;
@@ -50,10 +54,6 @@
ULONGLONG Speed;
IP_LOCAL_BINDING Address[];
} IP_ADAPTER_BINDING_INFO,*PIP_ADAPTER_BINDING_INFO;
-typedef struct IP_LOCAL_BINDING {
- DWORD Address;
- DWORD Mask;
-} IP_LOCAL_BINDING,*PIP_LOCAL_BINDING;
typedef struct IPX_ADAPTER_BINDING_INFO {
ULONG AdapterIndex;
UCHAR Network[4];
==
Best regards, Victor Miasnikov
Blog: http://vvm.blog.tut.by/
P.S. Of course, we need wait fixed mingw32-w32api . . .
More information about the Xorp-hackers
mailing list