September 2006

Compile Errors with Mod_auth_mysql and Apache 2.2

by damonp on September 15, 2006

in SysAdmin

Building a new server today I had a problem compiling mod_auth_mysql 3.0 on Apache 2.2.3.

[admin@atlas mod_auth_mysql-3.0.0]# apxs -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c
/www/build/libtool –silent –mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/www/include -I/www/include -I/www/include -I/usr/include/mysql -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’)
… snip …

Error not very desciptive. Nothing appears missing included or linked. Google turns up almost nothing. Finally, a similar error on Google. I couldn’t get the patch to work, but with a little manual patching was able to get it to compile through apxs.

My patch here: mod_auth_mysql-httpd-2.2.patch

Popularity: 2%

{ 4 comments }