Anonymous | Login | 2022-06-26 02:18 UTC | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000418 | OMNeT++ | command line tools | public | 2011-10-19 12:09 | 2011-10-19 12:16 | ||||
Reporter | rhornig | ||||||||
Assigned To | rhornig | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | 4.2rc1 | ||||||||
Target Version | Fixed in Version | 4.2 | |||||||
Summary | 0000418: No user interface (Cmdenv, Tkenv, etc.) found when compiling with GCC 4.6 in Ubuntu 11.10 | ||||||||
Description | When running any simulation the following error appears: <!> Error during startup: No user interface (Cmdenv, Tkenv, etc.) found. ldd <program> shows that neither libcmdenv.so nor libtkenv.so is linked with the executable. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
![]() |
|
(0000572) rhornig (administrator) 2011-10-19 12:14 |
gcc 4.6 does not add the shared lib to the executable if no symbols from it are referenced. This is a deviation from earlier gcc behavior (they always added the shared library). gcc 4.6 adds the --as-needed option to the linker (ld) command line so we need to turn that off. Fix: add --no-as-needed in front of the library |
(0000573) rhornig (administrator) 2011-10-19 12:16 |
Workaround for omnetpp 4.1: In Makefile.inc.in find the following lines (towards the end): CMDENV_LIBS = -u _cmdenv_lib -loppcmdenv$D -loppenvir$D TKENV_LIBS = -u _tkenv_lib -lopptkenv$D -loppenvir$D -lopplayout$D and replace them with: CMDENV_LIBS = -u _cmdenv_lib -Wl,--no-as-needed -loppcmdenv$D -loppenvir$D TKENV_LIBS = -u _tkenv_lib -Wl,--no-as-needed -lopptkenv$D -loppenvir$D -lopplayout$D then ./configure make clean make |
![]() |
|||
Date Modified | Username | Field | Change |
2011-10-19 12:09 | rhornig | New Issue | |
2011-10-19 12:14 | rhornig | Note Added: 0000572 | |
2011-10-19 12:16 | rhornig | Note Added: 0000573 | |
2011-10-19 12:16 | rhornig | Status | new => resolved |
2011-10-19 12:16 | rhornig | Fixed in Version | => 4.2 |
2011-10-19 12:16 | rhornig | Resolution | open => fixed |
2011-10-19 12:16 | rhornig | Assigned To | => rhornig |
Copyright © 2000 - 2022 MantisBT Team |