dhcpcd-discuss

Re: [5.2.12/Cross-compiling] "libc support for getifaddrs is required"

Ed W

Mon Jun 27 19:54:57 2011

On 21/06/2011 23:12, Roy Marples wrote:
> On Tue, 2011-06-21 at 18:14 +0200, Gilles Ganault wrote:
>> 	Since the default dhcpcd client crashes at reboot on the uClinux 
>> appliance I'm using, I wanted to cross-compile Roy's and give it a 
>> shot, but compiling fails:
>>
>> ===============
>> /usr/src/dhcpcd-5.2.12# ./configure --host=i686-pc-linux 
>> --target=bfin-linux-uclibc --disable-fork
>> Configuring dhcpcd for ... linux
>> Looking for compiler ... bfin-linux-uclibc-gcc
>> There is no fork
>> Testing for getifaddrs ... no
>> libc support for getifaddrs is required - aborting
>> ===============
>>
>> Does someone know if dhcpcd compiles for uClinux?
> 
> The problem is that getifaddrs isn't available in the libc uClinux ships
> with.
> 
> We need to make a shim for it.

If a more recent uclibc is a possibility I think you will find 0.9.32
(or better yet "master") a complete revelation - a lot of new stuff has
been added recently including NPTL for many platforms - all in all stuff
just starts to work well now!

...Obviously make sure to add the required functions...

Using dhcpcd here with recent uclibc (on x86)

Ed W

Follow-Ups:
Re: [5.2.12/Cross-compiling] "libc support for getifaddrs is required"Roy Marples
References:
[5.2.12/Cross-compiling] "libc support for getifaddrs is required"Gilles Ganault
Re: [5.2.12/Cross-compiling] "libc support for getifaddrs is required"Roy Marples
Archive administrator: postmaster@marples.name