but when I am trying install omnetpp-4.3 on ubuntu14.4 it reports error when I run make I get following:
/omnetpp/omnetpp-4.3.1$ make MODE=release ** Configuration: MODE=release, TOOLCHAIN_NAME=gcc, LIB_SUFFIX=.so
===== Checking environment =====
===== Compiling utils ====
make[1]: entrant dans le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/utils »
Copying scripts to bin directory...
make[1]: quittant le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/utils »
===== Compiling common ====
make[1]: entrant dans le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/common »
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)
^
make[1]: [/home/noureddine/omnetpp/omnetpp-4.3.1/out/gcc-release/src/common/matchexpression.tab.o] Erreur 1
make[1]: quittant le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/common »
make: [common] Erreur 2
noureddine@noureddine-Compaq-610:~/omnetpp/omnetpp-4.3.1$ gedit ~/.profile
noureddine@noureddine-Compaq-610:~/omnetpp/omnetpp-4.3.1$ make MODE=release ** Configuration: MODE=release, TOOLCHAIN_NAME=gcc, LIB_SUFFIX=.so *
===== Checking environment =====
===== Compiling utils ====
make[1]: entrant dans le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/utils »
Copying scripts to bin directory...
make[1]: quittant le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/utils »
===== Compiling common ====
make[1]: entrant dans le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/common »
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)
^
make[1]: [/home/noureddine/omnetpp/omnetpp-4.3.1/out/gcc-release/src/common/matchexpression.tab.o] Erreur 1
make[1]: quittant le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/common »
make: [common] Erreur 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying install omnetpp-4.3 on ubuntu 12.04, now omnetpp-4.3 works perfectly.
But where I try to run TinyECC (step 4: make) I get the following error:
make
g++ -c -g -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-stack-protector -DHAVE_SWAPCONTEXT -DHAVE_PCAP -DXMLPARSER=libxml -DWITH_PARSIM -DWITH_NETBUILDER -DWITH_NETBUILDER -DTOSNODES=1000 -DLINUX -DPLATFORM_OMNETPP -DMODULE_STACK_SIZE=4400 -DSTACK_REPORT -DDEFAULT_EEPROM_SIZE=0x100000 -DSTRUCT_PACK=1 -I./include -I./include_tos -I./ -I. -I/home/noureddine/omnetpp/omnetpp-4.3.1/include -o out/gcc-debug//txc1.o txc1.cc
txc1.cc: In member function ‘virtual void Txc1::initialize()’:
txc1.cc:46:76: attention : deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
txc1.cc:49:64: erreur: no matching function for call to ‘index()’
txc1.cc:49:64: note: candidates are:
/usr/include/string.h:469:14: note: char index(char, int)
/usr/include/string.h:469:14: note: candidate expects 2 arguments, 0 provided
/usr/include/string.h:471:22: note: const char index(const char, int)
/usr/include/string.h:471:22: note: candidate expects 2 arguments, 0 provided
txc1.cc: In member function ‘virtual void Txc1::finish()’:
txc1.cc:59:51: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]
txc1.cc:60:69: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:61:69: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:62:70: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:65:56: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]
txc1.cc:66:75: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:67:75: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:68:76: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:71:54: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]
txc1.cc:72:74: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:73:74: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:74:75: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc: In member function ‘void Txc1::HandleMessage(cMessage)’:
txc1.cc:112:33: attention : comparaison entre des expressions entières signée et non signée [-Wsign-compare]
./include/external_comm.h: At global scope:
./include/external_comm.h:52:19: attention : ‘socketsInitialized’ defined but not used [-Wunused-variable]
make: *** [out/gcc-debug//txc1.o] Erreur 1
Can you please help me out.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you try 4.3?
-------- Original message --------
From: Noureddine nourddine@users.sf.net
Date: 06/28/2014 13:58 (GMT-05:00)
To: "[nesct:discussion]" 501314@discussion.nesct.p.re.sf.net
Subject: [nesct:discussion] RE: [nesct:discussion] Run tinyECC Application : step "Updating Makefile "
I'm using omnetpp++4.4.1
RE: [nesct:discussion] Run tinyECC Application : step "Updating
Makefile "
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/nesct/discussion/501314/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
With ubuntu 14.4 Omnetpp4.4 works perfectly
but when I am trying install omnetpp-4.3 on ubuntu14.4 it reports error when I run make I get following:
/omnetpp/omnetpp-4.3.1$ make MODE=release
** Configuration: MODE=release, TOOLCHAIN_NAME=gcc, LIB_SUFFIX=.so
===== Checking environment =====
===== Compiling utils ====
make[1]: entrant dans le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/utils »
Copying scripts to bin directory...
make[1]: quittant le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/utils »
===== Compiling common ====
make[1]: entrant dans le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/common »
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)
^
make[1]: [/home/noureddine/omnetpp/omnetpp-4.3.1/out/gcc-release/src/common/matchexpression.tab.o] Erreur 1
make[1]: quittant le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/common »
make: [common] Erreur 2
noureddine@noureddine-Compaq-610:~/omnetpp/omnetpp-4.3.1$ gedit ~/.profile
noureddine@noureddine-Compaq-610:~/omnetpp/omnetpp-4.3.1$ make MODE=release
** Configuration: MODE=release, TOOLCHAIN_NAME=gcc, LIB_SUFFIX=.so *
===== Checking environment =====
===== Compiling utils ====
make[1]: entrant dans le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/utils »
Copying scripts to bin directory...
make[1]: quittant le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/utils »
===== Compiling common ====
make[1]: entrant dans le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/common »
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)
^
make[1]: [/home/noureddine/omnetpp/omnetpp-4.3.1/out/gcc-release/src/common/matchexpression.tab.o] Erreur 1
make[1]: quittant le répertoire « /home/noureddine/omnetpp/omnetpp-4.3.1/src/common »
make: [common] Erreur 2
with ubuntu 14.4 omnet++4.4 works perfectly
I am trying install omnetpp-4.3 on ubuntu14.4 but reports error when I run make.
I am trying install omnetpp-4.3 on ubuntu 12.04, now omnetpp-4.3 works perfectly.
But where I try to run TinyECC (step 4: make) I get the following error:
make
g++ -c -g -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-stack-protector -DHAVE_SWAPCONTEXT -DHAVE_PCAP -DXMLPARSER=libxml -DWITH_PARSIM -DWITH_NETBUILDER -DWITH_NETBUILDER -DTOSNODES=1000 -DLINUX -DPLATFORM_OMNETPP -DMODULE_STACK_SIZE=4400 -DSTACK_REPORT -DDEFAULT_EEPROM_SIZE=0x100000 -DSTRUCT_PACK=1 -I./include -I./include_tos -I./ -I. -I/home/noureddine/omnetpp/omnetpp-4.3.1/include -o out/gcc-debug//txc1.o txc1.cc
txc1.cc: In member function ‘virtual void Txc1::initialize()’:
txc1.cc:46:76: attention : deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
txc1.cc:49:64: erreur: no matching function for call to ‘index()’
txc1.cc:49:64: note: candidates are:
/usr/include/string.h:469:14: note: char index(char, int)
/usr/include/string.h:469:14: note: candidate expects 2 arguments, 0 provided
/usr/include/string.h:471:22: note: const char index(const char, int)
/usr/include/string.h:471:22: note: candidate expects 2 arguments, 0 provided
txc1.cc: In member function ‘virtual void Txc1::finish()’:
txc1.cc:59:51: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]
txc1.cc:60:69: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:61:69: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:62:70: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:65:56: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]
txc1.cc:66:75: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:67:75: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:68:76: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:71:54: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]
txc1.cc:72:74: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:73:74: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc:74:75: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat]
txc1.cc: In member function ‘void Txc1::HandleMessage(cMessage)’:
txc1.cc:112:33: attention : comparaison entre des expressions entières signée et non signée [-Wsign-compare]
./include/external_comm.h: At global scope:
./include/external_comm.h:52:19: attention : ‘socketsInitialized’ defined but not used [-Wunused-variable]
make: *** [out/gcc-debug//txc1.o] Erreur 1
Can you please help me out.