[Bug] Error installing INET-3.2.2

219 views
Skip to first unread message

Fayruz Rahma

unread,
Mar 13, 2016, 8:47:04 PM3/13/16
to OMNeT++ Users
Hi guys,

I tried to install INET-3.2.2 on my OMNeT++ 5.0 RC & Windows 8.1 and encountered this problem.

Error log:

inet/applications/packetdrill/parser.cc
inet/applications/packetdrill/PacketDrillUtils.cc:45:7: error: use of undeclared identifier 'IPPROTO_SCTP'
    { IPPROTO_SCTP,                     "IPPROTO_SCTP"                     },
      ^
1 error generated.
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'
    SID = 299,
    ^
D:\installer\omnetpp-5.0\tools\win32\mingw32\i686-w64-mingw32\include\winnt.h:2609:7: note: previous definition is here
    } SID,*PISID;
      ^
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
make: *** [all] Error 2
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.

Maybe this is INET-3.2.2 bug...?

Thank you for your attention

Fayruz Rahma

unread,
Mar 14, 2016, 12:28:47 AM3/14/16
to OMNeT++ Users
The same problem appeared when I tried to install INET-3.2.2 on my OMNeT++ 4.6

Rudolf Hornig

unread,
Mar 16, 2016, 6:11:07 AM3/16/16
to OMNeT++ Users
IT seems to be INET 3.2.2 buf on Windows. I'm investigating it.

Rudolf Hornig

unread,
Mar 16, 2016, 9:29:08 AM3/16/16
to OMNeT++ Users
INET 3.2.3 is released that should fix the build error on Windows.

Enver Ahmet

unread,
Oct 26, 2016, 7:52:27 AM10/26/16
to OMNeT++ Users
The same problem appeared when I tried to install INET-3.4.0 on my OMNeT++ 5.0
Reply all
Reply to author
Forward
0 new messages