Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: mod_auth_kerb on Mac OS X 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mod_auth_kerb on Mac OS X 10.5



Using the .configure line you gave doesn't work - it will still compile for i386 only.

The -arch switch for nm was helpful: apparently dest_tkt isn't there. However:

$ nm -arch x86_64 -m /System/Library/Frameworks/Kerberos.framework/ Kerberos | grep _krb5_rc_resolve_full
00000000200701ab (__TEXT,__text) external ___KerberosInternal_krb5_rc_resolve_full


Changing the source to call __KerberosInternal_krb5_rc_resolve_full instead of krb5_rc_resolve_full gave me a module which will at least load into apache (if I also ./configure --with-krb4=no and appropriately change the makefile to compile for x86_64).

-Randy


On Mar 24, 2008, at 6:33 AM, Pelle Johansson wrote:

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

_______________________________________________ Do not post admin requests to the list. They will be ignored. Unix-porting mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >mod_auth_kerb on Mac OS X 10.5 (From: Randy Becker <email@hidden>)
 >Re: mod_auth_kerb on Mac OS X 10.5 (From: Pelle Johansson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.