Re: Build problems with dhcpcd-5 on uclibc
Ed W
Sat Jul 18 11:05:19 2009
Roy Marples wrote:
Ed W wrote:
Hi, I am having problems building latest dhcpcd on a uclibc-0.30.1
system. Build errors are:
i386-gentoo-linux-uclibc-gcc -march=k6-2 -Os -pipe
-fomit-frame-pointer -std=c99 -DDBDIR=\"/var/lib/dhcpcd\" -DSCRIPT=\
"/lib/dhcpcd/dhcpcd-run-hooks\" -DSYSCONFDIR=\"/etc\" -D_BSD_SOURCE
-D_XOPEN_SOURCE=600 -c net.c -o net.onet.c:56:21: ifaddrs.h: No such
file or directory
net.c: In function `discover_interfaces':
net.c:270: warning: implicit declaration of function `getifaddrs'
You need to upgrade your uclibc so that you have getifaddrs support. I
know for sure it's in the latest version.
http://git.uclibc.org/uClibc/tree/libc/inet/ifaddrs.c
Thanks - it appears the gentoo default is not to enable
UCLIBC_USE_NETLINK and this is required to add the relevant functions
I will add a bug report to gentoo to suggest changing default config
(when I get a second...)
Cheers
Ed W
Archive administrator: postmaster@marples.name