昨天晚上在vps上装了centos7想生成一个httpd2.4.12的rpm包 于是用了rpm-build
生成httpd需要apr1.5.1所以先生成一个apr1.5.1的rpm在生成的时候报以下错误,在centos6.5上不会出错
#rpmbuild -tb --clean apr-1.5.1.tar.bz2
以下为错误提示
apr_socket_sendfile()->0, sent 370049 bytes
After apr_socket_sendfile(), the kernel file pointer is at offset 0.
client: apr_socket_sendfile() worked as expected!
Waiting for a client to connect...
Processing a client...
server: apr_socket_sendfile() worked as expected!
Programs failed: testall
make: *** [check] Error 1
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.lYRKR9 (%check)
tmp里的rpm-tmp.lYRKR9内容为
#!/bin/sh
RPM_SOURCE_DIR="/root"
RPM_BUILD_DIR="/root/rpmbuild/BUILD"
RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic"
RPM_LD_FLAGS="-Wl,-z,relro "
RPM_ARCH="x86_64"
RPM_OS="linux"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_LD_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="apr"
RPM_PACKAGE_VERSION="1.5.1"
RPM_PACKAGE_RELEASE="1"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
LANG=C
export LANG
unset CDPATH DISPLAY ||:
RPM_BUILD_ROOT="/root/rpmbuild/BUILDROOT/apr-1.5.1-1.x86_64"
export RPM_BUILD_ROOT
PKG_CONFIG_PATH="%{_PKG_CONFIG_PATH}:/usr/lib64/pkgconfig:/usr/share/pkgconfig"
export PKG_CONFIG_PATH
set -x
umask 022
cd "/root/rpmbuild/BUILD"
cd 'apr-1.5.1'
# Run non-interactive tests
pushd test
make -j2 all CFLAGS=-fno-strict-aliasing
make check || exit 1
popd
exit 0
由于对linux不是很了解所以还请各位朋友帮忙看看到底是什么地方出错了在这里先谢过了
-------------------------
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。