[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#487103: linux-libc-dev: netfilter.h needs in.h include



Package: linux-libc-dev
Version: 2.6.25-5
Severity: normal

The file /usr/include/linux/netfilter.h leads to compile problems
in one of my packages. This worked with the version in debian testing:

Error message:
/usr/include/linux/netfilter.h:44: error: field 'in' has incomplete type
/usr/include/linux/netfilter.h:45: error: field 'in6' has incomplete type

the struct 
union nf_inet_addr {
        __u32           all[4];
        __be32          ip;
        __be32          ip6[4];
        struct in_addr  in;
        struct in6_addr in6;
};
needs in_addr and in6_addr to be defined.

this seems to be a similar problem as in:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482331

I can certainly solve this problem in my package, as I do include "in.h"
a few lines later. Nevertheless I think there should be no dependance on the
order of the includes.

regards,
Martin

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22.1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=de_AT (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

-- no debconf information



Reply to: