Question about Mac OS X 10.1

Park, Jae Hyen jpark7 at exchange.calstatela.edu
Fri Feb 15 15:45:01 EST 2002


Greetings,
 
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. 
 
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. 
My spec are the following:
- Mac OS X 10.1 (workstation version) with Developer Tools instaleld.
- File System - UFS Volume
 
Things that I did so far:
 
1) ./configure --with-ccopts=-I/usr/include/Kerberos
     Inside /usr/include/Kerberos directory, there are couple of symbolic
links to Kerberos.Framework. I had added couple more .. KerberosPreferences,
KerberosWrappers, KerberosComErr etc.
Without this entry, cc can not locate Kerberos header files that come with
Mac OS, I guess. 
 
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. 
 
3) Then, I types: make but, the following error occurred:
 
<excerpt>
...
....
making all in lib/krb5util...
making all in lib/kdb...
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
keytab.c:97: undefined type, found `krb5_key_data'
keytab.c:98: undefined type, found `krb5_db_entry'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic
mode
keytab.c: In function `krb5_ktkdb_get_entry':
keytab.c:97: `krb5_key_data' undeclared (first use in this function)
keytab.c:97: (Each undeclared identifier is reported only once
keytab.c:97: for each function it appears in.)
keytab.c:97: `key_data' undeclared (first use in this function)
keytab.c:98: `krb5_db_entry' undeclared (first use in this function)
keytab.c:98: parse error before `db_entry'
keytab.c:109: `db_entry' undeclared (first use in this function)
keytab.c:109: `n' undeclared (first use in this function)
keytab.c:109: `more' undeclared (first use in this function)
make[2]: *** [keytab.o] Error 1
make[1]: *** [all-recurse] Error 1
make: *** [all-recurse] Error 1

4) Well, guess what.. with tears in my eyes, I tried something that I
shoudn't do... I modified the source. 
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:
 
my tracing: 
 
- keytab.c has a line #include "kdb_kt.h"
- Inside "kdb_kt.h" has a line that include "kdb.h"
- "kdb.h" has data_type definitions, but there is a problem:
 
<excerpt>
...
....
#if !defined(macintosh) && !defined(_MSDOS) && !defined(_WIN32) &&
!defined(__MACH__)
 
// --- data definition ---
 
#endif
...
....
 
 
So, I deleted "#if !defined(...) and #endif" from kdb.h and make it again.
 
5) then, I passed the error message above and it compiled more, but still an
error occurred. In this time, "Linking Error".
<excerpt>
...
....
ranlib libgssrpc.a
ranlib: file: libgssrpc.a(xdr_float.o) has no symbols
rm -f ../../lib/libgssrpc.a
(cd ../../lib && ln -s rpc/libgssrpc.a .)
making all in lib/rpc/unit-test...
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
cc: -flat_namespace: linker input file unused since linking not done
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
cc: -flat_namespace: linker input file unused since linking not done
cc -flat_namespace -L../../../lib -o client client.o rpc_test_clnt.o \
        -lgssrpc -ldyn -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err  
/usr/bin/ld: Undefined symbols:
_krb5_gss_dbg_client_expcreds
_gss_mech_krb5
_gss_mech_krb5_old
make[3]: *** [client] Error 1
make[2]: *** [all-recurse] Error 1
make[1]: *** [all-recurse] Error 1
make: *** [all-recurse] Error 1

I couldn't do anymore since then. It occurred with both krb5-1.2.3 and
krb5-1.2.4-beta.
 
Please, someone give me a hand with this problem. I will be really
appreciated it. 
 
Thanks in advance...
 

Jae H. Park 
Software Integration Engineer 
Academic Technology Support 
California State University, Los Angeles 
Tel. (323)343-2778    Fax. (323)343-4575 
e-mail: jpark7 at calstatela.edu 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/krbdev/attachments/20020215/dff4b842/attachment.htm


More information about the krbdev mailing list