Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305823 - net-fs/openafs-1.4.x needs to link libafsauthent.so against libresolv
Summary: net-fs/openafs-1.4.x needs to link libafsauthent.so against libresolv
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
: 305883 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-19 06:55 UTC by Sébastien Fabbro (RETIRED)
Modified: 2010-08-21 22:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
osconf patch for lresolv (014_all_lresolv.patch,2.87 KB, patch)
2010-08-21 16:19 UTC, Andrej Filipcic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien Fabbro (RETIRED) gentoo-dev 2010-02-19 06:55:15 UTC
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.
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2010-02-20 05:51:41 UTC
*** Bug 305883 has been marked as a duplicate of this bug. ***
Comment 2 Andrej Filipcic 2010-08-21 12:30:02 UTC
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.
Comment 3 Andrej Filipcic 2010-08-21 16:19:51 UTC
Created attachment 243901 [details, diff]
osconf patch for lresolv

The patch adds lresolv when building openafs shared libs.
Comment 4 SpanKY gentoo-dev 2010-08-21 22:09:38 UTC
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