Problem to installin Omnet 4.0p1 on Ubuntu 12.04

288 views
Skip to first unread message

Ganesh

unread,
May 18, 2013, 5:03:39 AM5/18/13
to omn...@googlegroups.com
Good morning,
 I try to install Omnet 4.0p1 on Ubuntu 12.04 (kernel 3.2.0-43-generic) but I receive the following error (when I try to do make):
  "sim_std_m.cc: In member function ‘virtual void* cDensityEstBaseDescriptor::getFieldStructPointer(void*, int, int) const’: sim_std_m.cc:5610:51: error: taking address of temporary [-fpermissive]".
 
 Can anyone help me?
 Thanks.

Ganesh

unread,
May 18, 2013, 6:45:54 AM5/18/13
to omn...@googlegroups.com

   Anymore, I try to "install" Omnet 4.2.2 (on the same Ubuntu and kernel) and when I do make, I don't receive the same error.
   Why? What change?
  Thanks.

Rohini SharmaOhlan

unread,
May 18, 2013, 7:49:59 AM5/18/13
to omn...@googlegroups.com
Try to install it on ubuntu 10.04

successfull

Rohini SharmaOhlan

unread,
May 18, 2013, 7:49:59 AM5/18/13
to omn...@googlegroups.com
Try to install it on ubuntu 10.04

successfull

On Saturday, May 18, 2013 4:15:54 PM UTC+5:30, Ganesh wrote:

Rudolf Hornig

unread,
May 18, 2013, 8:27:11 AM5/18/13
to omn...@googlegroups.com
OMNeT++ :) Obviously you have installed 4.2 which is almost 3 years older than 4.0.

As for the issues, you are seeing the problem with 4.0 because you are trying to compile it with a much newer version of gcc than 4.0 was tested with. 

You can: 
- use an older version of ubuntu with omnet 4.0
- use a never version of omnet (4.3)
- or fix the compile errors in the omnet source
 
  Thanks.

Saurabh Samber

unread,
Mar 15, 2018, 7:33:18 AM3/15/18
to OMNeT++ Users


Hello Rudolf

what will be older version of ubuntu according to you.. 10.04 , 11.04  which one should i can use to install

i am already using the ubuntu 12.04 version and i am also getting the same error above..please help

thanks

Saurabh Samber

unread,
Mar 15, 2018, 10:13:11 AM3/15/18
to OMNeT++ Users

Hello i try to use ubuntu version 11.04 and 10.04 with OMNeT 4.0p1 

 But i have the problems when i am running the ./configure command in terminal

it is saying the bison package is missing.. i also tried to download it over terminal but it is saying the package is obsolete...what to do please help

maq86@ubuntu:~$ cd Downloads
maq86@ubuntu:~/Downloads$ cd /home/maq86/Downloads/omnetpp-4.0p1
maq86@ubuntu:~/Downloads/omnetpp-4.0p1$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: -----------------------------------------------
configure: reading configure.user for your custom settings
configure: -----------------------------------------------
checking for icc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for icpc... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking whether g++ supports -fno-stack-protector... yes
checking whether g++ supports -fno-stack-protector... yes
checking if shared libs need -fPIC... yes
checking for dlopen with CFLAGS="" LIBS=""... no
checking if --export-dynamic linker option is supported/needed... test failed
checking for flags needed to link with static libs containing simple modules... --whole-archive
configure: NOTE: Use the following syntax when linking with static libraries
configure: containing simple modules and other dynamically registered components:
configure:    g++ ... -Wl,--whole-archive <libs> -Wl,--no-whole-archive ...
checking whether linker supports -rpath... yes
checking for bison... no
checking for byacc... no
configure: error: Bison not found, needed to build OMNeT++/OMNEST -- please install it!
maq86@ubuntu:~/Downloads/omnetpp-4.0p1$ 



Reply all
Reply to author
Forward
0 new messages