Re: AIX build fails with missing symbol .krb5_c_make_random_key

Ben Huntsman <[email protected]>
Newsgroups gmane.comp.file-systems.openafs.devel
Message-ID <MWHPR0701MB367464822B7EBD9766B78BB7A7699@MWHPR0701MB3674.namprd07.prod.outlook.com>
Hi Daria-
   I just re-ran configure using that option, and it does print out that it uses /opt/freeware/bin/krb5-config, however it still does not add the option -lk5crypto to the Kerberos build flags.

Thank you.

-Ben

________________________________
From: Ben Huntsman <[email protected]>
Sent: Sunday, August 14, 2022 1:03 PM
To: Daria Phoebe Brashear <[email protected]>
Cc: Ken Hornstein <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OpenAFS-devel] AIX build fails with missing symbol .krb5_c_make_random_key

I did not, I just used the option --with-krb5=/opt/freeware

Shouldn't that be enough since krb5-config is in /opt/freeware/bin?

Thank you!

-Ben

________________________________
From: Daria Phoebe Brashear <[email protected]>
Sent: Sunday, August 14, 2022 12:57 PM
To: Ben Huntsman <[email protected]>
Cc: Ken Hornstein <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OpenAFS-devel] AIX build fails with missing symbol .krb5_c_make_random_key

did you tell it to use krb5-config, and where it was?
PATH_KRB5_CONFIG=/path/to/krb5-config ./configure ...


On Sun, Aug 14, 2022 at 3:53 PM Ben Huntsman ([email protected])
<[email protected]> wrote:
>
> Hi Ken!
>    No worries, but thank you for your pointers so far!
>
>    It is interesting that krb5-config --libs does indeed show k5crypto:
>
> $ krb5-config --libs
> -L/opt/freeware/lib64 -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib -L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-brtl -lpthreads -lkrb5 -lk5crypto -lcom_err
>
>
> It would appear that the output from that is not being used by OpenAFS though, because in the original error I also didn't see the -blibpath... arguments nor references to /opt/freeware/lib64.
>
> Thanks!
>
> -Ben
>
> ________________________________
> From: Ken Hornstein <[email protected]>
> Sent: Sunday, August 14, 2022 12:10 PM
> To: Ben Huntsman <[email protected]>
> Cc: [email protected] <[email protected]>
> Subject: Re: [OpenAFS-devel] AIX build fails with missing symbol .krb5_c_make_random_key
>
> >Ah, yes, I believe you are right.  That library does exist on my
> >system also, and I manually added it to Makefile.config and the build
> >continued.  The question is then, why didn't ./configure detect it and
> >add it?
>
> I can't speak for that; I lack the energy at this time to go delving
> into the configure script for OpenAFS.  The traditional way that Kerberos
> options are detected by autoconf (as Benjamin Kaduk alluded to) is
> you give it a path to a krb5-config script which will tell you the
> right compile and link-time options to build a Kerberos program.
>
> --Ken



--
Daria Phoebe Brashear
AuriStor, Inc
dariaphoebe.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.