Trouble with compilation on Ubuntu 14.04

288 views
Skip to first unread message

Pietro Piscione

unread,
Nov 21, 2014, 5:52:45 PM11/21/14
to omn...@googlegroups.com
Dear Omnet,

I've download the version 4.5 of your software in my laptop which has 
Ubuntu 14.04 such as O.S.
I've contacted you 'cause I've some trouble with the compilation of Your 
product.

When I compile Omnet with the make command I've this following error:

|make MODE=release
make[1]: Entering directory `/home/p3/Omnet422/omnetpp-4.2.2'
***** Configuration: MODE=release, TOOLCHAIN_NAME=gcc, LIB_SUFFIX=.so ****
===== Checking environment =====
mkdir -p /home/p3/Omnet422/omnetpp-4.2.2/bin
===== Compiling utils ====
cd /home/p3/Omnet422/omnetpp-4.2.2/src/utils && make
make[2]: Entering directory `/home/p3/Omnet422/omnetpp-4.2.2/src/utils'
g++ abspath.cc -o 
/home/p3/Omnet422/omnetpp-4.2.2/out/gcc-release/src/utils/abspath
abspath.cc: In function ‘std::string toAbsolutePath(const char*)’:
abspath.cc:63:38: error: ‘getcwd’ was not declared in this scope
      return std::string(getcwd(wd,1024)) + "/" + pathname; //XXX 
results in double slash if wd is the root
                                       ^
make[2]: *** 
[/home/p3/Omnet422/omnetpp-4.2.2/out/gcc-release/src/utils/abspath] Error 1
make[2]: Leaving directory `/home/p3/Omnet422/omnetpp-4.2.2/src/utils'
make[1]: *** [utils] Error 2
make[1]: Leaving directory `/home/p3/Omnet422/omnetpp-4.2.2'
make: *** [allmodes] Error 2


I've searched on the Internet the possible solution and I found that the 
function getcwd in abspath.cc file is deprecated for security reason in 
the version 14.04 of Ubuntu. I've found this information at this link: 
http://linux.die.net/man/3/getcwd.
How can I resolve the problem ?

Thanks for your time.
Regards.

Mohsen Sichani

unread,
Nov 22, 2014, 3:03:40 AM11/22/14
to omn...@googlegroups.com
Hi there

I am not professional in omnet. I tried Omnet on ubuntu12, kali , and backtrack, I did not have any problem, becuase I followed the instruction in this file:
did  u consider that?

Good luck

Cheers
Mohsen 

p3

unread,
Nov 22, 2014, 5:21:56 AM11/22/14
to omn...@googlegroups.com
Yes, it was the first way that I consider to install Omnet.

Hi thee,
--
You received this message because you are subscribed to a topic in the Google Groups "omnetpp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/nGOMVArBFe0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rudolf Hornig

unread,
Nov 22, 2014, 6:05:43 AM11/22/14
to omn...@googlegroups.com
Use OMNeT++ 4.5 or (4.5RC). 

The version you are trying to use is at least 3 years old. The header file organization had changed a lot since then. older versions of OMNeT are no longer compatible with newer versions GCC.

p3

unread,
Nov 22, 2014, 6:58:45 AM11/22/14
to omn...@googlegroups.com
Understood. Hence, which version do I download ?

I thought the 4.5 version was the newest.
--

Mohsen Sichani

unread,
Nov 22, 2014, 4:17:54 PM11/22/14
to
I also thought you are using 4.5 but as Rudolf mentioned you are using an old version, I think you are not installing 4.5, you are installing 4.2.2
Please check this line in the log that you provided "/home/p3/Omnet422/omnetpp-4.2.2"
and for getting the latest version plz see
http://www.omnetpp.org/omnetpp/cat_view/17-downloads/1-omnet-releases
HTH

Cheers
Mohsen


To unsubscribe from this group and all its topics, send an email to omnetpp+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "omnetpp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/nGOMVArBFe0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages