22 mar 2008 kl. 20.46 skrev Randy Becker:
I've been looking around for a while now, and have been unable to
compile mod_auth_kerb (<http://modauthkerb.sourceforge.net/>) such
that it will load into Apache. I've resolved the initial (-arch)
issues that building other apache modules under Leopard seem to
have ("mach-o, but wrong architecture"), but am running into an
issue that is similar to one that was reported here in 2004 re:
mod_auth_kerb ("[newbie] trying mod_auth_kerb") and missing
(Kerberos) symbols:
httpd: Syntax error on line 65 of /private/etc/apache2/httpd.conf:
Cannot load /usr/libexec/apache2/mod_auth_kerb.so into server:
dlopen(/usr/libexec/apache2/mod_auth_kerb.so, 10): Symbol not
found: _dest_tkt\n Referenced from: /usr/libexec/apache2/
mod_auth_kerb.so\n Expected in: dynamic lookup\n
Configuring with --with-krb4=no causes apache to fail to find a
different symbol: _krb5_rc_resolve_full
Any ideas?
I'm not sure, but it might be that you're configuring to the 32 bit
environment but compiling for 64 bits. You should try to have -arch
x86_64 in your CFLAGS or CPPFLAGS while configuring. I.e.:
$ ./configure CFLAGS='-g -O2 -arch x86_64'
That's probably generally better than sedding the makefile anyway.
I believe the correct nm line would be:
$ nm -arch x86_64 -m /usr/lib/libkrb4.dylib | grep dest_tkt
Exit 1
--
Pelle Johansson