[OpenAFS] amanda-afs - cellconfig.o

Neulinger, Nathan nneul@umr.edu
Tue, 8 Apr 2003 09:17:30 -0500


You don't "link" resolv.h. That's a header file that gets included.

Add -lresolv to link the resolver library.



------------------------------------------------------------
Nathan Neulinger                       EMail:  nneul@umr.edu
University of Missouri - Rolla         Phone: (573) 341-4841
Computing Services                       Fax: (573) 341-4216


> -----Original Message-----
> From: Claude Arnold [mailto:arnold@picard.ups-tlse.fr]=20
> Sent: Tuesday, April 08, 2003 9:14 AM
> To: openafs-info@openafs.org
> Subject: [OpenAFS] amanda-afs - cellconfig.o
>=20
>=20
>=20
> Hi,
> =20
> I work with suse 8.1, kernel 2.4.19 and openafs-1.2.8.
> I want install amanda-afs but during comilation I have the=20
> following errors:
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> make -C common
> make[1]: Entering directory `/usr/local/packages/amanda-afs/common'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/usr/local/packages/amanda-afs/common'
> make -C afs_estimate
> make[1]: Entering directory=20
> `/usr/local/packages/amanda-afs/afs_estimate'
> gcc -o afs_est -g -Wall -I.. -I. -I/usr/include=20
> -I/usr/afsws/include -O  -Wall
> afs_estimate.o  -L/usr/afsws/lib -L/usr/afsws/lib/afs=20
> -lvolser -ldir -laudit
> /usr/afsws/lib/afs/vlib.a -lsys -lvldb -lubik -lauth -lcmd=20
> -lrxkad -ldes
> -lrxstat -lrx -llwp -lacl -lsys -lcom_err -lkauth -lusd
> /usr/afsws/lib/afs/util.a -liberty =20
> /usr/afsws/lib/afs/libauth.a(cellconfig.o): In function=20
> `afsconf_GetAfsdbInfo':
> /usr/local/packages/openafs-1.2.8/src/auth/cellconfig.c:662:=20
> undefined reference
> to `__res_search'
> /usr/local/packages/openafs-1.2.8/src/auth/cellconfig.c:669:=20
> undefined reference
> to `__dn_expand'
> /usr/local/packages/openafs-1.2.8/src/auth/cellconfig.c:678:=20
> undefined reference
> to `__dn_expand'
> /usr/local/packages/openafs-1.2.8/src/auth/cellconfig.c:704:=20
> undefined reference
> to `__dn_expand'
> collect2: ld returned 1 exit status
> make[1]: *** [afs_est] Error 1
> make[1]: Leaving directory=20
> `/usr/local/packages/amanda-afs/afs_estimate'
> make: *** [afs_estimate] Error 2
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20
> The res_search and dn_expand functions belong to the resolv.h=20
> header file
> When I link resolv.h the same errors appear. Moreover when=20
> compiling openeafs
> resolv.h is used.
>=20
> Can someone help me ?
>=20
> Thanks a lot, =20
>=20
>=20
> Claude Arnold
> Laboratoire Emile Picard - UMR 5580
> Universit=E9 Paul Sabatier, 118 rte de Narbonne, Toulouse, 31062 Cedex =
4
> T=E9l: 05.61.55.62.26, Fax: 05.61.55.82.00
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>=20