[OpenAFS] suse9/amd64 & 1.2.10 client

Marc Schmitt mschmitt@inf.ethz.ch
Thu, 15 Jan 2004 00:08:11 +0100


Andrej Filipcic wrote:

>I have finally succeded to install openafs client on suse9 for AMD64.
>Suse ships with gcc version 3.3.1. With this compiler, the "-mno-red-zone" 
>flag should be used for libafs kernel module. If not, there is the 
>following error:
>"afs: Tokens for user of AFS id 1 for cell cellname are discarded (rxkad 
>error=19270410)"
>
>The same error also appears in fedora/x86_64, if libafs is compiled with 
>gcc 3.3.2 and not with gcc 3.2.3.
>
When trying to rebuild openafs-1.2.11-rhel3.0.1.src.rpm on RHEL 
WS/x86_64, I noticed that afs-sysname is set to x86_64, which is not 
supported (yet?). Setting amd64 as sysname works, though.

ELWS3 ships with gcc 3.2.3, I should not hit the problem that you 
mention above, well, I don't get that far, anyway... ;)

Building in directory: MODLOAD-2.4.21-4.EL-amd64-MP
make[4]: Entering directory 
`/usr/src/redhat/BUILD/openafs-1.2.11/src/libafs/MODLOAD-2.4.21-4.EL-amd64-MP'
/usr/src/redhat/BUILD/openafs-1.2.11/src/pinstall/pinstall -f 
libafs-2.4.21-4.EL-amd64.mp.o 
/usr/src/redhat/BUILD/openafs-1.2.11/amd64_linux24/dest/root.client/usr/vice/etc/modload/libafs-2.4.21-4.EL-amd64.mp.o
echo MP Install Complete
MP Install Complete
make[4]: Leaving directory 
`/usr/src/redhat/BUILD/openafs-1.2.11/src/libafs/MODLOAD-2.4.21-4.EL-amd64-MP'
make[3]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.2.11/src/libafs'
make[2]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.2.11'
make[1]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.2.11'
+ rm -f src/config/redhat-fix.h
+ cd afs-krb5/src
++ pwd
+ ./configure --prefix=/usr --with-krb5=/usr/kerberos 
--with-afs=/usr/src/redhat/BUILD/openafs-1.2.11/afs-krb5/src/../../amd64_linux24/dest/
checking for gcc... gcc
checking for C compiler default output... 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 ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for krb5-config... /usr/kerberos/bin/krb5-config
Adding -I/usr/kerberos/include to CFLAGS
Adding -L/usr/kerberos/lib64 -lkrb5 -lk5crypto -lcom_err to LIBS
Setting KADM_CFLAGS to -I/usr/kerberos/include
Setting KADM_LIBS to -L/usr/kerberos/lib64 -lkadm5srv -lkdb5 -ldb 
-lgssrpc -ldyn -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
checking for socket... yes
checking for gethostbyname... yes
checking for res_search... no
checking for res_search in -ldns... no
checking for res_search in -lnsl... no
checking for res_search in -lresolv... no
configure: error: Unable to find res_search function
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.46132 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.46132 (%build)

res_search is part of the glibc, right? There are two installed: i686 
(/lib and /usr/lib) and x86_64 (/lib64 and /usr/lib64). Any hints on how 
to fix this?

    Marc