[OpenAFS-devel] silly question

Charles Clancy security@xauth.net
Mon, 8 Jul 2002 01:07:27 -0500 (CDT)


Yeah -- because you're not linking against any AFS libraries.  #including
the header files only gives you access to the function prototypes -- not
the actual functions.

Try:

gcc -o test.o -c test.c
gcc -o test test.o /usr/lib/libafsauthent.a /usr/lib/libafsrpc.a -lpthread
-lresolv

Question to developers: any plans to distribute shared libraries too?  I
remember asking a while back before things were autoconfed, and people
seemed to think it was too annoying.  How about now?

[  t charles clancy  ]-[  tclancy@uiuc.edu  ]-[  uiuc.edu/~tclancy  ]

On Sat, 6 Jul 2002, Renato Arruda wrote:

> That makes it compile, but there is a very strange link problem... Sorry for
> the silly problems... and thanks for the help...
> []'s
> Renato
>
> [rarruda@res140b-205 org]$ gcc temp.c -o temp
> /tmp/ccZaFnEY.o: In function `main':
> /tmp/ccZaFnEY.o(.text+0xc): undefined reference to `ka_Init'
> collect2: ld returned 1 exit status
> [rarruda@res140b-205 org]$
>
> On Friday 05 July 2002 10:32, you wrote:
> > Try #include <afs/param.h> before <afs/kautils.h>
> >
> > -derek
> >
> > Renato Arruda <rla9216@rit.edu> writes:
> > > #include <afs/kautils.h>
> > > main()
> > > {
> > >         ka_Init( 0 );
> > >         return 0;
> > > }
> > > I have the devel package instaled for redhat 7.3, but when compiling gcc
> > > complains with the the error message at the end. I looked at all the
> > > files involved and there doesn't seem to be any problems there at all.
> > > since i am not extremely familiar with development using the openafs
> > > libraries, i was just wondering if anyone could give me some insight or
> > > some pointers...
> > >
> > > Thanks,
> > > []'s
> > > Renato Arruda
> > >
> > >
> --
> Renato Arruda <rla9216@rit.edu> http://www.rarruda.org/
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
>