iptables make: syntax error before '*' token
![](http://mediasubs.ru/author/avatar/4949643.png)
Доброго времени суток.
Ситуация такая - при компиляции iptables-1.2.10 выдает следующую ошибку:
[rygoravich@rygoravich iptables-1.2.10]$ make
Extensions found: IPv4:recent IPv6:ah IPv6:esp IPv6:frag IPv6:ipv6header IPv6:hbh
IPv6:dst IPv6:rt
cc -O2 -Wall -Wunused -I/usr/src/linux/include -Iinclude/ -DIPTABLES_VERSION=\"1.2.10\"
-fPIC -o extensions/libipt_ah_sh.o -c extensions/libipt_ah.c
In file included from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_ah.c:8:
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:255: warning: no semicolon
at end of struct or union
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:255: error: syntax error
before '*' token
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:259: error: syntax error
before '}' token
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: type defaults
to `int' in declaration of `DECLARE_MUTEX'
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: parameter
names (without types) in function declaration
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: `DECLARE_MUTEX'
declared `static' but never defined
make: *** [extensions/libipt_ah_sh.o] Ошибка 1
[rygoravich@rygoravich iptables-1.2.10]$
Дистрибутив Mandrake 9.2, ядро 2.6.7. Кусок /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:
struct ipt_replace
{
/* Which table. */
char name[IPT_TABLE_MAXNAMELEN];
/* Which hook entry points are valid: bitmask. You can't
change this. */
unsigned int valid_hooks;
/* Number of entries */
unsigned int num_entries;
/* Total size of new entries */
unsigned int size;
/* Hook entry points. */
unsigned int hook_entry[NF_IP_NUMHOOKS];
/* Underflow points. */
unsigned int underflow[NF_IP_NUMHOOKS];
/* Information about old entries: */
/* Number of counters (must be equal to current number of entries). */
unsigned int num_counters;
/* The old entries' counters. */
struct ipt_counters __user *counters; // 255-ая строка
/* The entries (hang off end: not really an array). */
struct ipt_entry entries[0];
}; // 259-ая строка
В чем может быть трабла?
Здравствуйте, Rygoravich.
Вы писали 25 декабря 2004 г., 13:09:41:
Доброго.
error
error
^^^^^^^
Возможно здесь не должно быть пробела.