[Dibbler] Dibbler 0.8.3 compilation problem

Rapoport, MichaelX michaelx.rapoport at intel.com
Thu Feb 7 08:29:51 CET 2013


Hello.

Thank you very much for the fast response.

I've added the:
#include <stdlib.h>

To files dnsmessage.cpp and then to domainfn.cpp and now I face the following:

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 -funsigned-char -DMOD_CLNT_BIND_REUSE -DMOD_CLNT_DISABLE_DNSUPDATE -DMOD_SRV_DISABLE_DNSUPDATE -DMOD_CLNT_CONFIRM   -MT domainfn.o -MD -MP -MF .deps/domainfn.Tpo -c -o domainfn.o domainfn.cpp
domainfn.cpp: In function 'void* memdup(const void*, int)':
domainfn.cpp:30:25: error: 'rpl_malloc' was not declared in this scope
domainfn.cpp: In member function 'domainname& domainname::operator+=(const domainname&)':
domainfn.cpp:282:64: error: 'rpl_realloc' was not declared in this scope
make[7]: *** [domainfn.o] Error 1


Please suggest the further steps.
Thank you,
Sincerely,
Michael.


==========================================================================================================

-----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
> -funsigned-char -DMOD_CLNT_BIND_REUSE -DMOD_CLNT_CONFIRM   -MT
> 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.

Tomek

_______________________________________________
http://klub.com.pl/cgi-bin/mailman/listinfo/dibbler
---------------------------------------------------------------------
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