#5 Compile on FreeBSD 5.3

closed
Jerry Stuckle
None
5
2005-06-23
2005-03-20
Anonymous
No

http://c0re.23.nu/c0de/misc/mod_auth_mysql-2.9.0-ap2-
freebsd53.patch

I had problems compiling http://heanet.dl.sourceforge.net/
sourceforge/modauthmysql/mod_auth_mysql-2.9.0.tar.gz
on FreeBSD 5.3 with Apache 2. This patch helped.

--md@hudora.de

--- mod_auth_mysql-2.9.0/mod_auth_mysql.c Fri Feb 25 22:22:
23 2005
+++ mod_auth_mysql-2.9.0-md/mod_auth_mysql.c Sun Mar
20 09:47:18 2005
@@ -207,7 +207,8 @@
#include "apr_strings.h"
#include "apr_sha1.h"
#include "apr_base64.h"
- #include "crypt.h"
+// on FreeBSD 5.3 apache 2.0.53 there was no crypt.h, but unistd.h
worked fine
+ #include "unistd.h"
#define LOG_ERROR(lvl, stat, rqst, msg) \ ap_log_rerror (APLOG_MARK, lvl, stat, rqst, msg)
#define LOG_ERROR_1(lvl, stat, rqst, msg, parm) \

Discussion

  • Jerry Stuckle
    Jerry Stuckle
    2005-03-25

    Logged In: YES
    user_id=1049703

    Thanks for letting us know about this. We don't have
    FreeBSD here, so were unaware of the problem.

    It does seem unistd.h has generally replaced crypt.h for the
    crypt() function. In the next release we're going to change
    mod_auth_mysql to use unistd.h by default, with a
    compile-time option to include crypt.h instead.

    Jerry

     
  • Jerry Stuckle
    Jerry Stuckle
    2005-03-25

    • assigned_to: nobody --> jstuckle
     
  • Jerry Stuckle
    Jerry Stuckle
    2005-06-23

    • status: open --> closed
     
  • Jerry Stuckle
    Jerry Stuckle
    2005-06-23

    Logged In: YES
    user_id=1049703

    We have changed the code in Version 3.0.0 use unistd.h by
    default, with a compile time option to include crypt.h instead.

    Thanks for the info and the patch!

    Jerry