GNS3
http://forum.gns3.net/

Dynamips-0.2.8-community
http://forum.gns3.net/topic6583-10.html
Page 2 of 2

Author:  Raizo62 [ Tue Jul 23, 2013 7:44 am ]
Post subject:  Re: Dynamips-0.2.8-community

Hi
flaviojs wrote:
But at least I'll hunt for memory leaks and try to fix any crash that is reported. =)

Do you know "Address Sanitizer" https://code.google.com/p/address-sanitizer/ ? It can perhaps help you for that.
Sorry, I don't know more on it : I just saw it in a magazine

Author:  flaviojs [ Tue Jul 23, 2013 3:29 pm ]
Post subject:  Re: Dynamips-0.2.8-community

@Raizo62

Thanks, i'll try it when I reach a dead end. =)

Author:  manuel [ Wed Jul 31, 2013 8:09 pm ]
Post subject:  Re: Dynamips-0.2.8-community

Hello
I tried to compile the Dynamips-0.2.8-community sources on Ubuntu 12.04 and got the following error:

[email protected]:~# cd /home/ccc/Desktop/dynamips-0.2.8-community/
[email protected]:/home/ccc/Desktop/dynamips-0.2.8-community# make
make -C stable
make[1]: Entering directory `/home/ccc/Desktop/dynamips-0.2.8-community/stable'
Linking rom2c
cc: error: /usr/lib/libelf.a: No such file or directory
make[1]: *** [rom2c] Error 1
make[1]: Leaving directory `/home/ccc/Desktop/dynamips-0.2.8-community/stable'
make: *** [dynamips.stable] Error 2

Did i do anything wrong?
Thanks.

Author:  claydon_dan [ Wed Jul 31, 2013 8:43 pm ]
Post subject:  Re: Dynamips-0.2.8-community

manuel wrote:
Hello
I tried to compile the Dynamips-0.2.8-community sources on Ubuntu 12.04 and got the following error:

[email protected]:~# cd /home/ccc/Desktop/dynamips-0.2.8-community/
[email protected]:/home/ccc/Desktop/dynamips-0.2.8-community# make
make -C stable
make[1]: Entering directory `/home/ccc/Desktop/dynamips-0.2.8-community/stable'
Linking rom2c
cc: error: /usr/lib/libelf.a: No such file or directory
make[1]: *** [rom2c] Error 1
make[1]: Leaving directory `/home/ccc/Desktop/dynamips-0.2.8-community/stable'
make: *** [dynamips.stable] Error 2

Did i do anything wrong?
Thanks.

This is caused by the compiler being unable to find libelf.a

Firstly you will need to have libelf-dev installed along with two other libraries (uuid-dev & libpcap0.8-dev). These are available via Aptitude.

You have three options here:
  1. Install the prebuilt package that is available via aptitude from Launchpad (see here for details: topic6666.html)
  2. Edit the Makefile in the top-level directory and set the DYNAMIPS_LIB variable to either: lib/x86_64-linux-gnu for 64-bit or lib/i386-linux-gnu for 32-bit.
  3. Download dynamips-0.2.9 from http://sourceforge.net/projects/gns-3/files/Dynamips/0.2.9/ which contains updated Makefiles to eradicate this problem

The simplest method is to use the prebuilt packages (option 1). As these will be updated with new dynamips versions as they are released and removes the need to build dynamips yourself.

Author:  manuel [ Thu Aug 01, 2013 3:08 pm ]
Post subject:  Re: Dynamips-0.2.8-community

The second option worked like a charm. Thanks.

Author:  nickbeee [ Thu Aug 01, 2013 4:56 pm ]
Post subject:  Re: Dynamips-0.2.8-community

@Daniel - thanks for that fix (2).

My solution for Centos 6 i686 was to create a symlink from libelf.a to libelf.so (which in turn is recursively symlinked...) Now I'll have another try at building a 64-bit on Fedora 18.

Page 2 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/