[OpenAFS] problem installing kmod-openafs from yum repo
Natxo Asenjo
natxo.asenjo@gmail.com
Fri, 17 Feb 2012 19:21:18 +0100
--e89a8fb20488ce06f504b92d02bb
Content-Type: text/plain; charset=UTF-8
On Fri, Feb 17, 2012 at 6:49 PM, Simon Wilkinson <simonxwilkinson@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
--e89a8fb20488ce06f504b92d02bb
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
On Fri, Feb 17, 2012 at 6:49 PM, Simon Wilkinson <<a href=3D"mailto:simo=
nxwilkinson@gmail.com">simonxwilkinson@gmail.com</a>> wrote:<br>><br>=
> On 17 Feb 2012, at 17:45, Natxo Asenjo wrote:<br>><br>>> erro=
r: Failed build dependencies:<br>
>> =C2=A0 =C2=A0 =C2=A0 kernel-devel-i386 =3D 2.6.32-220.4.2.el6 is n=
eeded by openafs-1.6.0-1.el6.i386<br>><br>> You need to specific i686=
as the target.<br><br>ok, that makes sense:<br><br>rpmbuild --rebuild -bb =
--define 'build_userspace 0' --define 'build_modules 1' --t=
arget i686 openafs-1.6.0-1.src.rpm<br>
<br>Installing openafs-1.6.0-1.src.rpm<br>Building target platforms: i686<b=
r>Building for target i686<br>Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp=
.mvFgEQ<br>+ umask 022<br>+ cd /root/rpmbuild/BUILD<br>+ : @@@@@@@@@@@@@@@@=
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br>
+ : @@@<br>+ : @@@ kernel version: 2.6.32-220.4.2.el6.i686<br>+ : @@@ kerne=
l variations: ''<br>+ : @@@ PAM modules dir: /lib/security<br>+ : @=
@@ build userspace: 0<br>+ : @@@ build modules: 1<br>+ : @@@ arch: i386<br>
+ : @@@ target cpu: i686<br>+ : @@@<br>+ : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br>+ cd /root/rpmbuild/BUILD<br>+ rm -rf open=
afs-1.6.0<br>+ /bin/tar -xf -<br>+ /usr/bin/bzip2 -dc /root/rpmbuild/SOURCE=
S/openafs-1.6.0-src.tar.bz2<br>
+ STATUS=3D0<br>+ '[' 0 -ne 0 ']'<br>+ /bin/tar -xf -<br>+ =
/usr/bin/bzip2 -dc /root/rpmbuild/SOURCES/openafs-1.6.0-doc.tar.bz2<br>+ ST=
ATUS=3D0<br>+ '[' 0 -ne 0 ']'<br>+ cd openafs-1.6.0<br>+ /b=
in/chmod -Rf a+rX,u+w,g-w,o-w .<br>
+ exit 0<br>Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Ak15pA<br>+ umas=
k 022<br>+ cd /root/rpmbuild/BUILD<br>+ cd openafs-1.6.0<br>+ case 2.6.32-2=
20.4.2.el6.i686 in<br>+ kv=3D26<br>+ case i386 in<br>+ sysname=3Di386_linux=
26<br>
+ archlist=3D'i386 i586 i686 athlon'<br>+ config_opts=3D'--enab=
le-redhat-buildsys =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 --enable-tra=
nsarc-paths'<br>+ ksrc=3D<br>+ for kvariant in '""'<b=
r>+ '[' -z '' -o -z '' ']'<br>
+ '[' -d /usr/src/kernels/2.6.32-220.4.2.el6-i686 ']'<br>+ =
ksrc=3D/usr/src/kernels/2.6.32-220.4.2.el6.i686<br>+ '[' -z /usr/sr=
c/kernels/2.6.32-220.4.2.el6.i686 ']'<br>+ CFLAGS=3D'-O2 -g -ma=
rch=3Di686'<br>
+ export CFLAGS<br>+ ./configure --with-afs-sysname=3Di386_linux26 --prefix=
=3D/usr --libdir=3D/usr/lib --bindir=3D/usr/bin --sbindir=3D/usr/sbin --dis=
able-strip-binaries --with-linux-kernel-packaging --with-linux-kernel-heade=
rs=3D/usr/src/kernels/2.6.32-220.4.2.el6.i686 --with-krb5 --enable-redhat-b=
uildsys --enable-transarc-paths<br>
checking for a BSD-compatible install... /usr/bin/install -c<br>checking wh=
ether build environment is sane... yes<br>checking for a thread-safe mkdir =
-p... /bin/mkdir -p<br>checking for gawk... gawk<br>checking whether make s=
ets $(MAKE)... no<br>
checking for style of include used by make... none<br>checking for gcc... g=
cc<br>checking for C compiler default output file name... a.out<br>checking=
whether the C compiler works... yes<br>checking whether we are cross compi=
ling... no<br>
checking for suffix of executables... <br>checking for suffix of object fil=
es... o<br>checking whether we are using the GNU C compiler... yes<br>check=
ing whether gcc accepts -g... yes<br>checking for gcc option to accept ISO =
C89... none needed<br>
checking dependency style of gcc... none<br>checking how to run the C prepr=
ocessor... gcc -E<br>checking for grep that handles long lines and -e... /b=
in/grep<br>checking for egrep... /bin/grep -E<br>checking for AIX... no<br>
checking for ANSI C header files... yes<br>checking for sys/types.h... yes<=
br>checking for sys/stat.h... yes<br>checking for stdlib.h... yes<br>checki=
ng for string.h... yes<br>checking for memory.h... yes<br>checking for stri=
ngs.h... yes<br>
checking for inttypes.h... yes<br>checking for stdint.h... yes<br>checking =
for unistd.h... yes<br>checking minix/config.h usability... no<br>checking =
minix/config.h presence... no<br>checking for minix/config.h... no<br>check=
ing whether it is safe to define __EXTENSIONS__... yes<br>
checking for gcc... (cached) gcc<br>checking whether we are using the GNU C=
compiler... (cached) yes<br>checking whether gcc accepts -g... (cached) ye=
s<br>checking for gcc option to accept ISO C89... (cached) none needed<br>
checking dependency style of gcc... (cached) none<br>checking for cpp... /u=
sr/bin/cpp<br>checking build system type... i686-pc-linux-gnu<br>checking f=
or flex... flex<br>checking lex output file root... lex.yy<br>checking lex =
library... -lfl<br>
checking whether yytext is a pointer... yes<br>checking for pkg-config... /=
usr/bin/pkg-config<br>checking pkg-config is at least version 0.9.0... yes<=
br>checking host system type... i686-pc-linux-gnu<br>checking for libxslt..=
. no<br>
checking for saxon... no<br>checking for xalan-j... no<br>checking for xslt=
proc... xsltproc<br>checking for docbook2pdf... no<br>checking for dblatex.=
.. no<br>checking for library containing strerror... none required<br>check=
ing for pid_t... yes<br>
checking for size_t... yes<br>checking for a BSD-compatible install... /usr=
/bin/install -c<br>checking whether ln -s works... yes<br>checking for ranl=
ib... ranlib<br>checking for bison... bison -y<br>checking if lex is flex..=
. yes<br>
checking whether byte order is known at compile time... yes<br>checking whe=
ther byte ordering is bigendian... no<br>checking whether printf understand=
s the %z length modifier... yes<br>checking your OS... linux<br>checking if=
gcc accepts -march=3Dpentium... yes<br>
checking if gcc needs -fno-strength-reduce... yes<br>checking if gcc needs =
-fno-strict-aliasing... yes<br>checking if gcc supports -fno-common... yes<=
br>checking if gcc supports -pipe... yes<br>checking if linux kbuild requir=
es EXTRA_CFLAGS... yes<br>
checking for linux kernel module build works... no<br>configure: error: Fix=
problem or use --disable-kernel-module...<br>See `config.log' for more=
details.<br>+ exit 1<br>error: Bad exit status from /var/tmp/rpm-tmp.Ak15p=
A (%build)<br>
<br><br>RPM build errors:<br>=C2=A0=C2=A0=C2=A0 Bad exit status from /var/t=
mp/rpm-tmp.Ak15pA (%build)<br><br>Still no go.<br><br>Thanks in advance,<br=
><br>-- <br>natxo<br>
--e89a8fb20488ce06f504b92d02bb--