I tried to install INET-3.2.2 on my OMNeT++ 5.0 RC & Windows 8.1 and encountered this problem.
inet/applications/packetdrill/parser.cc
inet/applications/packetdrill/PacketDrillUtils.cc:45:7: error: use of undeclared identifier 'IPPROTO_SCTP'
{ IPPROTO_SCTP, "IPPROTO_SCTP" },
In file included from parser.y:85:
In file included from inet/applications/packetdrill/PacketDrill.h:29:
In file included from ../src\inet/transportlayer/sctp/SCTPAssociation.h:30:
../src\inet/networklayer/ipv6/IPv6RoutingTable.h:391:92: warning: all paths through this function will call itself [-Winfinite-recursion]
virtual InterfaceEntry *getInterfaceByAddress(const L3Address& address) const override { return getInterfaceByAddress(address.toIPv6()); }
In file included from parser.y:91:
inet/applications/packetdrill/parser.h:89:5: error: redefinition of 'SID'
D:\installer\omnetpp-5.0\tools\win32\mingw32\i686-w64-mingw32\include\winnt.h:2609:7: note: previous definition is here
parser.y:972:5: error: no matching function for call to 'sprintf'
sprintf(&((yyval.string)), "%s.", (yyvsp[-1].string));
D:\installer\omnetpp-5.0\tools\win32\mingw32\i686-w64-mingw32\include\stdio.h:307:5: note: candidate function not viable: no known conversion from 'char **' to 'char *' for 1st argument; remove &
int sprintf (char *__stream, const char *__format, ...)
1 warning and 2 errors generated.
Makefile:1025: recipe for target '../out/gcc-debug/src/inet/applications/packetdrill/PacketDrillUtils.o' failed
make[1]: *** [../out/gcc-debug/src/inet/applications/packetdrill/PacketDrillUtils.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [../out/gcc-debug/src/inet/applications/packetdrill/parser.o] Error 1
Makefile:1025: recipe for target '../out/gcc-debug/src/inet/applications/packetdrill/parser.o' failed
make[1]: Leaving directory '/d/installer/omnetpp-5.0/samples/inet/src'
Makefile:4: recipe for target 'all' failed
Two days ago, I download INET manually from github and tried to build the project. But this error occured.
Then, this morning I tried to install INET automatically from OMNeT++ (using Help --> Install Simulation Models...), and the same error log appeared.