[24369] in Kerberos
Re: Problem building an API program against 1.4.1
daemon@ATHENA.MIT.EDU (Mike Friedman)
Sun Jul 31 16:45:52 2005
Date: Sun, 31 Jul 2005 13:44:09 -0700 (PDT)
From: Mike Friedman <mikef@ack.berkeley.edu>
To: Russ Allbery <rra@stanford.edu>
In-Reply-To: <87ek9ekbn3.fsf@windlord.stanford.edu>
Message-ID: <20050731133350.L22464@malcolm.berkeley.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
cc: kerberos@mit.edu
Errors-To: kerberos-bounces@mit.edu
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sun, 31 Jul 2005 at 12:40 (-0700), Russ Allbery wrote:
> Mike Friedman <mikef@ack.Berkeley.EDU> writes:
>
>> Thanks, that fixed it! I must say, I didn't even know about the -R
>> option to gcc and can't find it in the gcc man page. What does -R do
>> anyway?
>
>> I had just assumed that the '-L/usr/local/kerberos/lib' would be
>> sufficient to tell the linker where to find the libraries. Why did
>> only libk5crypto have a problem and not, for example, libkrb5?
>
> <http://www.eyrie.org/~eagle/notes/rpath.html> tries to explain all
> this. I'm pretty sure it was complaining specifically about k5crypto
> just because it was first and would have had trouble with the others as
> well.
Russ,
Actually, it's a bit scarier than that. When I first had the problem, I
used ldd to see which shared libraries were needed or expected by my
module. And only libk5crypto showed as 'not found'. There was an entry
for libkrb5. However, what I didn't notice was that the latter was the
version in /usr/lib, which comes installed with FreeBSD and is not the MIT
version. That's why I say 'scary', because if not for the missing
libk5crypto, I might never have noticed that I wasn't using the correct
libkrb5 either. Whether or not this would have caused more subtle
problems later I can't really say.
Anyway, thanks for the pointer to info about -R. I now see that -R
appears in the Makefiles used in the MIT K5 build as well.
Mike
_____________________________________________________________________
Mike Friedman System and Network Security
mikef@ack.Berkeley.EDU 2484 Shattuck Avenue
1-510-642-1410 University of California at Berkeley
http://ack.Berkeley.EDU/~mikef http://security.berkeley.edu
_____________________________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQA/AwUBQu04Ha0bf1iNr4mCEQJczACgniFFhu3Z3OLlN+QO+jXhedv2h9MAoN0B
9YEgYX67eXXSxVm87mBm2E3Y
=/lnf
-----END PGP SIGNATURE-----
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos