And howto for CentOS?

Discussion in 'Kernel Questions' started by xist, Aug 8, 2008.

  1. xist

    xist New Member

    Hi all. I try to compile a new vanilla kernel 2.6.25 for CentOS 5 according to this howto.
    But I got this error:

    Code:
     CC	  net/xfrm/xfrm_algo.o
      CC	  net/xfrm/xfrm_proc.o
      CC [M]  net/xfrm/xfrm_user.o
      LD	  net/xfrm/built-in.o
      LD	  net/built-in.o
    error: Bad exit status from /var/tmp/rpm-tmp.96774 (%build)
    
    
    RPM build errors:
    	Bad exit status from /var/tmp/rpm-tmp.96774 (%build)
    make[1]: *** [rpm] Error 1
    make: *** [rpm] Error 2
    cat /var/tmp/rpm-tmp.96774
    Code:
    #!/bin/sh
    
    RPM_SOURCE_DIR="/usr/src/linux-2.6.25/.."
    RPM_BUILD_DIR="/usr/src/redhat/BUILD"
    RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic"
    RPM_ARCH="x86_64"
    RPM_OS="linux"
    export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
    RPM_DOC_DIR="/usr/share/doc"
    export RPM_DOC_DIR
    RPM_PACKAGE_NAME="kernel"
    RPM_PACKAGE_VERSION="2.6.25"
    RPM_PACKAGE_RELEASE="1"
    export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
    RPM_BUILD_ROOT="/var/tmp/kernel-2.6.25-root"
    export RPM_BUILD_ROOT
    
    PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgconfig"
    export PKG_CONFIG_PATH
    
    set -x
    umask 022
    cd /usr/src/redhat/BUILD
    
    cd kernel-2.6.25
    LANG=C
    export LANG
    unset DISPLAY
    
    make clean && make -j2
    
    
    exit 0
    uname -a:
    Linux office 2.6.18-92.1.6.el5 #1 SMP Wed Jun 25 13:45:47 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

    config file is there: http://pastebin.com/m4e0b3858
    any help will be appreciated..
     

Share This Page