错误描述:
make[3]: Entering directory '/root/rpmbuild/BUILD/Linux-PAM-1.1.8/modules/pam_faillock'
/usr/bin/xsltproc --path . --xinclude --stringparam generate.toc "none" --nonet http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl README.xml | /usr/bin/links -no-numbering -no-references -dump > ./README
/bin/sh: 行 1: 4717 已完成
/usr/bin/xsltproc --path . --xinclude --stringparam generate.toc "none" --nonet http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl README.xml
4718 段错误
(核心已转储)| /usr/bin/links -no-numbering -no-references -dump > ./README
问题分析:
通过分析和调试,发现这个错误是在执行/usr/bin/links的过程中出现的,查看具体的效果发现是对xml文件进行进一步处理生成README文件的时候报错的。
那么可以不可以让他不生成呢?README一般情况下也没有那么重要啊,所以此时关键就来了,在代码和makefile中找不到相关的注释地方啊,没关系,突然想到./configure可以控制一些选项,发现果然有这么一个有点像的类似选项:
./configure --help
--disable-regenerate-docu
Don't re-build documentation from XML sources
解决方法:
只要在./configure阶段加一个这个参数,就可以解决问题了
收获:
有时候解决问题,不能只想这从代码上面来分析,也要多切换一些思路,很多时候,方法对了,事半功倍。