更改configure.ac后如何重建openssh 5.2p1

发布于 2024-09-06 06:27:14 字数 718 浏览 9 评论 0原文

我需要将 AM_PATH_CHECK 添加到 configure.am 然后尝试运行通常的 autotools 命令序列来重建所有 makefile 之类的东西:

aclocal
automake -ac
autoheader
autoreconf
./configure
make

这里显示了我对 autotools 的缺乏理解,因为这个版本的 openssh没有Makefile.am???现在我该怎么办?

如果我尝试忽略这一点并无论如何构建,配置都会因这个可爱的错误而死亡:

checking whether OpenSSL's PRNG is internally seeded... yes
./configure: line 18275: syntax error near unexpected token `PROG_LS,'
./configure: line 18275: `OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)'

由configure.ac中的这一行引起:

OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)

这实际上是由我对configure.ac的更改引起的吗?
我可以做什么来重新生成所需的文件以允许配置工作?
如果我取出更改并且不运行 aclocal 那么它就可以工作了???

I needed to add AM_PATH_CHECK to configure.am I then try to run the usual sequence of autotools commands to rebuild all the makefiles and whatnot:

aclocal
automake -ac
autoheader
autoreconf
./configure
make

and here my lack of understanding of autotools showes up because this release of openssh has no Makefile.am??? now what do I do?

if i try to ignore this and build anyway configure dies with this lovely error:

checking whether OpenSSL's PRNG is internally seeded... yes
./configure: line 18275: syntax error near unexpected token `PROG_LS,'
./configure: line 18275: `OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)'

caused by this line in configure.ac:

OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)

Is this actually caused by my changes to configure.ac?
what can I do to regenerate the required files to allow configure to work?
if i take my changes out and dont run aclocal then it works???

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

捶死心动 2024-09-13 06:27:14

检查定义OSSH_PATH_ENTROPY_PROG的.m4文件在哪里,然后将其目录传递给aclocal

aclocal -I <directory>

如果没有Makefile.am,则跳过automake 命令。

Check where is the .m4 file where OSSH_PATH_ENTROPY_PROG is defined, then pass its directory to aclocal:

aclocal -I <directory>

If it doesn't have Makefile.am, just skip the automake command.

徒留西风 2024-09-13 06:27:14

OSSH_PATH_ENTROPY_PROG 宏在 openssh tarball 中捆绑的 aclocal.m4 中定义,并由 make 对 libtoolize 的调用覆盖。

要解决此问题,请创建一个 m4 文件夹并将 aclocal.m4 移入其中。然后执行

aclocal -I m4
autoheader
autoreconf
./configure
make

The OSSH_PATH_ENTROPY_PROG macro is defined in the aclocal.m4 bundled in openssh tarball, and is overwritten by make's calling to libtoolize.

To work around this, create an m4 folder and move aclocal.m4 into it. Then execute

aclocal -I m4
autoheader
autoreconf
./configure
make
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文