[OpenAFS-devel] Bizarre linker error with afs-krb5 1.3....

Sam Hartman hartmans@mekinok.com
07 Feb 2002 21:08:07 -0500


>>>>> "Adam" == Adam Thornton <adam@fsf.net> writes:

    Adam> Now I'm trying to build afs-krb5 on a SuSE 7.3 Pro (x86)
    Adam> system.  I've built and installed K5 (I'm using it as a
    Adam> client).

    Adam> After much futzing around I can make it compile.  But then
    Adam> when I try to run aklog, I get:

    Adam> ./aklog: error while loading shared libraries:
    Adam> /usr/local/lib/libkrb5.so.3: undefined symbol: stat

    Adam> Which, as far as it goes, is reasonable.  libkrb5 certainly
    Adam> doesn't provide stat.  But, uh, who does?  What do I need to
    Adam> link against to get stat to resolve?  I don't remember
    Adam> seeing anything like this when building on S/390.


You built krb5 incorrectly.  I think the quick fix is to build both
with -D_REENTRANT and to build with optimization.

I believe 1.2.3 fixes this.