Error while executing make command for installation of omnetpp-4.3

66 views
Skip to first unread message

pavith...@gmail.com

unread,
Feb 25, 2019, 2:09:17 AM2/25/19
to OMNeT++ Users
Hi I am trying to install OMNET++ version 4.3 as I need to work with INET2.1 for NETA Framework.
The ./configure command worked perfect and  I was able to edit my bash file also for setting environment variables.
But when I execute make command, I am getting the following error message.Please help me to rectify this.

Thanks in Advance.

Error message:

make MODE=release

make[1]: Entering directory '/home/pavithra/omnetpp-4.3'

***** Configuration: MODE=release, TOOLCHAIN_NAME=gcc, LIB_SUFFIX=.so ****

===== Checking environment =====

===== Compiling utils ====

make[2]: Entering directory '/home/pavithra/omnetpp-4.3/src/utils'

Creating executable: /home/pavithra/omnetpp-4.3/out/gcc-release/src/utils/opp_lcg32_seedtool

Creating executable: /home/pavithra/omnetpp-4.3/out/gcc-release/src/utils/abspath

Copying scripts to bin directory...

make[2]: Leaving directory '/home/pavithra/omnetpp-4.3/src/utils'

===== Compiling common ====

make[2]: Entering directory '/home/pavithra/omnetpp-4.3/src/common'

lcgrandom.cc

filereader.cc

filereader.cc: In member function ‘bool FileReader::isLineStart(char*)’:

filereader.cc:295:45: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]

fread(&previousChar, 1, 1, file); //XXX warning: ignored return va

^

linetokenizer.cc

stringpool.cc

stringtokenizer.cc

fnamelisttokenizer.cc

expression.cc

LEX: expression.lex

YACC: expression.y

lex.expressionyy.cc

expression.tab.cc

matchexpression.cc

YACC: matchexpression.y

matchexpression.y:21.1-12: warning: deprecated directive, use ‘%pure-parser’ [-Wdeprecated]

%pure_parser

^^^^^^^^^^^^

matchexpression.y: warning: 1 shift/reduce conflict [-Wconflicts-sr]

matchexpressionlexer.cc

matchexpression.tab.cc

matchexpression.tab.cc: In function ‘int matchexpressionyyparse()’:

matchexpression.tab.cc:1180:30: error: too few arguments to function ‘int matchexpressionyylex(char**, void*)’

yychar = yylex (&yylval);

^

matchexpression.tab.cc:104:12: note: declared here

inline int matchexpressionyylex (YYSTYPE *yylval, void *statePtr)

^

matchexpression.tab.cc:1260:73: error: ‘statePtr’ was not declared in this scope

{ MatchExpressionParserState &state = *(MatchExpressionParserState*)statePtr;

^

matchexpression.tab.cc:1267:73: error: ‘statePtr’ was not declared in this scope

{ MatchExpressionParserState &state = *(MatchExpressionParserState*)statePtr;

^

matchexpression.tab.cc:1274:73: error: ‘statePtr’ was not declared in this scope

{ MatchExpressionParserState &state = *(MatchExpressionParserState*)statePtr;

^

matchexpression.tab.cc:1281:73: error: ‘statePtr’ was not declared in this scope

{ MatchExpressionParserState &state = *(MatchExpressionParserState*)statePtr;

^

matchexpression.tab.cc:1289:87: error: ‘statePtr’ was not declared in this scope

MatchExpressionParserState &state = *(MatchExpressionParserState*)statePtr;

^

matchexpression.tab.cc:1301:87: error: ‘statePtr’ was not declared in this scope

MatchExpressionParserState &state = *(MatchExpressionParserState*)statePtr;

^

matchexpression.tab.cc: In static member function ‘static void MatchExpression::parsePattern(std::vector<MatchExpression::Elem>&, const char*, bool, bool, bool)’:

matchexpression.tab.cc:1559:19: error: too many arguments to function ‘int matchexpressionyyparse()’

yyparse(&state);

^

matchexpression.tab.cc:63:25: note: declared here

#define yyparse matchexpressionyyparse

^

matchexpression.tab.cc:1011:1: note: in expansion of macro ‘yyparse’

yyparse (void)

^l,kkn

Makefile:54: recipe for target '/home/pavithra/omnetpp-4.3/out/gcc-release/src/common/matchexpression.tab.o' failed

make[2]: *** [/home/pavithra/omnetpp-4.3/out/gcc-release/src/common/matchexpression.tab.o] Error 1

make[2]: Leaving directory '/home/pavithra/omnetpp-4.3/src/common'

Makefile:100: recipe for target 'common' failed

make[1]: *** [common] Error 2

make[1]: Leaving directory '/home/pavithra/omnetpp-4.3'

Makefile:23: recipe for target 'allmodes' failed

make: *** [allmodes] Error 2

Alfonso Ariza Quintana

unread,
Feb 25, 2019, 7:30:47 AM2/25/19
to omn...@googlegroups.com
NETA is included in inetmanet 3.x branch, and you can use omnet 5.4.1 with this branch.


De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de pavith...@gmail.com <pavith...@gmail.com>
Enviado: lunes, 25 de febrero de 2019 8:09
Para: OMNeT++ Users
Asunto: [Omnetpp-l] Error while executing make command for installation of omnetpp-4.3
 
--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

Pavithra Thippanaik

unread,
Feb 25, 2019, 10:59:10 PM2/25/19
to omn...@googlegroups.com
Thank you. I will check the mentioned omnet++ and inet version and verify if it works
--
Pavithra T
Assistant Professor
Dept of Electronics and Communication Engg
Govt SKSJT Institute
Bangalore

Pavithra Thippanaik

unread,
Feb 27, 2019, 5:55:55 AM2/27/19
to omn...@googlegroups.com
I have installed the mentioned omnet++ and inet versions. But I am unable to find NETA folder in the inet version.
Do I need to make any other installations?
Can you please help me by providing some reference as how I can add additional packages required and introduce network attacks.
Reply all
Reply to author
Forward
0 new messages