Building Krb5 1.3.6 on Mac OS X

Alexandra Ellwood lxs at MIT.EDU
Fri Jan 21 17:52:17 EST 2005


To build stock krb5 on Mac OS X, try building with 
"LDFLAGS=-Wl,-search_paths_first" as an option to configure.  See 
<http://mailman.mit.edu/pipermail/krbdev/2003/001714.html> for more 
information.

Note that if you build the appl/bsd utilities statically linked 
against your own stock krb5 libraries, you won't be able to share 
tickets with Kerberos for Macintosh (the Kerberos in Mac OS X) 
because KfM uses an in-memory ccache to store tickets which the stock 
krb5 currently doesn't support.

However, you should be able to work around the undefined symbols in 
the appl/bsd programs and link with KfM.  krb5_net_read/write and 
many of the other symbols are just simple BSD networking functions 
which you can copy into the sources of utilities you want to build. 
I'm not sure about krb5_random_confounder(), though.  You'd have to 
look at it.

>John Rudd wrote:
>>
>>  When I try to build on Mac OS X (10.3.7), everything is fine until
>>  lib/rpc/unit-test:
>>
>>  making all in lib/rpc/unit-test...
>>  gcc -L../../../lib -g -O2 -Wall -Wmissing-prototypes -Wcast-qual
>>  -Wcast-align -Wconversion -Wshadow -Wno-comment -pedantic  -o client
>>  client.o rpc_test_clnt.o \
>>          -lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
>>  ld: Undefined symbols:
>>  _krb5_gss_dbg_client_expcreds
>>  _gss_mech_krb5
>>  _gss_mech_krb5_old
>>
>>
>>
>>  But all I really want is rlogin, klogind, rsh, rcp, and krshd.  So, if I
>  > go to the appl/bsd dir and do a make, I get:
>>
>>  gcc -L../../lib -g -O2 -Wall -Wmissing-prototypes -Wcast-qual
>>  -Wcast-align -Wconversion -Wshadow -Wno-comment -pedantic  -o rsh krsh.o
>>  kcmd.o forward.o   -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err
>>  ld: Undefined symbols:
>>  _krb5_net_read
>  > _krb5_random_confounder
>>  _krb5_write_message
>>  _krb_net_read
>>
>>
>>  Anyone know what's going on and how to fix/avoid it?  I did a configure
>>  with "--with-krb4" as its only argument.  It's a pretty vanilla Mac OS X
>>  install, with the apple developer tools (which are what I'm building
>>  with).  If you need more information, just ask.
>>
>
>
>No one has thoughts, comments, suggestions, commiserations?
>________________________________________________
>Kerberos mailing list           Kerberos at mit.edu
>https://mailman.mit.edu/mailman/listinfo/kerberos


Hope this helps,

-- 
--lxs

Alexandra Ellwood <lxs at mit.edu>
MIT Kerberos Development Team
<http://mit.edu/lxs/www/>


More information about the Kerberos mailing list