Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I compile a 32 bit apache module for a 64 bit platform?
    text
    copied!<p>I am trying to comple mod_auth_kerb for apache on mac os x 10.5.7. I get no compilation errors, but when apache tries to load it:</p> <p>org.apache.httpd[95092]: httpd: Syntax error on line 160 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): no suitable image found. Did find:\n\t/usr/libexec/apache2/mod_auth_kerb.so: mach-o, but wrong architecture</p> <p>I have tried the following in the make file:</p> <p>ARCHFLAGS='-arch ppc64' CPPFLAGS = -I. -Ispnegokrb5 $(KRB5_CPPFLAGS) $(KRB4_CPPFLAGS) $(DEFS) -mpowerpc64 -mcpu=G5 -mtune=G5 -arch ppc64 LDFLAGS = $(KRB5_LDFLAGS) $(KRB4_LDFLAGS) $(LIB_resolv) -mpowerpc64 -mcpu=G5 -mtune=G5 -arch ppc64 CFLAGS = -mpowerpc64 -mcpu=G5 -mtune=G5 -arch ppc64</p> <p>I have looked in these threads:</p> <p><a href="http://lists.apple.com/archives/unix-porting/2008/Mar/msg00061.html" rel="nofollow noreferrer">http://lists.apple.com/archives/unix-porting/2008/Mar/msg00061.html</a></p> <p><a href="http://objectmix.com/apache/690208-re-mod_auth_kerb-mac-os-x-10-5-client.html" rel="nofollow noreferrer">http://objectmix.com/apache/690208-re-mod_auth_kerb-mac-os-x-10-5-client.html</a></p> <p>I also changed this in the source:</p> <p>from krb5_rc_resolve_full<br> to __KerberosInternal_krb5_rc_resolve_full</p> <p>I cannot get apache to load it and it claims it is the wrong architecture. I think apache is 64 bit from the ground up in this version of mac server so that is probably the problem. I just don't know how to get through it.</p> <p>Line 160 is a red herring in the httpd.conf file (it has ##).</p> <p>I don't know how to compile it correctly and was hoping for help.</p> <p>I have a G5 PPC 64.</p> <p>Thank you.</p> <p>EDIT:</p> <p>What is odd is this:</p> <p>otool -hv mod_auth_kerb.so mod_auth_kerb.so: Mach header magic cputype cpusubtype caps filetype ncmds sizeofcmds flags</p> <p>MH_MAGIC_64 PPC64 ALL 0x00 BUNDLE 10 1328 NOUNDEFS DYLDLINK TWOLEVEL</p> <p>So I don't know what's wrong. </p> <p>I am on the PPC64 and that's what it looks like I have compiled.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload