Building from source
lowecg2004 Aug 5, 2009 6:55 AMHi Jean-Frederic,
I'm trying to build mod_cluster native components from the sources. I have Fedora core 11 (x64).
I've successfully built and installed httpd 2.2.22 to location /usr/local/apache2.
However, I'm unable to build mod_cluster from the trunk (r2522):
mkdir mod_cluster_build cd mod_cluster_build svn co http://anonsvn.jboss.org/repos/jbossnative/trunk/mod_cluster/ mod_cluster <snip /> Checked out revision 2522. cd mod_cluster/native/advertise/ sh buildconf Creating configure ... ./configure --with-apache=/usr/local/apache2 configure: WARNING: unrecognized options: --with-apache checking for Apache httpd installation... configure: error: Please use --with-apxs=FILE
From the error message I also tried this:
./configure --with-apache=/usr/local/apache2 --with-apxs=/home/hive/mod_cluster_build/apache/httpd-2.2.12/support/apxs configure: WARNING: unrecognized options: --with-apache checking for Apache httpd installation... APXS is /home/hive/mod_cluster_build/apache/httpd-2.2.12/support/apxs apxs_support is false configure: error: mod_cluster module need a valid apxs
To validate apxs, I can run the following directly:
/home/hive/mod_cluster_build/apache/httpd-2.2.12/support/apxs Usage: apxs -g [-S <var>=<val>] -n <modname> apxs -q [-S <var>=<val>] <query> ... apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>] [-Wl,<flags>] [-p] <files> ... apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ... apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
Is there anything else I should be doing?
PS - I'm not sure of the criteria for applying the AJP patch but I tried it anyway and it was rejected:
pwd /home/hive/mod_cluster_build/apache/httpd-2.2.12/modules/proxy patch -p0 < /home/hive/mod_cluster_build/mod_cluster_build/mod_cluster/native/mod_proxy_cluster/mod_proxy_ajp.patch patching file mod_proxy_ajp.c Hunk #1 FAILED at 550. Hunk #2 FAILED at 607. Hunk #3 FAILED at 628. 3 out of 3 hunks FAILED -- saving rejects to file mod_proxy_ajp.c.rej