Hey Mike...

>gcc -Wall -02 -o ipfwadm ipfwadm.c
>In file included from ipfwadm.c:111;
>/usr/include/linux/ip_fw.h:253; field 'timer' has incomplete type
>make: xxx [ipfwadm] Error 1


Here is what Juano had to say about this a while back:


> I'm at the end of my rope here and I know I'm missing something simple.
> I just downloaded the stock ipfwadm-2.3.0 code and it won't compile
> plain nor will it with the timeout patch.  Could someone please give
> a tired mind a hand here?

mhhh... damaged mind help is ok?

The problem is that IP_AUTOFW uses the same structure (struct ip_autofw)
for internal (@kernel) use and user<->kernel setsockopt() syscalls.
The nice "struct timer_list" is never used @user level, so it should NOT
be necessary to know about it from user space.

Also ip_fw.h has some   #ifdef CONFIG_xxx (even not protected by
#ifdef KERNEL), which leads to interesting results:
   You will be able to compile ipfwadm if you UNconfigure IP_AUTOFW 
   (no more struct timer_list ...), but won't make difference if you
   run a kernel with(out) IP_AUTOFW.

Anyway, the UQPw (UglyQuickPatch,whatever..) follows

--- ipfwadm.c~  Tue Jul 30 08:54:22 1996
+++ ipfwadm.c   Fri Oct 24 16:01:25 1997
@@ -108,6 +108,7 @@
 #include <linux/udp.h>
 #include <linux/icmp.h>
 #include <linux/if.h>
+#include <linux/timer.h>
 #include <linux/ip_fw.h>
 #include <sys/param.h>
 

Have a nice weekend and enjoy the world around you.
Regards!

-- Juanjo                       
                       Yo don't need an hologram to know...
                       Nor you need to sell your brain to anyone.
                       Yo can feel it. It's Linux.

 .----------------------------------------------------------------------------.
 |  David A. Ranch  - Remote Access/Linux/PCs       [EMAIL PROTECTED]  |
 !----                                                                    ----!
 `----- For more detailed info, see http://www.ecst.csuchico.edu/~dranch -----'
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]

Reply via email to