[OpenAFS] Uninstall OpenAFS after make install
Stephan Wiesand
stephan.wiesand@desy.de
Mon, 29 Jun 2015 20:36:27 +0200
On Jun 22, 2015, at 15:15 , ladanyi@ira.uka.de wrote:
>>> I used this now, but an yum-builddep of this srpm package tells me =
that
>>> the package: kernel-devel-x86_64 =3D 2.6.18-404.el5 is needed but =
not
>>> found on centos 7. centos 7 ist working with 3.10.
>>=20
>> yum-builddep is looking at the wrong info when used on srpms. Install =
or
>> unpack the srpm and run "yum-builddep openafs.spec" instead.
>=20
> On Centos 7:
> yum-builddep openafs.spec works.
> rpmbuild -ba openafs.spec exits with 0. I got my rpm packages.
>=20
> On Fedora 20:
> I add a yum repository file which points to the 1.6.10 rpm Fedora 20 =
packages at openafs.org
>=20
> yum install produce the following output with some errors and bad =
exit:
Once again: 1.6.10 is too old for the latest F20 kernels. It's not going =
to work.
Do what you did on EL7 but use at least 1.6.11 (and preferably 1.6.12 =
which was released last friday).
=20
Best,
Stephan
> Running transaction
> Installing : openafs-1.6.10-2.fc20.x86_64 =
=
1/5
> Installing : openafs-client-1.6.10-2.fc20.x86_64 =
=
2/5
> Installing : dkms-openafs-1.6.10-2.fc20.x86_64 =
=
3/5
> Error! DKMS tree already contains: openafs-1.6.10-2.fc20
> You cannot add the same module/version combo more than once.
>=20
> Kernel preparation unnecessary for this kernel. Skipping...
>=20
> Building module:
> cleaning build area...(bad exit status: 2)
> ./configure =
--with-linux-kernel-headers=3D/lib/modules/3.19.8-100.fc20.x86_64/build =
--with-linux-kernel-packaging && make && case 3.19.8-100.fc20.x86_64 in =
2.4.*) mv src/libafs/MODLOAD-*/libafs-* openafs.o ;; *) mv =
src/libafs/MODLOAD-*/openafs.ko . ;; =
esac....................................................(bad exit =
status: 2)
> Error! Bad return status for module build on kernel: =
3.19.8-100.fc20.x86_64 (x86_64)
> Consult /var/lib/dkms/openafs/1.6.10-2.fc20/build/make.log for more =
information.
>=20
> Kernel preparation unnecessary for this kernel. Skipping...
>=20
> Building module:
> cleaning build area...(bad exit status: 2)
> ./configure =
--with-linux-kernel-headers=3D/lib/modules/3.19.8-100.fc20.x86_64/build =
--with-linux-kernel-packaging && make && case 3.19.8-100.fc20.x86_64 in =
2.4.*) mv src/libafs/MODLOAD-*/libafs-* openafs.o ;; *) mv =
src/libafs/MODLOAD-*/openafs.ko . ;; =
esac.....................................................(bad exit =
status: 2)
> Error! Bad return status for module build on kernel: =
3.19.8-100.fc20.x86_64 (x86_64)
> Consult /var/lib/dkms/openafs/1.6.10-2.fc20/build/make.log for more =
information.
> warning: %post(dkms-openafs-1.6.10-2.fc20.x86_64) scriptlet failed, =
exit status 10
> Non-fatal POSTIN scriptlet failure in rpm package =
dkms-openafs-1.6.10-2.fc20.x86_64
> Installing : openafs-docs-1.6.10-2.fc20.x86_64 =
=
4/5
> Installing : openafs-krb5-1.6.10-2.fc20.x86_64 =
=
5/5
> Verifying : openafs-docs-1.6.10-2.fc20.x86_64 =
=
1/5
> Verifying : dkms-openafs-1.6.10-2.fc20.x86_64 =
=
2/5
> Verifying : openafs-krb5-1.6.10-2.fc20.x86_64 =
=
3/5
> Verifying : openafs-client-1.6.10-2.fc20.x86_64 =
=
4/5
> Verifying : openafs-1.6.10-2.fc20.x86_64 =
=
5/5
>=20
> Installed:
> dkms-openafs.x86_64 0:1.6.10-2.fc20 openafs.x86_64 0:1.6.10-2.fc20 =
openafs-client.x86_64 0:1.6.10-2.fc20 openafs-docs.x86_64 =
0:1.6.10-2.fc20 openafs-krb5.x86_64 0:1.6.10-2.fc20
>=20
> Complete!
>=20
>=20
>=20
> The Consult /var/lib/dkms/openafs/1.6.10-2.fc20/build/make.log for =
more information:
>=20
> CC [M] =
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.19.8-100.fc=
20.x86_64-SP/afs_cbqueue.o
> CC [M] =
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.19.8-100.fc=
20.x86_64-SP/afs_cell.o
> CC [M] =
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.19.8-100.fc=
20.x86_64-SP/afs_chunk.o
> CC [M] =
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.19.8-100.fc=
20.x86_64-SP/afs_conn.o
> CC [M] =
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.19.8-100.fc=
20.x86_64-SP/afs_daemons.o
> =
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.19.8-100.fc=
20.x86_64-SP/afs_daemons.c: In function =91afs_CheckRootVolume=92:
> =
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.19.8-100.fc=
20.x86_64-SP/afs_daemons.c:403:24: error: =91struct dentry=92 has no =
member named =91d_alias=92
> list_del_init(&dp->d_alias);
> ^
> =
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.19.8-100.fc=
20.x86_64-SP/afs_daemons.c:404:19: error: =91struct dentry=92 has no =
member named =91d_alias=92
> list_add(&dp->d_alias, &(AFSTOV(vcp)->i_dentry));
> ^
> =
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.19.8-100.fc=
20.x86_64-SP/afs_daemons.c:404:7: warning: passing argument 2 of =
=91list_add=92 from incompatible pointer type [enabled by default]
> list_add(&dp->d_alias, &(AFSTOV(vcp)->i_dentry));
> ^
> In file included from include/linux/wait.h:6:0,
> from =
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/afs/sysincludes.h:124,
> from =
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.19.8-100.fc=
20.x86_64-SP/afs_daemons.c:19:
> include/linux/list.h:61:20: note: expected =91struct list_head *=92 =
but argument is of type =91struct hlist_head *=92
> static inline void list_add(struct list_head *new, struct list_head =
*head)
> ^
> make[4]: *** =
[/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.19.8-100.f=
c20.x86_64-SP/afs_daemons.o] Error 1
> make[3]: *** =
[_module_/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.19=
.8-100.fc20.x86_64-SP] Error 2
> make[3]: Leaving directory `/usr/src/kernels/3.19.8-100.fc20.x86_64'
> FAILURE: make exit code 2
> make[2]: *** [openafs.ko] Error 1
> make[2]: Leaving directory =
`/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.19.8-100.f=
c20.x86_64-SP'
> make[1]: *** [linux_compdirs] Error 2
> make[1]: Leaving directory =
`/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs'
> make: *** [all] Error 2
>=20
>=20
>> Best, Stephan
>=20
> regards,
> Andreas
>=20
> <smime.p7s>
--=20
Stephan Wiesand
DESY -DV-
Platanenenallee 6
15738 Zeuthen, Germany