我试着从sf.net构建xtables插件。
我已经从SF克隆了xtables插件git repo。它有一个“autogen.sh”来
创建配置脚本。/autogen.sh失败,原因如下
消息:

/usr/bin/m4:configure.ac:33: Warning: excess arguments to builtin `m4_if' ignored
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1

我对自动工具没有经验,所以我不知道到底是什么
去那里。
autogen.sh包含以下内容:
#!/bin/bash

autoreconf -fi;
rm -Rf autom4te*.cache;

为什么会失败?我有所有的自动工具。
编辑:
[root@s1 xtables-addons]# /usr/bin/m4 --version
m4 (GNU M4) 1.4.13
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Rene' Seindal.

最佳答案

看起来像this bug report。您可以从那里获得附加的补丁,或者直接转到configure.ac中的第32行,并在autodetect之后删除多余的闭合方括号。即更改此:

    [Path where to install Xtables extensions [[autodetect]]]]),

对此:
    [Path where to install Xtables extensions [[autodetect]]]),

09-30 20:39