[netcf-devel] [PATCH 0-3] Use NETLINK for for interface IP addresses

David Lutterkort lutter at redhat.com
Thu Oct 22 17:03:34 UTC 2009


On Thu, 2009-10-22 at 12:48 -0400, Laine Stump wrote:
> On 10/22/2009 12:34 PM, David Lutterkort wrote:
> > On Thu, 2009-10-22 at 09:43 -0400, Laine Stump wrote:
> >    
> >> (I had sent this last night, don't know why it didn't get through).
> >>
> >> These patches add a dependency on libnl (a helper library for the
> >> NETLINK socket and API), change the code over to use NETLINK (rather
> >> than ioctl(SIOCGIFADDR) to retrieve interface IP addresses, and
> >> finally remove the old deprecated function (done in a separate patch
> >> to force the diffs into something easy to understand).
> >>      
> > When I try to build with these patches, I get
> >
> >    CC     dutil_linux.lo
> > cc1: warnings being treated as errors
> > /usr/include/netlink/object.h:58: error: inline function 'nl_object_priv' declared but never defined
> >
> > Is there a newer libnl that cleans up this nonsense ? I have libnl-devel-1.1-6.fc11.x86_64
> >    
> 
> No, there unfortunately isn't. That warning is caused by really odd code 
> - the function in question is only defined in object.c, so I'm unclear 
> on how its use elsewhere is actually accomplished.
> 
> I dislike having any warnings during the builds too, but am not sure 
> what can be done about it in this case (other than defining our own 
> nl_object_priv in each file that ends up #including netlink/object.h)

I generally configure with '--enable-compile-warnings=error' which makes
this fatal. Just filed bz 530410 to track that - for the time being,
I'll have to build without -Werror.

David





More information about the netcf-devel mailing list