[OpenAFS] Undefined symbol problem

Derrick J Brashear shadow@dementia.org
Thu, 13 Nov 2003 18:16:34 -0500 (EST)


On Thu, 13 Nov 2003, David Botsch wrote:

> Hi, all.
>
> Working on some code under linux (Rh 7.3 - oafs 1.2.10).
>
> It wasn't compiling, so I wrote a quick piece of test code. The test code
> doesn't compile using:
>
> > gcc -L/usr/lib/afs -lauth test.c
> test.c: In function `main':
> test.c:4: warning: return type of `main' is not `int'
> /tmp/ccObLywC.o: In function `main':
> /tmp/ccObLywC.o(.text+0x2b): undefined reference to `ktc_ListTokens'
> collect2: ld returned 1 exit status

gcc -o test test.c -L/usr/lib/afs -lauth

maybe?