I tried to add the auth_mod_auth (3.0.0) module to my Slackware 13 (apache 2.2 & MySQL 5.0) system.I ran the usual command line for apxs (as mention in the BUILD file)apxs -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.cbut I got the following error:/usr/lib/apr-1.3.12/build-1/libtool --silent --mode=compile i486-slackware-linux-gcc -prefer-pic -O2 -march=i486 -mtune=i686  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1  -I/usr/include/mysql  -c -o mod_auth_mysql.lo mod_auth_mysql.c && touch mod_auth_mysql.slomod_auth_mysql.c:591: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:591: error: initializer element is not constantmod_auth_mysql.c:591: error: (near initialization for 'mysql_auth_cmds[0].cmd_data')mod_auth_mysql.c:595: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:595: error: initializer element is not constantmod_auth_mysql.c:595: error: (near initialization for 'mysql_auth_cmds[1].cmd_data')mod_auth_mysql.c:599: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:599: error: initializer element is not constantmod_auth_mysql.c:599: error: (near initialization for 'mysql_auth_cmds[2].cmd_data')mod_auth_mysql.c:603: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:603: error: initializer element is not constantmod_auth_mysql.c:603: error: (near initialization for 'mysql_auth_cmds[3].cmd_data')mod_auth_mysql.c:607: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:607: error: initializer element is not constantmod_auth_mysql.c:607: error: (near initialization for 'mysql_auth_cmds[4].cmd_data')mod_auth_mysql.c:611: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:611: error: initializer element is not constantmod_auth_mysql.c:611: error: (near initialization for 'mysql_auth_cmds[5].cmd_data')mod_auth_mysql.c:615: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:615: error: initializer element is not constantmod_auth_mysql.c:615: error: (near initialization for 'mysql_auth_cmds[6].cmd_data')mod_auth_mysql.c:619: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:619: error: initializer element is not constantmod_auth_mysql.c:619: error: (near initialization for 'mysql_auth_cmds[7].cmd_data')mod_auth_mysql.c:623: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:623: error: initializer element is not constantmod_auth_mysql.c:623: error: (near initialization for 'mysql_auth_cmds[8].cmd_data')mod_auth_mysql.c:627: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:627: error: initializer element is not constantmod_auth_mysql.c:627: error: (near initialization for 'mysql_auth_cmds[9].cmd_data')mod_auth_mysql.c:631: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:631: error: initializer element is not constantmod_auth_mysql.c:631: error: (near initialization for 'mysql_auth_cmds[10].cmd_data')mod_auth_mysql.c:635: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:635: error: initializer element is not constantmod_auth_mysql.c:635: error: (near initialization for 'mysql_auth_cmds[11].cmd_data')mod_auth_mysql.c:639: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:639: error: initializer element is not constantmod_auth_mysql.c:639: error: (near initialization for 'mysql_auth_cmds[12].cmd_data')mod_auth_mysql.c:643: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:643: error: initializer element is not constantmod_auth_mysql.c:643: error: (near initialization for 'mysql_auth_cmds[13].cmd_data')mod_auth_mysql.c:651: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:651: error: initializer element is not constantmod_auth_mysql.c:651: error: (near initialization for 'mysql_auth_cmds[14].cmd_data')mod_auth_mysql.c:655: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:655: error: initializer element is not constantmod_auth_mysql.c:655: error: (near initialization for 'mysql_auth_cmds[15].cmd_data')mod_auth_mysql.c:659: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:659: error: initializer element is not constantmod_auth_mysql.c:659: error: (near initialization for 'mysql_auth_cmds[16].cmd_data')mod_auth_mysql.c:663: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:663: error: initializer element is not constantmod_auth_mysql.c:663: error: (near initialization for 'mysql_auth_cmds[17].cmd_data')mod_auth_mysql.c:667: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:667: error: initializer element is not constantmod_auth_mysql.c:667: error: (near initialization for 'mysql_auth_cmds[18].cmd_data')mod_auth_mysql.c:671: error: expected expression before 'mysql_auth_config_rec'mod_auth_mysql.c:671: error: initializer element is not constantmod_auth_mysql.c:671: error: (near initialization for 'mysql_auth_cmds[19].cmd_data')mod_auth_mysql.c: In function 'format_request':mod_auth_mysql.c:947: warning: pointer/integer type mismatch in conditional expressionapxs:Error: Command failed with rc=65536Seems like the mysql library do not match what the code expect. I looked around and it seems to be the last available version of the module although is getting old (june 2005).Has anyone made it work with a similar setup? I've been tweaking around for half a day without any success :-(
Mod_Auth_MySQL will not compile under Slackware 13
compiling;mysql;apache httpd