[38401] in Kerberos
Re: undefined reference krb5_c_fx_cf2_simple
daemon@ATHENA.MIT.EDU (r l)
Sun Dec 23 20:17:13 2018
To: Greg Hudson <ghudson@mit.edu>, <kerberos@mit.edu>
From: r l <rainer.laatsch@t-online.de>
Message-ID: <8fea9380-026c-08d3-2c6a-d3ba66455f2a@t-online.de>
Date: Sun, 23 Dec 2018 23:15:44 +0100
MIME-Version: 1.0
In-Reply-To: <21709b0e-98c9-3292-9160-4305d2953bdd@mit.edu>
Content-Language: en-US
Content-Type: text/plain; charset="utf-8"
Errors-To: kerberos-bounces@mit.edu
Content-Transfer-Encoding: 8bit
Reversing the order of -lkrb and -lk5crypto solved it.
Greg, manythanks to you.
Best wishes for christmas and a happy new year to all from cologne!
Best regards,
Rainer
--------------------------------------------------------------------------------------
On 12/23/18 6:24 PM, Greg Hudson wrote:
> On 12/23/18 3:11 AM, r l wrote:
>> undefined reference to `krb5_c_fx_cf2_simple'
>> I searched the whole source for it using find ... | grep
> It is defined in src/lib/crypto/krb/cf2.c.
>
>> gcc -o gssklog gssklog.o gssklog_afs.o \
>> gssklog_gss.o gssklog_comm.o \
>> -Wl,--noinhibit-exec,-rpath,:/usr/lib:/lib -L/usr/afsws/lib
>> -L/usr/afsws/lib/afs -lprot -lubik -lauth -lcmd -lsys -lrxkad -lrx -llwp
>> /usr/afsws/lib/libdes.a /usr/afsws/lib/afs/util.a
>> /usr/afsws/lib/afs/libafscom_err.a \
>> \
>> -L/opt/krb5/lib -lgssapi_krb5 -l gssrpc -lcom_err -lk5crypto
>> -lkrb5 -lkrb5support -ldl strlcat.o -lresolv -lnsl
> I notice this link line is putting -lk5crypto before -lkrb5, which is
> backwards. I'm not sure it should matter, but depending on the platform
> it might, especially if there's a very old (1.6 or earlier) version of
> libk5crypto somewhere on the system.
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos