Bug#271513: linux/if.h incomplete type
Package: linux-kernel-headers
Version: 2.5.999-test7-bk-17
I tried to compile the following program
------------------------
#include <linux/if.h>
int main()
{
return(0);
}
--------------------------
This fails with the following errors:
--------------------------------------
In file included from iftest.c:1:
/usr/include/linux/if.h:136: error: field `ifru_addr' has incomplete type
/usr/include/linux/if.h:137: error: field `ifru_dstaddr' has incomplete type
/usr/include/linux/if.h:138: error: field `ifru_broadaddr' has incomplete type
/usr/include/linux/if.h:139: error: field `ifru_netmask' has incomplete type
/usr/include/linux/if.h:140: error: field `ifru_hwaddr' has incomplete type
---------------------------------------
I invoked the compiler with gcc iftest.c and expected it to report no errors,
but return quitely instead.
These are the version of packages, that might be connected to this problem.
linux-kernel-headers: 2.5.999-test7-bk-17
libc6 : 2.3.2.ds1-16
gcc -v : Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang
--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--with-system-zlib --enable-nls --without-included-gettext
--enable-__cxa_atexit --enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
i486-linux
Thread model: posix
gcc version 3.3.4 (Debian 1:3.3.4-9)
uname -a : Linux n30clfd1 2.4.19-k7 #1 Tue Nov 19 03:01:13 EST 2002 i686
GNU/Linux
I found this file by searching in /usr/include for "struct ifreq", since the
very very scanty documentation in
/usr/src/linux/Documentation/networking/tuntap.txt mentions this struct in a
codeexample.
so long
Maik
Reply to: