Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Mod_auth_mysql |
|
Author |
|
ecourt
Joined: 23 Nov 2012 Posts: 3 Location: KY USA
|
Posted: Fri 23 Nov '12 22:55 Post subject: Mod_auth_mysql |
|
|
I have an website that I need to move to a new server.
usually not a big problem, but I have several pages that use a custom version of mod_auth_mysql.
the existing server CentOS4, and apache 1.3, and it compiled it fine.
The new server is centos 6.3, apache 2.2, and I've been trying to compile it with no luck.
My authentication requires a little different config on the password hash, so I just tweeked it a bit, but I've tried compiling the module with and without the changes, with the same results.
here's the output...
Code: | # apxs -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wformat-security -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_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.slo
mod_auth_mysql.c: In function 'pw_md5':
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c:822: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness
/usr/include/httpd/util_md5.h:42: note: expected 'const unsigned char *' but argument is of type 'char *'
mod_auth_mysql.c: In function 'str_format':
mod_auth_mysql.c:893: warning: format '%d' expects type 'int', but argument 7 has type 'long int'
/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o mod_auth_mysql.la -L/usr/lib/mysql -lmysqlclient -lm -lz -rpath /usr/lib64/httpd/modules -module -avoid-version mod_auth_mysql.lo
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
|
Any help is appreciated. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 04 Mar '13 17:28 Post subject: |
|
|
Quote: |
cannot find -lmysqlclient
|
it does not find the libs in /usr/include/mysql
Another path? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
|
|
|
|
|