[Gluster-users] mod_glusterfs build error on mandriva-2008.1-x86_64
Todd Pfaff
pfaff at mcmaster.ca
Sat May 16 02:48:56 UTC 2009
I've been building and running gluster on a mandriva-2008.1-x86_64
system for a while now. I had encountered a minor problem in the
configure step that was causing the build of the apache mod_glusterfs
to fail. It doesn't matter much to us since we're not currently
using mod_glusterfs.
I did find a workaround to the problem in the past without delving into
the cause of the problem, and that at least allowed the build to run
without any errors. However, I forgot to report the problem to the
gluster mailing list until now when I ran into the problem again today
building the gluster-2.0.1 release. This time I spent a bit more time
finding the exact source of the problem and a proper fix.
On my mandriva-2008.1-x86_64 system:
httpd -V | head -1
Server version: Apache/2.2.8 (Mandriva Linux/PREFORK-6.1mdv2008.1)
During configure this output from httpd -V would produce this:
grep MOD_GLUSTERFS_HTTPD_VERSION config.log
MOD_GLUSTERFS_HTTPD_VERSION='2.2.86.12008'
Here's the necessary fix to configure.ac:
diff configure.ac.orig configure.ac
262c262
< MOD_GLUSTERFS_HTTPD_VERSION=`$HTTPD_BIN_DIR/httpd -V | head -1 | awk
"{print $3}" | sed 's/[[^0-9.]]//g' | sed 's/\(.*\..*\)\..*/\1/'`
---
> MOD_GLUSTERFS_HTTPD_VERSION=`$HTTPD_BIN_DIR/httpd -V | head -1 | awk
'{print $3}' | sed 's/[[^0-9.]]//g' | sed 's/\(.*\..*\)\..*/\1/'`
281c281
< MOD_GLUSTERFS_HTTPD_VERSION=`$HTTPD_MANUAL -V | head -1 | awk "{print $3}"
| sed 's/[[^0-9.]]//g' | sed 's/\(.*\..*\)\..*/\1/'`
---
> MOD_GLUSTERFS_HTTPD_VERSION=`$HTTPD_MANUAL -V | head -1 | awk '{print
$3}' | sed 's/[[^0-9.]]//g' | sed 's/\(.*\..*\)\..*/\1/'`
--
Todd Pfaff <pfaff at mcmaster.ca>
http://www.rhpcs.mcmaster.ca/
More information about the Gluster-users
mailing list