Omnetpp 4.5b1 source building issue

92 views
Skip to first unread message

Paul D.

unread,
Jul 11, 2014, 2:26:15 PM7/11/14
to omn...@googlegroups.com
Hello,

I'm currently trying to build Omnetpp 4.5b1 on Scientific Linux 5 with a Red Hat-like kernel, yet I get an issue while building sources:

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Creating executable: /root/.Trash/omnetpp-4.5b1/out/gcc-release/src/nedxml/nedtool
/root/.Trash/omnetpp-4.5b1/lib/gcc/liboppnedxml.so: undefined reference to `ned2yylex_destroy()'
/root/.Trash/omnetpp-4.5b1/lib/gcc/liboppnedxml.so: undefined reference to `ned1yylex_destroy()'
/root/.Trash/omnetpp-4.5b1/lib/gcc/liboppnedxml.so: undefined reference to `msg2yylex_destroy()'
collect2: ld returned 1 exit status
make[2]: *** [/root/.Trash/omnetpp-4.5b1/out/gcc-release/src/nedxml/nedtool] Error 1
make[2]: Leaving directory `/root/.Trash/omnetpp-4.5b1/src/nedxml'
make[1]: *** [nedxml] Error 2
make[1]: Leaving directory `/root/.Trash/omnetpp-4.5b1'
make: *** [allmodes] Error 2
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


If you lack of info about my config feel free to ask.
Just assume that I follow the install instructions in Install Guide for Red Hat.

Thanks a lot for further help.

Paul D.

unread,
Jul 11, 2014, 7:14:52 PM7/11/14
to omn...@googlegroups.com
Hello again,

I solved my problem using flex 2.5.35 instead of the installed flex 2.5.4a which seems to be the problem. 

Holger Karl

unread,
Aug 5, 2014, 3:32:30 AM8/5/14
to omn...@googlegroups.com
Hi 

same problem for me, with Omnetpp 4.5. Is it possible that this relates to the various shift/reduce conflicts that are reported? (Which should never happen in a proper grammar in any case) 

(BTW, Paul's answer is not helpful - the NEW flex 2.5.4 does not work, the old one did work for the original poster. I am not going to install software that old like flex 2.5.35; this really seems like an omnet bug.) 

Thanks and best, 

Holger 

Rudolf Hornig

unread,
Aug 6, 2014, 6:57:41 AM8/6/14
to omn...@googlegroups.com
Flex 2.5.4 is NOT a "new" version. It's more than 10 years old. On the other hand 2.3.35 is newer and does work with omnet.

Holger Karl

unread,
Aug 7, 2014, 4:05:51 AM8/7/14
to omn...@googlegroups.com
My apologies, I misread 2.5.35 for 2.*3*.35... 

Yes, it seems to work with the most recent sourceforge version of flex 

best, 

HK 

Shridhar Shetty

unread,
Feb 3, 2015, 5:17:28 AM2/3/15
to omn...@googlegroups.com
same problem i am facing but it's not solving using flex 2.5.35
Reply all
Reply to author
Forward
0 new messages