[OpenAFS-devel] Re: how to use cacheout

Andrew Deason adeason@sinenomine.net
Tue, 31 Aug 2010 23:07:22 -0500


On Tue, 31 Aug 2010 22:09:17 -0400
Jason Edgecombe <jason@rampaginggeek.com> wrote:

> > Try /afs/cs.cmu.edu/misc/afstools/src/afstools-head/util/flushcps.c
> 
> It doesn't build on RHEL5.4 x86_64 with OpenAFS 1.4.11:
> 
> % gcc flushcps.c
> /tmp/ccCasuK9.o: In function `main':
> flushcps.c:(.text+0x359): undefined reference to `rx_Init'
> flushcps.c:(.text+0x35e): undefined reference to 
> `rxnull_NewClientSecurityObject'
> flushcps.c:(.text+0x386): undefined reference to `rx_NewConnection'
> flushcps.c:(.text+0x3b7): undefined reference to `RXAFS_FlushCPS'
> collect2: ld returned 1 exit status
> 
> Any insights?

There's a makefile in that directory, too. From it, it looks like you
need to link with libafsint, libcom_err, librx, liblwp, libsys, and
libutil.

-- 
Andrew Deason
adeason@sinenomine.net