<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=804155218-15022002>Greetings,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=804155218-15022002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=804155218-15022002>My name is Jae Park
and I am a novice in Kerberos (in fact, Unix in general). The reason I
am sending this e-mail is to say "thanks for this wonderful
tool" for Mac and ask a question about the problem I am having.
If anyone can answer me this question, I will do anything
to promote Kerberos implementation for other people.
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=804155218-15022002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=804155218-15022002>The problem is that
I can not compile krb-1.2.3 or krb-1.2.4.beta under Mac OS X 10.1 (Darwin 1.4 on
PPC) workstation (not server version). Sadly, I don't have access to Mac OS X 10
server. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=804155218-15022002>My spec are the
following:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=804155218-15022002>- Mac OS X 10.1
(workstation version) with Developer Tools instaleld.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=804155218-15022002>- File System -
UFS Volume</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=804155218-15022002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=804155218-15022002>Things that I did so
far:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=804155218-15022002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=804155218-15022002>1) ./configure
--with-ccopts=-I/usr/include/Kerberos</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=804155218-15022002> Inside /usr/include/Kerberos
directory, there are couple of symbolic links to Kerberos.Framework. I had added
couple more .. KerberosPreferences, KerberosWrappers, KerberosComErr
etc.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=804155218-15022002>Without this entry,
cc can not locate Kerberos header files that come with Mac OS, I guess.
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=804155218-15022002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=804155218-15022002></SPAN></FONT><FONT
face=Arial size=2><SPAN class=804155218-15022002>2) then, after creating
Makefile, I had included option '-flat_namespace' as cc option in Makefile
generated by configure script, as indicated in Mac OS X Bug report. Also, I had
corrected libdes425.dylib to libdes524 as indicated in Mac OS X bug
report. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=804155218-15022002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=804155218-15022002>3) Then, I types:
make but, the following error occurred:</SPAN></FONT></DIV><SPAN
class=804155218-15022002>
<DIV><SPAN class=804155218-15022002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial
size=2><excerpt></FONT></SPAN></DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial size=2></FONT></SPAN><FONT
face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><FONT face=Arial size=2></FONT>
<DIV><SPAN class=804155218-15022002></SPAN><SPAN class=804155218-15022002><FONT
face=Arial size=2>...</FONT></SPAN></DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial
size=2>....</FONT></SPAN></DIV><FONT face=Arial size=2>making all in
lib/krb5util...<BR>making all in lib/kdb...<BR>cc -flat_namespace
-DKRB5_DNS_LOOKUP_KDC=1 -DKRB5_DNS_LOOKUP=1 -DHAVE_UNISTD_H=1 -DHAVE_SRAND=1
-DHAVE_SRANDOM=1 -DHAVE_UMASK=1 -DKRB5_KRB4_COMPAT -I../../include
-I./../../include -I../../include/krb5 -I./../../include/krb5
-I/usr/include/Kerberos -c keytab.c<BR>keytab.c:97: undefined type, found
`krb5_key_data'<BR>keytab.c:98: undefined type, found
`krb5_db_entry'<BR>cpp-precomp: warning: errors during smart preprocessing,
retrying in basic mode<BR>keytab.c: In function
`krb5_ktkdb_get_entry':<BR>keytab.c:97: `krb5_key_data' undeclared (first use in
this function)<BR>keytab.c:97: (Each undeclared identifier is reported only
once<BR>keytab.c:97: for each function it appears in.)<BR>keytab.c:97:
`key_data' undeclared (first use in this function)<BR>keytab.c:98:
`krb5_db_entry' undeclared (first use in this function)<BR>keytab.c:98: parse
error before `db_entry'<BR>keytab.c:109: `db_entry' undeclared (first use in
this function)<BR>keytab.c:109: `n' undeclared (first use in this
function)<BR>keytab.c:109: `more' undeclared (first use in this
function)<BR>make[2]: *** [keytab.o] Error 1<BR>make[1]: *** [all-recurse] Error
1<BR>make: *** [all-recurse] Error 1<BR></DIV></FONT>
<DIV><SPAN class=804155218-15022002><FONT face=Arial size=2>4) Well, guess
what.. with tears in my eyes, I tried something that I shoudn't do... I modified
the source. </FONT></SPAN></DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial size=2>I thought the errors
showed above is something that (maybe) data type were not defined or visible
during compilation. So, I traced down to a point where:</FONT></SPAN></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=804155218-15022002></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=804155218-15022002>my tracing:
</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=804155218-15022002></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=804155218-15022002>- keytab.c has
a line </SPAN><SPAN class=804155218-15022002>#include
"kdb_kt.h"</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=804155218-15022002>- Inside
"kdb_kt.h" has a line that include "kdb.h"</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=804155218-15022002>- "kdb.h" has
data_type definitions, but there is a problem:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=804155218-15022002></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=804155218-15022002></SPAN></FONT></FONT><FONT face=Arial><FONT
size=2><SPAN class=804155218-15022002><excerpt></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=804155218-15022002>
<DIV><SPAN class=804155218-15022002></SPAN><SPAN class=804155218-15022002><FONT
face=Arial size=2>...</FONT></SPAN></DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial
size=2>....</FONT></SPAN></DIV></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=804155218-15022002>#if
!defined(macintosh) && !defined(_MSDOS) && !defined(_WIN32)
&& !defined(__MACH__)</SPAN></FONT></FONT></DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial size=2>// --- data
definition ---</FONT></SPAN></DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial
size=2>#endif</FONT></SPAN></DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial size=2>
<DIV><SPAN class=804155218-15022002></SPAN><SPAN class=804155218-15022002><FONT
face=Arial size=2>...</FONT></SPAN></DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial
size=2>....</FONT></SPAN></DIV>
<DIV><SPAN class=804155218-15022002></SPAN> </DIV>
<DIV><SPAN class=804155218-15022002></SPAN> </DIV></FONT></SPAN></DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial size=2>So, I deleted "#if
!defined(...) and #endif" from kdb.h and make it again.</FONT></SPAN></DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial size=2>5) then, I
passed the error message above and it compiled more, but still an error
occurred. In this time, "Linking Error".</FONT></SPAN></DIV>
<DIV><SPAN class=804155218-15022002></SPAN><SPAN class=804155218-15022002><FONT
face=Arial size=2><excerpt></FONT></SPAN></DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial
size=2>...</FONT></SPAN></DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial
size=2>....</FONT></SPAN></DIV>
<DIV><SPAN class=804155218-15022002><FONT face=Arial size=2>ranlib
libgssrpc.a<BR>ranlib: file: libgssrpc.a(xdr_float.o) has no symbols<BR>rm -f
../../lib/libgssrpc.a<BR>(cd ../../lib && ln -s rpc/libgssrpc.a
.)<BR>making all in lib/rpc/unit-test...<BR>cc -flat_namespace
-DKRB5_DNS_LOOKUP_KDC=1 -DKRB5_DNS_LOOKUP=1 -DPOSIX_SIGNALS=1
-DKRB5_KRB4_COMPAT -I../../../include -I./../../../include
-I../../../include/krb5 -I./../../../include/krb5 -I. -I/usr/include/Kerberos -c
client.c<BR>cc: -flat_namespace: linker input file unused since linking not
done<BR>cc -flat_namespace -DKRB5_DNS_LOOKUP_KDC=1 -DKRB5_DNS_LOOKUP=1
-DPOSIX_SIGNALS=1 -DKRB5_KRB4_COMPAT -I../../../include
-I./../../../include -I../../../include/krb5 -I./../../../include/krb5 -I.
-I/usr/include/Kerberos -c rpc_test_clnt.c<BR>cc: -flat_namespace: linker input
file unused since linking not done<BR>cc -flat_namespace -L../../../lib -o
client client.o rpc_test_clnt.o \<BR>
-lgssrpc -ldyn -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err <BR>/usr/bin/ld:
Undefined
symbols:<BR>_krb5_gss_dbg_client_expcreds<BR>_gss_mech_krb5<BR>_gss_mech_krb5_old<BR>make[3]:
*** [client] Error 1<BR>make[2]: *** [all-recurse] Error 1<BR>make[1]: ***
[all-recurse] Error 1<BR>make: *** [all-recurse] Error 1<BR></FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><SPAN class=804155218-15022002>I couldn't do
anymore since then. It occurred with both krb5-1.2.3 and
krb5-1.2.4-beta.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=804155218-15022002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=804155218-15022002>Please,
someone give me a hand with this problem. I will be really appreciated it.
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=804155218-15022002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=804155218-15022002>Thanks in
advance...</SPAN></FONT></DIV></SPAN>
<DIV><FONT face=Arial size=2><SPAN
class=804155218-15022002></SPAN></FONT> </DIV>
<P><FONT face=Arial size=2>Jae H. Park</FONT> <BR><FONT face=Arial
size=2>Software Integration Engineer</FONT> <BR><FONT face=Arial size=2>Academic
Technology Support</FONT> <BR><FONT face=Arial size=2>California State
University, Lo</FONT><FONT face=Arial size=2>s</FONT><FONT face=Arial size=2>
Angeles</FONT> <BR><FONT face=Arial size=2>Tel. (323)343-2778
Fax. (323)343-4575</FONT> <BR><FONT face=Arial size=2>e-mail:
jpark7@calstatela.edu</FONT> </P>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>