Error in simulations over new Ubuntu 11.10

1,524 views
Skip to first unread message

jblesa

unread,
Oct 17, 2011, 8:39:46 AM10/17/11
to omnetpp
Hello,
Since I updated my ubutu to 11.10, Castalia simulations don't work.
Allways appear the same error in the *.txt output file:
<!> Error during startup: No user interface (Cmdenv, Tkenv, etc.)
found.
The problem seems could be that some libraries can't be found but,
I'va always the PATH and LD_LIBRARY_PATH as installation section
said.
PATH=$PATH:$HOME/omnetpp-4.1/bin:$HOME/svnlocal/cr/trunk/castalia/bin
LD_LIBRARY_PATH=$HOME:/omnetpp-4.1/lib:$HOME/omnetpp-4.1/lib/gcc
Someone has the same problem?
Best regards,

Artur Gulowaty

unread,
Oct 17, 2011, 11:48:51 AM10/17/11
to omnetpp
Hi.
I have the same problem. Fresh Ubuntu 11.10 installation, all paths
set correctly.
I wonder if someone help here...

Br,
Artur

Alfonso Ariza Quintana

unread,
Oct 17, 2011, 11:52:32 AM10/17/11
to omn...@googlegroups.com
the Tk lib is not in the LD_LIBRARY_PATH

-----Mensaje original-----
From: Artur Gulowaty
Sent: Monday, October 17, 2011 5:48 PM
To: omnetpp
Subject: [Omnetpp-l] Re: Error in simulations over new Ubuntu 11.10

Br,
Artur

--
You received this message because you are subscribed to the Google Groups
"omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to
omnetpp+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/omnetpp?hl=en.

Artur Gulowaty

unread,
Oct 17, 2011, 12:24:01 PM10/17/11
to omnetpp
I've modified env so it looks like:
/usr/share/tcltk are folder where tcl and tk is stored under Ubuntu.

LD_LIBRARY_PATH=/home/hekko/Omnet/omnetpp-4.2/lib:/home/hekko/Omnet/
omnetpp-4.2/lib:/usr/share/tcltk/tcl8.5:/usr/share/tcltk/tk8.5

and still same message...
What exactly this tk-lib folder should contain ?

Br,
AG
On 17 Paź, 17:52, Alfonso Ariza Quintana <aariza...@hotmail.com>
wrote:

Sebastian Mies

unread,
Oct 17, 2011, 3:03:53 PM10/17/11
to omn...@googlegroups.com
Workaround:
This seems to be a problem how omnet enumerates the
shared objects. When you add

"load-libs=<omnetpath>/lib/oppcmdenv"[d]
or
"load-libs=<omnetpath>/lib/opptkenv"[d]

to omnetpp.ini everything works fine.
(use "d" suffix for debug).

However, I assume this should be fixed in
general...

Best regards,

Sebastian

Artur Gulowaty

unread,
Oct 17, 2011, 3:58:58 PM10/17/11
to omnetpp
Thanks Sebastian.

Your solution (with debug library) works for me, but in normal mode
getting error:
Error: Attempt to load the oppsim shared library more than once. This
usually happens when part of your simulation is using release
libraries while other parts are using the debug version. Make sure to
rebuild all parts of your model in either release or debug mode!

Hope someone will fix this soon, anyway - I can run sample simulations
now and try to develop by myself.

Thanks again.

Br,
Artur

jblesa

unread,
Oct 18, 2011, 3:50:51 AM10/18/11
to omnetpp
Hello,

I'm trying to include these lines in the omnetpp.ini but the
simulation give me an error:

ERROR: Unexpected line in configuration file:

I'm not sure if I am including well the line:

[General]

# =============================================
# Always include the main Castalia.ini file
# =============================================
include ../Parameters/Castalia.ini
"load-libs=/home/jblesa/Descargas/omnetpp-4.1/lib/opptkenv"[d]

Maybe, you can help me.

Best regards,

Rudolf Hornig

unread,
Oct 18, 2011, 5:18:40 AM10/18/11
to omn...@googlegroups.com
Hello all, 

We are investigating this issue. This is related to GCC 4.6 so all new distros with GCC 4.6 will be affected sooner or later :(

Rudolf

Kim Højgaard-Hansen

unread,
Oct 18, 2011, 6:26:48 AM10/18/11
to omn...@googlegroups.com
I have been using GCC 4.6.1 with OmNET-4.1 for a while now without
problems. Just FYI

Best,

Kim

jblesa

unread,
Oct 18, 2011, 6:28:05 AM10/18/11
to omnetpp
I've tried to compile omnetpp with gcc-4.5 and g++-4.5 but the same
error appear.

Have someone idea if new omnetpp 4.2 will be compatible with Ubuntu
11.10?

Best regards,

Sebastian Mies

unread,
Oct 18, 2011, 7:00:01 AM10/18/11
to omn...@googlegroups.com
Yeah. Same here. Somehow omnetpp does not load / find
the libraries. Tried to debug a little but I'm not
that familiar with these internals. startup.cc seems
to load the libraries with loadExtensionLibrary -- at least
the ones specified by the user. I've no clue how omnet loads its
"default" libraries that differ in debug and release...

I hope you can fix this for 4.2 :)

--
Sebastian Mies
Gebhardstraße 25
76137 Karlsruhe

Telefon: +49 721 9119627
E-Mail: mi...@gtfr.de

Rudolf Hornig

unread,
Oct 18, 2011, 9:12:16 AM10/18/11
to omn...@googlegroups.com
Hi all, 

normally the tk and cmdenv is linked directly with the model, however recent changes(or bugs) in ld / gcc cause that the shared libs are optimized out.

Here is the solution:

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

This should work with all omnet 4.x version. Spread the info for other users suffering from the issue.

Rudolf

--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to omnetpp+unsubscribe@googlegroups.com.

Sebastian Mies

unread,
Oct 18, 2011, 10:33:25 AM10/18/11
to omn...@googlegroups.com
It works. Thanks!

Am 18.10.2011 15:12, schrieb Rudolf Hornig:
> Hi all,
>
> normally the tk and cmdenv is linked directly with the model, however recent
> changes(or bugs) in ld / gcc cause that the shared libs are optimized out.
>
> Here is the solution:
>
> 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

>> To unsubscribe from this group, send email to omnetpp+unsubscribe@**
>> googlegroups.com<omnetpp%2Bunsu...@googlegroups.com>.
>> For more options, visit this group at http://groups.google.com/**
>> group/omnetpp?hl=en<http://groups.google.com/group/omnetpp?hl=en>.
>>
>>
>

--
Karlsruher Institut für Technologie (KIT)
Institut für Telematik

Sebastian Mies
Wissenschaftlicher Mitarbeiter

Zirkel 2
Gebäude 20.20
76131 Karlsruhe

Telefon: +49 721 608-46416
Fax: +49 721 608-46789
E-Mail: mi...@kit.edu

jblesa

unread,
Oct 18, 2011, 10:35:38 AM10/18/11
to omnetpp
Hello,

The solution that Rudolf said works for me.

Best regards,

On 18 oct, 15:12, Rudolf Hornig <r...@omnetpp.org> wrote:
> Hi all,
>
> normally the tk and cmdenv is linked directly with the model, however recent
> changes(or bugs) in ld / gcc cause that the shared libs are optimized out.
>
> Here is the solution:
>
> 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
> > E-Mail: m...@gtfr.de
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "omnetpp" group.
> > To post to this group, send email to omn...@googlegroups.com.
> > To unsubscribe from this group, send email to omnetpp+unsubscribe@**
> > googlegroups.com <omnetpp%2Bunsu...@googlegroups.com>.
> > For more options, visit this group athttp://groups.google.com/**
> > group/omnetpp?hl=en <http://groups.google.com/group/omnetpp?hl=en>.

Anisset

unread,
Oct 18, 2011, 6:03:57 PM10/18/11
to omnetpp
Thanks!!

Oscar

unread,
Oct 19, 2011, 10:20:16 AM10/19/11
to omnetpp
Great! It works perfectly! Thanks.



On Oct 18, 3:12 pm, Rudolf Hornig <r...@omnetpp.org> wrote:
> Hi all,
>
> normally the tk and cmdenv is linked directly with the model, however recent
> changes(or bugs) in ld / gcc cause that the shared libs are optimized out.
>
> Here is the solution:
>
> 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
> > E-Mail: m...@gtfr.de
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "omnetpp" group.
> > To post to this group, send email to omn...@googlegroups.com.

Naeel

unread,
Dec 5, 2011, 7:55:03 PM12/5/11
to omnetpp
thanks alot
after getting fixed , I faced another kind of problems , when I tried
to open an example (dyna example) this error message occurred :

Error : cannot load NED files '.' : simulation kernel was compiled
without support for dynamic loading of NED files (WITH_NETBUILDER=no)

but I have checked the Makefile.inc.in for this parameter and I found
it with the value of yes !!!

I don't know what to do , please help me !!!

Ma Ligang

unread,
Dec 5, 2011, 10:00:50 PM12/5/11
to omn...@googlegroups.com
perhaps there are blank spaces before or after the ".". check that :-)
>--
>Sent from the OMNeT++ mailing list. To configure your membership,
>visit http://groups.google.com/group/omnetpp

Naeel

unread,
Dec 16, 2011, 10:11:02 AM12/16/11
to omnetpp
yes , thank you very much but with these modifications :

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

and with ignoring the if statment in makefile , the simulation goes
very well and smooth

thank you again

On Dec 6, 5:00 am, "Ma Ligang" <thelovelybo...@126.com> wrote:
> perhaps there are blank spaces before or after the ".". check that :-)

Chris

unread,
Mar 28, 2012, 6:53:13 AM3/28/12
to omn...@googlegroups.com
I have the same problem, but I cannot fix it searching for blank spaces..
Could you please give me some more advice??

Thanks


Τη Τρίτη, 6 Δεκεμβρίου 2011 5:00:50 π.μ. UTC+2, ο χρήστης Ma Ligang έγραψε:
perhaps there are blank spaces before or after the ".". check that :-)

Rudolf Hornig

unread,
Mar 29, 2012, 3:29:50 PM3/29/12
to omn...@googlegroups.com
Use OMNeT++ 4.2. It has already the necessary fixes.
Rudolf

Tathagata Chowdhury

unread,
Oct 15, 2012, 2:29:45 PM10/15/12
to omn...@googlegroups.com
Hi,

I am using OMNet++4.2.2 and facing the same problem.

I have checked the Makefile.inc.in and the parameter WITH_NETBUILDER is set to YES.

I am very new to OMNet++ and I am not able to understand which blank spaces you are referring to.

Kindly advice.

Regards,
Tathagata Chowdhury.

Erlind-Mixahl

unread,
Nov 5, 2012, 4:46:56 AM11/5/12
to omn...@googlegroups.com
i have the same problem ......please help me 
Setting up Tkenv...

<!> Error: cannot load NED files from `.': simulation kernel was compiled without support for dynamic loading of NED files (WITH_NETBUILDER=no).
Reply all
Reply to author
Forward
0 new messages