OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000712OMNeT++simulation kernelpublic2014-01-29 10:492014-01-29 13:48
andras 
rhornig 
normalminorhave not tried
resolvedwon't fix 
4.4 
4.4 
0000712: nedtool linker error: undefined reference to `ned1yylex_destroy()'
From Daniel Pfefferkorn [[email protected]], 1/23/2014:

I have compiled the version 4.4 on a i686 machine without problems.
On our x86_64 machine however I do get the following error message:

Creating
executable: /opt/omnetpp/omnetpp-4.4/x86_64/out/gcc-release/src/nedxml/nedtool
/opt/omnetpp/omnetpp-4.4/x86_64/lib/gcc/liboppnedxml.so: undefined reference to `ned1yylex_destroy()'
/opt/omnetpp/omnetpp-4.4/x86_64/lib/gcc/liboppnedxml.so: undefined reference to `msg2yylex_destroy()'
/opt/omnetpp/omnetpp-4.4/x86_64/lib/gcc/liboppnedxml.so: undefined reference to `ned2yylex_destroy()'

Neither configure or make display a related warning/error.

I have checked lex.ned1yy.cc but the method really does not exist. So I checked the flex versions:
i686 (working): lex 2.5.35
x86_64 (!working): lex 2.5.4

Please find attached diffs for verbose output of flex itself (flex -v) and the generated files lex.ned1yy.cc

Additional system information:

uname -r: 2.6.32-5-686-bigmem vs. 2.6.32-5-amd64
gcc -v : gcc version 4.4.5 (Debian 4.4.5-8)

Can you confirm the problem?

Thank you guys!

--Daniel
No tags attached.
txt diff_for_flex_verbose_output.txt (364) 2014-01-29 10:52
https://dev.omnetpp.org/bugs/file_download.php?file_id=130&type=bug
txt diff_for_lexned1yycc.txt (55,077) 2014-01-29 10:52
https://dev.omnetpp.org/bugs/file_download.php?file_id=131&type=bug
Issue History
2014-01-29 10:49andrasNew Issue
2014-01-29 10:52andrasFile Added: diff_for_flex_verbose_output.txt
2014-01-29 10:52andrasFile Added: diff_for_lexned1yycc.txt
2014-01-29 13:48rhornigNote Added: 0000887
2014-01-29 13:48rhornigStatusnew => resolved
2014-01-29 13:48rhornigFixed in Version => 4.4
2014-01-29 13:48rhornigResolutionopen => won't fix
2014-01-29 13:48rhornigAssigned To => rhornig

Notes
(0000887)
rhornig   
2014-01-29 13:48   
lex 2.5.4 was released in 1997 ! You need to update the system (or flex) to be able to compile omnet.