Hi list, just a report from the installing process under FreeBSD 5.3 (MySQL 4.1/Apache2):
Compilation from the current source failed with:
# /usr/local/apache/bin/apxs -c -L/usr/local/lib/mysql -I/usr/local/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c
:
mod_auth_mysql.c:210:21: crypt.h: No such file or directory
mod_auth_mysql.c: In function `pw_crypted':
mod_auth_mysql.c:704: warning: passing arg 2 of `strcmp' makes pointer from integer without a cast
apxs:Error: Command failed with rc=65536
.
So I tried the port mod_auth_mysql41_ap2 which compiled and installed without errors. However, the line added to httpd.conf needed to be changed from:
Well, offhand, I'd the compilation could not find crypt.h. This is a pretty standard library; I'm surprised it isn't on your system My copy is in /usr/include, and came from the GNU C library.
I would suggest you try to locate the file in your system; if you find it, you will probably need to add the -I option to point to the directory containing the file (and possibly a -L flag for the load library)..
As to mod_auth_mysql41_ap2 - this is a completely separate module, supported by someone else. It started out from our module, but has since been modified by other parties. I can't help you on that one.
Jerry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've made some changes to the next version (due out soon). It will now default to unistd.h, but will have a compile time parameter to include crypt.h instead.
Jerry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi list, just a report from the installing process under FreeBSD 5.3 (MySQL 4.1/Apache2):
Compilation from the current source failed with:
# /usr/local/apache/bin/apxs -c -L/usr/local/lib/mysql -I/usr/local/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c
:
mod_auth_mysql.c:210:21: crypt.h: No such file or directory
mod_auth_mysql.c: In function `pw_crypted':
mod_auth_mysql.c:704: warning: passing arg 2 of `strcmp' makes pointer from integer without a cast
apxs:Error: Command failed with rc=65536
.
So I tried the port mod_auth_mysql41_ap2 which compiled and installed without errors. However, the line added to httpd.conf needed to be changed from:
LoadModule auth_mysql_module modules/mod_auth_mysql.so
to:
LoadModule mysql_auth_module modules/mod_auth_mysql.so
Seems to be a typo... But what caused the compilation error above? Dave.
Dave,
Well, offhand, I'd the compilation could not find crypt.h. This is a pretty standard library; I'm surprised it isn't on your system My copy is in /usr/include, and came from the GNU C library.
I would suggest you try to locate the file in your system; if you find it, you will probably need to add the -I option to point to the directory containing the file (and possibly a -L flag for the load library)..
As to mod_auth_mysql41_ap2 - this is a completely separate module, supported by someone else. It started out from our module, but has since been modified by other parties. I can't help you on that one.
Jerry
Dave,
I just noticed in the Patches area someone had posted a comment about this.
It seems FreeBSD doesn't have a crypt.h - instead it has unistd.h. So, if you change the source code to include the latter file, it should work.
Meanwhile - we'll have to investigate this further.
Jerry
Hi Jerry,
replacing crypt.h with unistd.h works fine. Thanks for the reply.
Dave
Dave,
Thanks for the feedback.
I've made some changes to the next version (due out soon). It will now default to unistd.h, but will have a compile time parameter to include crypt.h instead.
Jerry