更改configure.ac后如何重建openssh 5.2p1
我需要将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查定义
OSSH_PATH_ENTROPY_PROG
的.m4文件在哪里,然后将其目录传递给aclocal
:如果没有Makefile.am,则跳过
automake
命令。Check where is the .m4 file where
OSSH_PATH_ENTROPY_PROG
is defined, then pass its directory toaclocal
:If it doesn't have Makefile.am, just skip the
automake
command.OSSH_PATH_ENTROPY_PROG
宏在 openssh tarball 中捆绑的aclocal.m4
中定义,并由make
对 libtoolize 的调用覆盖。要解决此问题,请创建一个
m4
文件夹并将aclocal.m4
移入其中。然后执行The
OSSH_PATH_ENTROPY_PROG
macro is defined in theaclocal.m4
bundled in openssh tarball, and is overwritten bymake
's calling to libtoolize.To work around this, create an
m4
folder and moveaclocal.m4
into it. Then execute