/usr/local/httpd-2.2.0/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/httpd-2.2.0/include -I/usr/local/httpd-2.2.0/include -I/usr/local/httpd-2.2.0/include -I/usr/local/mysql/include -c -o mod_auth_mysql.lo mod_auth_mysql.c && touch mod_auth_mysql.slo
mod_auth_mysql.c:591: error: syntax error before "mysql_auth_config_rec"
mod_auth_mysql.c:591: error: initializer element is not constant
mod_auth_mysql.c:591: error: (near initialization for `mysql_auth_cmds[0].cmd_data')
[......whole bunch of similar errors...]
mod_auth_mysql.c:675: error: (near initialization for `mysql_auth_cmds[20]')
mod_auth_mysql.c: In function `format_request':
mod_auth_mysql.c:947: warning: pointer/integer type mismatch in conditional expression
apxs:Error: Command failed with rc=65536
Has anyone got 3.0.0 to compile with httpd-2.2.0 ??
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No, it won't compile on Apache 2.2.0. There have been some changes in Apache which make it incompatible with many modules.
We are currently looking at whether we should try to make mod_auth_mysql work on Apache 2.2 or not. It may not be necessary; Apache's new modules can authorize/authenticate against a MySQL database without mod_auth_mysql.
But we haven't made up our mind yet, either.
Jerry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've looked into this further and found a 'mysql driver' for the new DBD framework called apr_dbd_mysql.c. I can compile it along with the other dbd drivers but the resulting httpd build doesn't seem to be aware of it - I get a 'not found' sort of error when I try and reference it in my httpd.conf with 'DBDriver mysql'
Anyone got this working? If not, is there any other way I can auth off MySQL with Apache 2.2?
Ian.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry for the delay in responding. I've been pretty busy.
I haven't actually tried using this module; you might want to check the Apache users mailing list or the newsgroup alt.apache.configuration.
As soon as I get some time I'll be looking again at the 2.2 issue. What we'll need to look into is the difference in functionality and how big the code changes are (we still need to maintain compatibility for Apache 1.x also).
Unfortunatly, I don't have a definite timeframe for this. I haven't even had time to update my test system to Apache 2.2 (or MySQL or anything else) yet.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not yet. We're looking as to whether we should even port this to Apache 2.2. The new _dbd interface module seems to be the way Apache is moving, and would resolve some other problems (such as conflicts between mod_auth_mysql and PHP).
This has been taking a while because we've been working on some other changes to mod_auth_mysql which are quire involved.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm having trouble getting mod_auth_mysql 3.0.0 to work with httpd-2.2.0.
I'm using the following compile command:
/usr/local/httpd-2.2.0/bin/apxs -c -L/usr/lib/mysql -I/usr/local/mysql/include -lmysqlclient -lm -lz mod_auth_mysql.c
And get the this error:
/usr/local/httpd-2.2.0/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/httpd-2.2.0/include -I/usr/local/httpd-2.2.0/include -I/usr/local/httpd-2.2.0/include -I/usr/local/mysql/include -c -o mod_auth_mysql.lo mod_auth_mysql.c && touch mod_auth_mysql.slo
mod_auth_mysql.c:591: error: syntax error before "mysql_auth_config_rec"
mod_auth_mysql.c:591: error: initializer element is not constant
mod_auth_mysql.c:591: error: (near initialization for `mysql_auth_cmds[0].cmd_data')
[......whole bunch of similar errors...]
mod_auth_mysql.c:675: error: (near initialization for `mysql_auth_cmds[20]')
mod_auth_mysql.c: In function `format_request':
mod_auth_mysql.c:947: warning: pointer/integer type mismatch in conditional expression
apxs:Error: Command failed with rc=65536
Has anyone got 3.0.0 to compile with httpd-2.2.0 ??
No, it won't compile on Apache 2.2.0. There have been some changes in Apache which make it incompatible with many modules.
We are currently looking at whether we should try to make mod_auth_mysql work on Apache 2.2 or not. It may not be necessary; Apache's new modules can authorize/authenticate against a MySQL database without mod_auth_mysql.
But we haven't made up our mind yet, either.
Jerry
Thanks Jerry.
I've looked into this further and found a 'mysql driver' for the new DBD framework called apr_dbd_mysql.c. I can compile it along with the other dbd drivers but the resulting httpd build doesn't seem to be aware of it - I get a 'not found' sort of error when I try and reference it in my httpd.conf with 'DBDriver mysql'
Anyone got this working? If not, is there any other way I can auth off MySQL with Apache 2.2?
Ian.
Ian,
Sorry for the delay in responding. I've been pretty busy.
I haven't actually tried using this module; you might want to check the Apache users mailing list or the newsgroup alt.apache.configuration.
As soon as I get some time I'll be looking again at the 2.2 issue. What we'll need to look into is the difference in functionality and how big the code changes are (we still need to maintain compatibility for Apache 1.x also).
Unfortunatly, I don't have a definite timeframe for this. I haven't even had time to update my test system to Apache 2.2 (or MySQL or anything else) yet.
Hello Jerry,
Is there any progress with this issue.
Can we already compile mod_auth_mysql and apache2.2 together?
Thanx, Dimitry
Dimitry,
Not yet. We're looking as to whether we should even port this to Apache 2.2. The new _dbd interface module seems to be the way Apache is moving, and would resolve some other problems (such as conflicts between mod_auth_mysql and PHP).
This has been taking a while because we've been working on some other changes to mod_auth_mysql which are quire involved.
Solution to mod_auth_mysql.c:591: errors
mod_auth_mysql.c uses APR_XtOffsetOf( ) which is deprecated.
See http://apr.apache.org/docs/apr/0.9/group__apr__general.html
I replaced it with APR_OFFSETOF( ) and the errors disappeared.