Theoderich / mod-auth-token

Automatically exported from code.google.com/p/mod-auth-token
Apache License 2.0
1 stars 0 forks source link

compiling on a 64 bit system with 32 bit apache #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
After hours of searching I ended up trying this to compile the module on 64 bit 
debian 6 (squeeze) using a 32 bit apache as a part of the XAMPP stack 
(apachefriends)

What steps will reproduce the problem?
1. ./configure CFLAGS="-m32" LDFLAGS="-m32" CXXFLAGS="-m32" CPPFLAGS="-m32" 
--with-apxs=/opt/lampp/bin/apxs
2. make check
3. make install
It finishes fine, however when I try to stop apache (/opt/lampp/lampp 
stopapache)
it reports back :

Failed loading /opt/lampp/modules/mod_auth_token.so: 
/opt/lampp/modules/mod_auth_token.so: wrong ELF class: ELFCLASS64

which means that somewhere it is not building for 32 bit but rather 64 bit.

What version of the product are you using? On what operating system?

this is with both versions of mod-auth-token.

Please provide any additional information below.

I think using XAMPP could also be a problem, but after downloading xampp-dev I 
could at least finally compile it, but it still reports the wrong ELF so I must 
be missing a parameter for ./configure somewhere.

Since it would be much easier, I would love a link to the 32 bit version of 
mod_auth_token.so. I'm pretty sure this would solve my problem, but i'm still 
curious on how to actually compile it for 32 bit so 32bit apache can actually 
load the module.

Any assistance would be appreciated :)

Original issue reported on code.google.com by Elevator...@gmail.com on 7 Nov 2011 at 11:22

GoogleCodeExporter commented 8 years ago
CentOS 5.6 64bit

[root@server1 mod_auth_token]# ./configure CFLAGS="-m32" LDFLAGS="-m32" 
CXXFLAGS="-m32" CPPFLAGS="-m32" --with-apxs=/opt/lampp/bin/apxs
configure: error: cannot find install-sh or install.sh in "." "./.." "./../.."
[root@server1 mod_auth_token]#

Original comment by VaLi...@gmail.com on 9 Nov 2011 at 2:58