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

Bug 578404

Summary: net-misc/connman-1.31-r1 fails with undeclared 'IFNAMSIZ'
Product: Gentoo Linux Reporter: minami-o
Component: Current packagesAssignee: nvinson234
Status: RESOLVED FIXED    
Severity: normal CC: dlan
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Emerge log
emerge --info

Description minami-o 2016-03-27 21:33:02 UTC
Created attachment 429116 [details]
Emerge log

Hi, I was trying to upgrade to the latest connman version as suggested by `emerge -DuNav world`, but came across the following issue:

> In file included from src/iptables.c:36:0:
> /usr/include/linux/netfilter_ipv4/ip_tables.h:72:15: error: ‘IFNAMSIZ’ undeclared here (not in a function)
>   char iniface[IFNAMSIZ], outiface[IFNAMSIZ];

The use flags enabled for this are the following:

> bluetooth doc ethernet examples tools wifi

The full log is attached, apologies but I solved the issue before thinking of running the bug-dedicated commands…

I investigated a bit and found a resolved bug with the same error message but on a different emerged package: https://bugs.gentoo.org/show_bug.cgi?id=213570

I tried to apply the same solution, ie. to add "#include <linux/if.h>" in the first lines of the file that seemed to cause the bug in my case: /usr/include/linux/netfilter_ipv4/ip_tables.h

Resuming the emerge after this simple action proved the solution to be effective.
I removed the added line in the mentioned file afterwards, just in case.

I guess this is a bug and needs some fixing in the connman ebuild, but I'm not knowledgeable enough in this science to go any deeper!
Cheers!
Comment 1 Tomáš Mózes 2016-03-28 05:58:06 UTC
Please provide your emerge --info.

By the way, there are a few messages regarding SELinux in the log:
!!! Failed to set new SELinux execution context. Is your current SELinux context allowed to run Portage?
Comment 2 Felix Janda 2016-03-28 07:10:08 UTC
Try to update to =sys-kernel/linux-headers-4.5 .
Comment 3 minami-o 2016-03-28 14:04:55 UTC
Created attachment 429178 [details]
emerge --info

Hi,
I have enabled SElinux, but didn't have the time to fully implement it, so it's only permissive mode for now - despite the messages, no restrictions should take place. FWIW I have added my emerge --info as an attachment.
I have upgraded to sys-kerner/linux-headers-4.5, and the missing line in ip_tables.h has been added in this version, so the emerge works fine.
Thank you both!
Comment 4 nvinson234 2016-03-29 13:52:09 UTC
Fixed with commit aca92bb5062e3d4f796e8ffa263b5bb3600409c1
Comment 5 Yixun Lan archtester gentoo-dev 2016-04-25 06:09:22 UTC
hello, Nicholas
 I see you've already actively maintained this package... 
do you aware there is new 1.32 version available?
 thanks
Comment 6 nvinson234 2016-04-27 13:55:01 UTC
(In reply to Yixun Lan from comment #5)
> hello, Nicholas
>  I see you've already actively maintained this package... 
> do you aware there is new 1.32 version available?
>  thanks

Thanks for the information.  However, could you file a bug requesting a version bump in the future?  I've already created one for connman-1.32 (bug #581368).  Thanks.