Björn Gernert | 22 Mar 2012 20:47
Picon
Picon

Apache 2.4.x

Hello!

 

I would like to know if there is a way to compile suPHP with Apache 2.4.x?

I am ending up with the following error-message:

 

mod_suphp.c:789: error: expected “=”, “,”, “;”, “asm” or “__attribute__” before “suphp_handlers”

mod_suphp.c:798: error: expected “=”, “,”, “;”, “asm” or “__attribute__” before “suphp_handlers”

 

All works fine if I compile it against Apache 2.2.x.

 

Thanks for your help.

_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp
Joe Gillotti | 27 Mar 2012 06:33
Favicon
Gravatar

Re: Apache 2.4.x

Björn,

I also get error messages when building against the latest Apache 2.4.x along with the latest APR/APR-util

This is partly due to the suPHP autoconf scripts always choosing to try to build a module for Apache 1.x (which changes in 2.4.x no longer make possible, hence your error message) and due to the location of the apr.h files changing.

I've attached a patch (use `patch -Np1 -d suphp-0.7.1 < fix.diff`) which lets you compile/install it cleanly, and I'm using the following configure command (see how I added further paths for the apr related headers)

CPPFLAGS=-I/opt/comp/dest/include/apr-1 ./configure --prefix=/opt/comp/dest --exec-prefix=/opt/comp/dest --with-apxs=/opt/comp/dest/bin/apxs --with-apr=/opt/comp/dest/bin/apr-1-config

Best Regards,
Joe Gillotti

On 03/22/2012 03:47 PM, Björn Gernert wrote:

Hello!

 

I would like to know if there is a way to compile suPHP with Apache 2.4.x?

I am ending up with the following error-message:

 

mod_suphp.c:789: error: expected “=”, “,”, “;”, “asm” or “__attribute__” before “suphp_handlers”

mod_suphp.c:798: error: expected “=”, “,”, “;”, “asm” or “__attribute__” before “suphp_handlers”

 

All works fine if I compile it against Apache 2.2.x.

 

Thanks for your help.



_______________________________________________ suPHP mailing list suPHP-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.org https://lists.marsching.com/mailman/listinfo/suphp
Attachment (fix.diff): text/x-diff, 2564 bytes
_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp

Gmane