compiling krb5-1.2.8 for OS X Server 10.2.5

Tim Mooney mooney at
Fri Apr 25 15:10:11 EDT 2003

In regard to: Re: compiling krb5-1.2.8 for OS X Server 10.2.5, Alexandra...:

>>Also take a look at the patch to Alpha 2 that I posted to the
>>krb5-bugs list:
>This is not a problem with the MIT Kerberos build system.  The
>problem is that Apple's ld behaves differently than ld on every other

Except Tru64 UNIX, though there you can turn the default behavior off.

>Mac OS X's ld searches for shared libraries in each path and then
>static libraries in each path.  As a result, shared libraries are
>always chosen over static libraries even if there is a static library
>in an earlier search path than the shared library.

This is the same behavior as the linker on Tru64 UNIX version 4.x and
5.x, and trips up a lot of people.  You can get the older, more common
behavior by making sure that


is passed to the linker at link time.

Tim Mooney                              mooney at
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

More information about the krbdev mailing list