[OpenAFS] Problems building openafs-1.3.80 on linux 2.6 kernel
Derrick J Brashear
shadow@dementia.org
Wed, 6 Apr 2005 11:22:14 -0400 (EDT)
On Wed, 6 Apr 2005, Andy Malato wrote:
> ! > ! > in src/cf/osconf.m4 I changed :
> ! > ! >
> ! > ! > XLIBS="${LIB_AFSDB}"
> ! > ! >
> ! > ! > to:
> ! > ! >
> ! > ! > XLIBS="-lresolv ${LIB_AFSDB}"
> ! > !
> ! > ! oh, LIB_AFSDB probably included -lresolv already.
> ! > !
> ! > ! But, was -lresolv in the link line for the link where you got the error?
> cc -O -I/home/noderestore/install/afs/openafs-1.3.80/src/config -I. -I.
> -I/home/noderestore/install/afs/openafs-1.3.80/include
> -I/home/noderestore/install/afs/openafs-1.3.80/include/afs
> -I/home/noderestore/install/afs/openafs-1.3.80/include/rx
> -I/home/noderestore/install/afs/openafs-1.3.80
> -I/home/noderestore/install/afs/openafs-1.3.80/src
> -I/home/noderestore/install/afs/openafs-1.3.80/src -g -O2
> -D_LARGEFILE64_SOURCE -o copyauth copyauth.o libauth.a
> /home/noderestore/install/afs/openafs-1.3.80/lib/libsys.a
> /home/noderestore/install/afs/openafs-1.3.80/lib/librxkad.a
> /home/noderestore/install/afs/openafs-1.3.80/lib/libdes.a
> /home/noderestore/install/afs/openafs-1.3.80/lib/librx.a
> /home/noderestore/install/afs/openafs-1.3.80/lib/libsys.a
> /home/noderestore/install/afs/openafs-1.3.80/lib/liblwp.a
> /home/noderestore/install/afs/openafs-1.3.80/lib/util.a
Is
copyauth: copyauth.o ${LIBS}
$(CC) $(CFLAGS) -o copyauth copyauth.o ${LIBS} ${XLIBS}
So if you put -lresolv in XLIBS and it didn't work, you put it in the
wrong XLIBS, or didn't reconfigure afterwards, or something...
because it certainly wasn't in XLIBS.