Hi, sci-physics/root-5.26.00-r1 will fail checking for shared openafs libraries. This simple program is built during configure time and fails: # cat > testafs.c <<EOF extern int ka_GetAFSTicket (); int main() { ka_GetAFSTicket (); return 0; } EOF # gcc conftest.c -o conftest -lafsauthent /usr/lib64/libafsauthent.so: undefined reference to `__res_search' /usr/lib64/libafsauthent.so: undefined reference to `__dn_expand Adding simply -lresolv works, but I suspect an as-needed linking problem in the gentoo patches.
*** Bug 305883 has been marked as a duplicate of this bug. ***
Adding "-lresolv" to openafs shared libraries could be done by patching the src/cf/osconf.m4 (or ./configure). MT_LIBS should be changed to MT_LIBS="-lpthread -lresolv" for all *_linux*) cases. The question is although if this is the correct solution, so I will ask the openafs developers first.
Created attachment 243901 [details, diff] osconf patch for lresolv The patch adds lresolv when building openafs shared libs.
man, openafs sucks. ive added that patch to the patchset with openafs-1.4.12.1-r1. http://sources.gentoo.org/gentoo/src/patchsets/openafs/patches/1.4/014_all_lresolv.patch?rev=1.1