Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 156844

Summary: dhcpcd-3.x uses getifaddrs() (not supported on uClibc maybe others)
Product: Gentoo Linux Reporter: solar (RETIRED) <solar>
Component: [OLD] Core systemAssignee: Roy Marples (RETIRED) <uberlord>
Status: RESOLVED FIXED    
Severity: normal CC: ps.m
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description solar (RETIRED) gentoo-dev 2006-12-01 13:57:18 UTC
The dhcpcd-3.x versions are using what appear to be non SuSv3 functions which are not supported by atleast uclibc and probably others.
The exact error is as follows.

interface.c:43:21: ifaddrs.h: No such file or directory
interface.c: In function `read_interface':
interface.c:99: warning: implicit declaration of function `getifaddrs'
interface.c:102: error: dereferencing pointer to incomplete type
interface.c:104: error: dereferencing pointer to incomplete type
interface.c:107: error: dereferencing pointer to incomplete type
interface.c:108: error: dereferencing pointer to incomplete type
interface.c:116: warning: implicit declaration of function `freeifaddrs'
interface.c: In function `flush_addresses':
interface.c:655: error: dereferencing pointer to incomplete type
interface.c:657: error: dereferencing pointer to incomplete type
interface.c:660: error: dereferencing pointer to incomplete type
make: *** [interface.o] Error 1
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-12-03 02:43:46 UTC
Fixed in dhcpcd-3.0.2

Basically if we don't have glibc-2.3 present then we use ioctls, otherwise we just getifaddrs