Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Apr 22, 2015 · 1 comment
Open

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

GoogleCodeExporter opened this issue Apr 22, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 7 Nov 2011 at 11:22

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 9 Nov 2011 at 2:58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant