[OpenAFS-devel] how to use cacheout

Derrick Brashear shadow@gmail.com
Tue, 31 Aug 2010 23:04:33 -0400


On Tue, Aug 31, 2010 at 10:09 PM, Jason Edgecombe
<jason@rampaginggeek.com> wrote:
> On 08/31/2010 09:29 PM, Jeffrey Hutzelman wrote:
>>
>> --On Tuesday, August 31, 2010 08:05:07 PM -0400 Jason Edgecombe
>> <jason@rampaginggeek.com> wrote:
>>
>>> hi everyone,
>>>
>>> I tried to use src/venus/cacheout.c from the current master, but it
>>> segfaulted. The -help option is next to useless.
>>>
>>> I read that this is a tool to force a fileserver to refresh IP ACL's.
>>
>> At first glance it does appear to be such a tool. =A0I have no idea whet=
her
>> anyone's tried to build or use it lately.
>>
>> 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

that's a rather random gcc invocation.

> /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

so you need librx and libfsint. and probably more, but...