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
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp
diff -u --recursive suphp-0.7.1/configure.ac suphp-0.7.1-fixed/configure.ac
--- suphp-0.7.1/configure.ac 2009-03-14 13:58:11.000000000 -0400
+++ suphp-0.7.1-fixed/configure.ac 2012-03-27 00:22:45.282086238 -0400
@@ -241,7 +241,7 @@
# Conditionally include UserGroup support
AM_CONDITIONAL([COND_APUSERGROUP], [test \( x"$SETID_MODE" = xparanoid \) -o \( x"$SETID_MODE" = xforce \) ])
-AC_CONFIG_FILES([Makefile src/Makefile src/apache/Makefile src/apache2/Makefile])
+AC_CONFIG_FILES([Makefile src/Makefile src/apache2/Makefile])
AC_OUTPUT
if test "$APXS" = "/notfound/"; then
diff -u --recursive suphp-0.7.1/src/Makefile.am suphp-0.7.1-fixed/src/Makefile.am
--- suphp-0.7.1/src/Makefile.am 2008-03-29 09:02:36.000000000 -0400
+++ suphp-0.7.1-fixed/src/Makefile.am 2012-03-27 00:23:10.262087138 -0400
@@ -1,13 +1,10 @@
AM_CXXFLAGS=-DOPT_CONFIGFILE=\"${sysconfdir}/suphp.conf\"
-if COND_AP13
- MAYBE_AP = apache
-endif
if COND_AP20
MAYBE_AP = apache2
endif
-SUBDIRS = $(MAYBE_AP)
-DIST_SUBDIRS = apache apache2
+SUBDIRS = apache2
+DIST_SUBDIRS = apache2
sbin_PROGRAMS = suphp
diff -u --recursive suphp-0.7.1/src/Makefile.in suphp-0.7.1-fixed/src/Makefile.in
--- suphp-0.7.1/src/Makefile.in 2009-03-14 14:08:17.000000000 -0400
+++ suphp-0.7.1-fixed/src/Makefile.in 2012-03-27 00:22:58.958086739 -0400
@@ -214,10 +214,9 @@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AM_CXXFLAGS = -DOPT_CONFIGFILE=\"${sysconfdir}/suphp.conf\"
-@COND_AP13_TRUE@MAYBE_AP = apache
@COND_AP20_TRUE@MAYBE_AP = apache2
-SUBDIRS = $(MAYBE_AP)
-DIST_SUBDIRS = apache apache2
+SUBDIRS = apache2
+DIST_SUBDIRS = apache2
suphp_SOURCES = API.cpp API.hpp API_Helper.cpp API_Helper.hpp API_Linux.cpp API_Linux.hpp API_Linux_Logger.cpp API_Linux_Logger.hpp Application.cpp Application.hpp CommandLine.cpp CommandLine.hpp Configuration.cpp Configuration.hpp Environment.cpp Environment.hpp Exception.cpp Exception.hpp File.cpp File.hpp GroupInfo.cpp GroupInfo.hpp IOException.cpp IOException.hpp IniFile.cpp IniFile.hpp IniSection.cpp IniSection.hpp KeyNotFoundException.cpp KeyNotFoundException.hpp Logger.cpp Logger.hpp LookupException.cpp LookupException.hpp OutOfRangeException.cpp OutOfRangeException.hpp PathMatcher.hpp PathMatcher.cpp ParsingException.cpp ParsingException.hpp PointerException.cpp PointerException.hpp SecurityException.cpp SecurityException.hpp SmartPtr.hpp SoftException.cpp SoftException.hpp SystemException.cpp SystemException.hpp UserInfo.cpp UserInfo.hpp Util.cpp Util.hpp
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp