[Dibbler] Dibbler 0.8.3 compilation problem

Rapoport, MichaelX michaelx.rapoport at intel.com
Thu Feb 7 14:28:16 CET 2013


The SrvOptKeyGeneration.cpp:43:29: error: 'class TSrvCfgMgr' has no member named 'getAuthLifetime' 
Reported in my previous mail is caused by  your suggestion: "you may consider disabling auth (--disable-auth)".
Please fix the *.cpp code.

Thank you,

-----Original Message-----
From: dibbler-bounces at klub.com.pl [mailto:dibbler-bounces at klub.com.pl] On Behalf Of Tomek Mrugalski
Sent: Wednesday, February 06, 2013 16:58
To: dibbler at klub.com.pl
Subject: Re: [Dibbler] Dibbler 0.8.3 compilation problem

On 13-02-06 17:12, Rapoport, MichaelX wrote:
> Hello.
> We need an urgent help in Dibbler 0.8.3 Cross compilation for the 
> Embedded Linux on ARM performed on Linus machine.
> We already have the Dibbler 0.8.0 being compiled and running,- now we 
> just want to upgrade to 0.8.3.
> In the excerpt from the Makefile bellow, the remarked line is the line 
> for the 0.8.0 and the lines below are the lines for 0.8.3
> We receive an Error with:
> error: '::malloc' has not been declared
> error: '::realloc' has not been declared
> and can't find the reason.
This one is easy.

> Making all in .
> make[7]: Entering directory
> `/vobs/il_gwdk/src/dibbler/src/dibbler-0.8.3/poslib'
> armeb-unknown-linux-uclibcgnueabi-g++ -DHAVE_CONFIG_H -I. -I../include
> -I.. -I../include -I../nettle -I../Misc  -O2  -DLINUX -Wall -pedantic
> dnsmessage.o -MD -MP -MF .deps/dnsmessage.Tpo -c -o dnsmessage.o 
> dnsmessage.cpp
This gives you the location of where the problem occurred.

> /nfs/iil/proj/cabmod/sw/tools/Intel-Puma-Toolchain_nptl/usr/bin/../lib/gcc/armeb-unknown-linux-uclibcgnueabi/4.6.1/../../../../armeb-unknown-linux-uclibcgnueabi/include/c++/4.6.1/cstdlib:119:11:
> error: '::malloc' has not been declared
> /nfs/iil/proj/cabmod/sw/tools/Intel-Puma-Toolchain_nptl/usr/bin/../lib/gcc/armeb-unknown-linux-uclibcgnueabi/4.6.1/../../../../armeb-unknown-linux-uclibcgnueabi/include/c++/4.6.1/cstdlib:127:11:
> error: '::realloc' has not been declared
And this tells you what is missing (declarations for malloc and realloc).

There is missing #include <stdlib.h> in poslib/dnsmessage.cpp

You may want to add it at the beginning of the poslib/dnsmessage.cpp file. If that helps, I'll add the fix to git.

If you're cross-compiling, do you really need DNS Update (that's what poslib is for)? If it is not required, try to pass --disable-dns-update to configure. It will make your binaries noticeably smaller.

You may also run ./configure --help to see other switches. Depending on what you need, you may consider disabling auth (--disable-auth), as it is non-standard and works only with other dibbler implementations. Also, you may disable link state detection (--disable-link-state). This will make your executables smaller, and there won't be extra thread looking after interface changes.

Hope that helps.


Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

More information about the Dibbler mailing list