build dependency missing in 0.6.4-6ubuntu2: recent header files necessary.

Bug #91698 reported by Fionn
2
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: network-manager

At compile time, the file nm-netlink-monitor.c tries to include <linux/if_addr.h>

At least in my version of linux-libc-dev (2.6.17.1-11.35) the file was not included. apt-get build-dep had no complaints though.It might be appropriate to include something like this in the source package:

Build-Depends: linux-libc-dev (>= 2.6.20)

or whichever version had this file first.

Revision history for this message
Fionn (fbe) wrote :

Addendum: Since the include is entirely not required on older systems it might be the best option to #ifdef it out, depending on the contents of <linux/version.h>

Revision history for this message
Fionn (fbe) wrote :

I created a patch file which may be used to directly replace debian/patches/16_undefined_macros.patch and which fixes the issue for me.

Someone please just check which kernel had "if_addr.h" first and adjust the version number in the #if statement accordingly.

Thank you.

Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

Hi Fionn, does Gutsy have the same build problem?

Changed in network-manager:
status: New → Incomplete
Revision history for this message
Alexander Sack (asac) wrote :

If this is still an issue for you with latest gutsy network-manager, please reopen.

Changed in network-manager:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.