[OpenAFS] openafs 1.2.7 - mandrake9.0

trax traxtopel@HotPOP.com
03 Oct 2002 14:32:06 +0200


I am trying to recompile the openafs1.2.7 RPM on Mandrake 9.0.
The problem I am having is building the openafs-krb5 package.
All other packages build correctly.

I have modified the spec so that the krb5./configure to kerberos path to
/usr as opposed to /usr/kereberos(which is for rh7.3).
Processing files: openafs-krb5-1.2.7-mdk9.0.1
error: File not found: /var/tmp/openafs-1.2.7-root/usr/bin/aklog
error: File not found: /var/tmp/openafs-1.2.7-root/usr/sbin/asetkey

After rpm is finished recompiling, it bottles out as the aklog file is
not built.

All other packages build correctly
Running the make all manually from openafs-krb5-1.3/, produces the
following.
[root@localhost src]# make all
gcc  -o aklog aklog.o aklog_main.o aklog_param.o krb_util.o
linked_list.o  adderrtable.o -lkrb524  
-L/usr/src/RPM/BUILD/openafs-1.2.7/openafs-krb5-1.3/src/../../i386_linux24/dest//lib -L/usr/src/RPM/BUILD/openafs-1.2.7/openafs-krb5-1.3/src/../../i386_linux24/dest//lib/afs -lsys -lprot -lubik -lauth -lrxkad -lrx -llwp -ldes -lsys /usr/src/RPM/BUILD/openafs-1.2.7/openafs-krb5-1.3/src/../../i386_linux24/dest//lib/afs/util.a -lresolv  -lkrb5 -lk5crypto -lcom_err
/usr/src/RPM/BUILD/openafs-1.2.7/openafs-krb5-1.3/src/../../i386_linux24/dest//lib/afs/libcom_err.a(error_msg.o): In function `add_to_error_table':
error_msg.o(.text+0x220): multiple definition of `add_to_error_table'
adderrtable.o:/usr/src/RPM/BUILD/openafs-1.2.7/openafs-krb5-1.3/src/adderrtable.c:31: first defined here
/usr/bin/ld: Warning: size of symbol `add_to_error_table' changed from
16 to 49 in
/usr/src/RPM/BUILD/openafs-1.2.7/openafs-krb5-1.3/src/../../i386_linux24/dest//lib/afs/libcom_err.a(error_msg.o)
collect2: ld returned 1 exit status
make: *** [aklog] Error 1

config.log shows the following ...
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:564: checking for C compiler
configure:576: checking for gcc
configure:689: checking whether the C compiler (gcc  ) works
configure:705: gcc -o conftest    conftest.c  1>&5
configure:731: checking whether the C compiler (gcc  ) is a
cross-compiler
configure:736: checking whether we are using GNU C
configure:745: gcc -E conftest.c
configure:764: checking whether gcc accepts -g
configure:899: checking for a BSD compatible install
configure:979: checking for getDirPath in
/usr/src/RPM/BUILD/openafs-1.2.7/openafs-krb5-1.3/src/../../i386_linux24/dest//lib/afs/util.a
configure:997: gcc -o conftest -g -O2 
-I/usr/src/RPM/BUILD/openafs-1.2.7/openafs-krb5-1.3/src/../../i386_linux24/dest//include  conftest.c  /usr/src/RPM/BUILD/openafs-1.2.7/openafs-krb5-1.3/src/../../i386_linux24/dest//lib/afs/util.a 1>&5
configure:1055: checking for socket in -lsocket
configure:1074: gcc -o conftest -g -O2 
-I/usr/src/RPM/BUILD/openafs-1.2.7/openafs-krb5-1.3/src/../../i386_linux24/dest//include  conftest.c -lsocket -lnsl  1>&5
/usr/bin/ld: cannot find -lsocket
collect2: ld returned 1 exit status
configure: failed program was:
#line 1063 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char socket();

int main() {
socket()
; return 0; }
configure:1095: checking for t_bind in -lnsl
configure:1114: gcc -o conftest -g -O2 
-I/usr/src/RPM/BUILD/openafs-1.2.7/openafs-krb5-1.3/src/../../i386_linux24/dest//include  conftest.c -lnsl   1>&5
/tmp/ccg62sYD.o: In function `main':
/usr/src/RPM/BUILD/openafs-1.2.7/openafs-krb5-1.3/src/configure:1110:
undefined reference to `t_bind'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1103 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char t_bind();

int main() {
t_bind()
; return 0; }
configure:1140: checking for compile
configure:1168: gcc -o conftest -g -O2 
-I/usr/src/RPM/BUILD/openafs-1.2.7/openafs-krb5-1.3/src/../../i386_linux24/dest//include  conftest.c -lgen 1>&5
/usr/bin/ld: cannot find -lgen
collect2: ld returned 1 exit status
configure: failed program was:
#line 1145 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char compile(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char compile();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_compile) || defined (__stub___compile)
choke me
#else
compile();
#endif

; return 0; }
configure:1140: checking for step
configure:1168: gcc -o conftest -g -O2 
-I/usr/src/RPM/BUILD/openafs-1.2.7/openafs-krb5-1.3/src/../../i386_linux24/dest//include  conftest.c -lgen 1>&5
/usr/bin/ld: cannot find -lgen
collect2: ld returned 1 exit status
configure: failed program was:
#line 1145 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char step(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    buchar step();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_step) || defined (__stub___step)
choke me
#else
step();
#endif

; return 0; }
iltin and then its argument prototype would still apply.  */


I have tried recompiling with gcc2.96 aswell as 3.2, both give the same
result.