开发者社区> 问答> 正文

centos7生成rpm报错


昨天晚上在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不是很了解所以还请各位朋友帮忙看看到底是什么地方出错了在这里先谢过了



展开
收起
onlinezxy 2015-02-03 07:24:40 10893 0
1 条回答
写回答
取消 提交回答
  • Recentos7生成rpm报错
    自己顶下

    -------------------------

    Recentos7生成rpm报错
    没人知道么。。。。
    2015-02-03 07:25:18
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
低代码开发师(初级)实战教程 立即下载