On Fri, Feb 17, 2012 at 6:49 PM, Simon Wilkinson <simonxwilkin...@gmail.com> wrote: > > On 17 Feb 2012, at 17:45, Natxo Asenjo wrote: > >> error: Failed build dependencies: >> kernel-devel-i386 = 2.6.32-220.4.2.el6 is needed by openafs-1.6.0-1.el6.i386 > > You need to specific i686 as the target.
ok, that makes sense: rpmbuild --rebuild -bb --define 'build_userspace 0' --define 'build_modules 1' --target i686 openafs-1.6.0-1.src.rpm Installing openafs-1.6.0-1.src.rpm Building target platforms: i686 Building for target i686 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.mvFgEQ + umask 022 + cd /root/rpmbuild/BUILD + : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + : @@@ + : @@@ kernel version: 2.6.32-220.4.2.el6.i686 + : @@@ kernel variations: '' + : @@@ PAM modules dir: /lib/security + : @@@ build userspace: 0 + : @@@ build modules: 1 + : @@@ arch: i386 + : @@@ target cpu: i686 + : @@@ + : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + cd /root/rpmbuild/BUILD + rm -rf openafs-1.6.0 + /bin/tar -xf - + /usr/bin/bzip2 -dc /root/rpmbuild/SOURCES/openafs-1.6.0-src.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + /bin/tar -xf - + /usr/bin/bzip2 -dc /root/rpmbuild/SOURCES/openafs-1.6.0-doc.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd openafs-1.6.0 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Ak15pA + umask 022 + cd /root/rpmbuild/BUILD + cd openafs-1.6.0 + case 2.6.32-220.4.2.el6.i686 in + kv=26 + case i386 in + sysname=i386_linux26 + archlist='i386 i586 i686 athlon' + config_opts='--enable-redhat-buildsys --enable-transarc-paths' + ksrc= + for kvariant in '""' + '[' -z '' -o -z '' ']' + '[' -d /usr/src/kernels/2.6.32-220.4.2.el6-i686 ']' + ksrc=/usr/src/kernels/2.6.32-220.4.2.el6.i686 + '[' -z /usr/src/kernels/2.6.32-220.4.2.el6.i686 ']' + CFLAGS='-O2 -g -march=i686' + export CFLAGS + ./configure --with-afs-sysname=i386_linux26 --prefix=/usr --libdir=/usr/lib --bindir=/usr/bin --sbindir=/usr/sbin --disable-strip-binaries --with-linux-kernel-packaging --with-linux-kernel-headers=/usr/src/kernels/2.6.32-220.4.2.el6.i686 --with-krb5 --enable-redhat-buildsys --enable-transarc-paths checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... no checking for style of include used by make... none checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for AIX... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) none checking for cpp... /usr/bin/cpp checking build system type... i686-pc-linux-gnu checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking host system type... i686-pc-linux-gnu checking for libxslt... no checking for saxon... no checking for xalan-j... no checking for xsltproc... xsltproc checking for docbook2pdf... no checking for dblatex... no checking for library containing strerror... none required checking for pid_t... yes checking for size_t... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for ranlib... ranlib checking for bison... bison -y checking if lex is flex... yes checking whether byte order is known at compile time... yes checking whether byte ordering is bigendian... no checking whether printf understands the %z length modifier... yes checking your OS... linux checking if gcc accepts -march=pentium... yes checking if gcc needs -fno-strength-reduce... yes checking if gcc needs -fno-strict-aliasing... yes checking if gcc supports -fno-common... yes checking if gcc supports -pipe... yes checking if linux kbuild requires EXTRA_CFLAGS... yes checking for linux kernel module build works... no configure: error: Fix problem or use --disable-kernel-module... See `config.log' for more details. + exit 1 error: Bad exit status from /var/tmp/rpm-tmp.Ak15pA (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Ak15pA (%build) Still no go. Thanks in advance, -- natxo