[OpenAFS] amanda-afs - cellconfig.o

Claude Arnold arnold@picard.ups-tlse.fr
Wed, 09 Apr 2003 09:16:08 +0200 (CEST)


En réponse à "Todd M. Lewis" <utoddl@email.unc.edu>:

> The resolver library (libresolv.a for static linking or libresolv.so for
> 
> the shared object) is not part of amanda or openafs; it's part of your
> 
> system. Adding "-lresolv" to your command line tells the linker to use
> 
> /lib/libreslov.so or /usr/lib/libresolv.a as appropriate.  The symbol 
> it's looking for is in that library; the compiler found its name in 
> resolv.h, but the linker wants to find the thing itself, and that's in
> 
> the library.


OK, 

1. I see that /usr/afsws/lib/libresolv.a is a link :
/usr/afsws/lib/libresolv.a -> /usr/lib/libresolv.a

2. I edit: 

   /amanda-afs/Makefile.conf
   /amanda-afs/estimate-afs/Makefile
   /amanda-afs/common/Makefile
   /amanda-afs/volset/Makefile 

and add to AFS_LIBDIR the two following path: /lib, /usr/lib so that  I have now:

AFS_LIBDIR=-L/lib -L/usr/lib -L$(AFS_PREFIX)/lib -L$(AFS_PREFIX)/lib/afs

and it will compile.
 

Thank you very much for your help

 Cheers of course !



Claude Arnold
Laboratoire Emile Picard - UMR 5580
Université Paul Sabatier, 118 rte de Narbonne, Toulouse, 31062 Cedex 4
Tél: 05.61.55.62.26, Fax: 05.61.55.82.00