Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156844 - dhcpcd-3.x uses getifaddrs() (not supported on uClibc maybe others)
Summary: dhcpcd-3.x uses getifaddrs() (not supported on uClibc maybe others)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-01 13:57 UTC by solar (RETIRED)
Modified: 2006-12-03 02:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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