[OpenAFS] com_err issues building afs-krb5

Jack Neely jjneely@pams.ncsu.edu
Thu, 15 May 2008 18:15:57 -0400


--9jxsPFA5p3P2qPhR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Folks,

I'm attempting to build the AFS krb5 migration kit.  I haven't done so
in a while and ran into some problems with our friend com_err.  I'm
using the patches offered on the OpenAFS website and an additional patch
to handle the /usr/lib v /usr/lib64 issues.  The patches, spec and such
can be found here:

    https://svn.linux.ncsu.edu/svn/clspackages/rpms/afs-krb5/EL5/

The afs-krb5 stuff finds the system's libcom_err.so but AFS builds and
links against its own and always complains about missing symbols of
afs_com_err and friends.  Is there a better way to correct this rather
than just adding /usr/lib64/afs/libcom_err.a to the LIBS variable in
the proper place in configure.in?

Thanks,
Jack Neely
-- 
Jack Neely <jjneely@ncsu.edu>
Linux Czar, OIT Campus Linux Services
Office of Information Technology, NC State University
GPG Fingerprint: 1917 5AC1 E828 9337 7AA4  EA6B 213B 765F 3B6A 5B89

--9jxsPFA5p3P2qPhR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="afs-krb5.out"

gcc -o aklog aklog.o aklog_main.o aklog_param.o krb_util.o linked_list.o adderrtable.o -lkrb5 -lk5crypto -lcom_err  -L/usr/lib64 -L/usr/lib -L/usr/lib64/afs -L/usr/lib/afs -lsys -lprot -lubik -lauth -lrxkad -lrx -llwp -ldes -lsys /usr/lib64/afs/util.a -lresolv
aklog_param.o: In function `aklog_init_params':
/home/slack/RPM/BUILD/afs-krb5/src/aklog_param.c:213: warning: the `getwd' function is dangerous and should not be used.
/usr/lib64/afs/libprot.a(ptuser.o): In function `pr_Initialize':
(.text+0xea6): undefined reference to `afs_com_err'
/usr/lib64/afs/libprot.a(ptuser.o): In function `pr_Initialize':
(.text+0x101c): undefined reference to `afs_com_err'
/usr/lib64/afs/libprot.a(ptuser.o): In function `pr_Initialize':
(.text+0x11f7): undefined reference to `afs_error_message'
/usr/lib64/afs/libprot.a(pterror.o): In function `initialize_PT_error_table':
(.text+0x8): undefined reference to `afs_add_to_error_table'
/usr/lib64/libubik.a(uerrors.o): In function `initialize_U_error_table':
(.text+0x8): undefined reference to `afs_add_to_error_table'
/usr/lib64/afs/libauth.a(acfg_errors.o): In function `initialize_ACFG_error_table':
(.text+0x8): undefined reference to `afs_add_to_error_table'
/usr/lib64/afs/libauth.a(ktc_errors.o): In function `initialize_KTC_error_table':
(.text+0x8): undefined reference to `afs_add_to_error_table'
/usr/lib64/librxkad.a(rxkad_errs.o): In function `initialize_RXK_error_table':
(.text+0x8): undefined reference to `afs_add_to_error_table'
collect2: ld returned 1 exit status
make: *** [aklog] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.8046 (%build)


--9jxsPFA5p3P2qPhR--