httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] Module Compiles, Won't Load
Date Thu, 18 Nov 2010 14:17:13 GMT
On Thu, Nov 18, 2010 at 9:10 AM, Michael Powe <michael@trollope.org> wrote:
> Hello,
>
> RedHat Linux 64-bit.  IHS 7.0, which is based on Apache 2.2.x and uses
> APR 1.2.
>
> I have a module which compiles on this system but loading fails with
> the error 'wrong ELF class: ELFCLASS64'.
>
> 'file' indicates that this module and other modules in the directory
> are 64-bit.  Other modules load correctly.


You're misreading something, your Apache 2.2 based server is 32-bit
(see apachectl -V) but your compiler creates 64-bit output by default.

Try adding  -Wc,-m32 or  -Wc,-m31 (z/Linux) to your apxs  invocation.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message