Hello,
I've never compiled/built/installed any Apache module before, and I just can't seem to get it working on ArchLinux.
I got the source code from here:
http://sourceforge.net/projects/modauth
Then I tried doing this...
Code:
apxs -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c
And I get this...
Quote:
/usr/share/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -march=x86-64 -mtune=generic -O2 -pipe -DLINU X=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/incl ude -I/usr/include/mysql -c -o mod_auth_mysql.lo mod_auth_mysql.c && touch mod_auth_mysql.slo mod_auth_mysql.c:591:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:595:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:599:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:603:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:607:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:611:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:615:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:619:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:623:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:627:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:631:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:635:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:639:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:643:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:651:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:655:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:659:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:663:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:667:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c:671:2: error: expected expression before âmysql_auth_config_recâ mod_auth_mysql.c: In function âformat_requestâ: mod_auth_mysql.c:947:51: warning: pointer/integer type mismatch in conditional expression apxs:Error: Command failed with rc=65536
|
Ideally, I would eventually like to modify the mod_auth_mysql.c source code so I can append a salt/padding to the end of the hashes (that mod_auth_mysql reads from the database), but I will be happy if I can just install the damn thing.
I've googled like crazy, and I cannot find a solution. If anybody can figure this out, much appreciated, I wish I installed another OS and I haven't been able to figure this out for weeks.