Menu

httpd-2.2.0 compile fail

Help
porjo
2005-12-02
2013-04-23
  • porjo

    porjo - 2005-12-02

    I'm having trouble getting mod_auth_mysql 3.0.0 to work with httpd-2.2.0.

    I'm using the following compile command:

    /usr/local/httpd-2.2.0/bin/apxs -c -L/usr/lib/mysql -I/usr/local/mysql/include -lmysqlclient -lm -lz mod_auth_mysql.c

    And get the this error:

    /usr/local/httpd-2.2.0/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/httpd-2.2.0/include  -I/usr/local/httpd-2.2.0/include   -I/usr/local/httpd-2.2.0/include  -I/usr/local/mysql/include  -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')

    [......whole bunch of similar errors...]

    mod_auth_mysql.c:675: error: (near initialization for `mysql_auth_cmds[20]')
    mod_auth_mysql.c: In function `format_request':
    mod_auth_mysql.c:947: warning: pointer/integer type mismatch in conditional expression
    apxs:Error: Command failed with rc=65536

    Has anyone got 3.0.0 to compile with httpd-2.2.0 ??

     
    • Jerry Stuckle

      Jerry Stuckle - 2005-12-03

      No, it won't compile on Apache 2.2.0.  There have been some changes in Apache which make it incompatible with many modules.

      We are currently looking at whether we should try to make mod_auth_mysql work on Apache 2.2 or not.  It may not be necessary; Apache's new modules can authorize/authenticate against a MySQL database without mod_auth_mysql.

      But we haven't made up our mind yet, either.

      Jerry

       
    • porjo

      porjo - 2006-01-03

      Thanks Jerry.

      I've looked into this further and found a 'mysql driver' for the new DBD framework called apr_dbd_mysql.c. I can compile it along with the other dbd drivers but the resulting httpd build doesn't seem to be aware of it - I get a 'not found' sort of error when I try and reference it in my httpd.conf with 'DBDriver mysql'

      Anyone got this working? If not, is there any other way I can auth off MySQL with Apache 2.2?

      Ian.

       
    • Jerry Stuckle

      Jerry Stuckle - 2006-01-19

      Ian,

      Sorry for the delay in responding.  I've been pretty busy.

      I haven't actually tried using this module; you might want to check the Apache users mailing list or the newsgroup alt.apache.configuration.

      As soon as I get some time I'll be looking again at the 2.2 issue.  What we'll need to look into is the difference in functionality and how big the code changes are (we still need to maintain compatibility for Apache 1.x also).

      Unfortunatly, I don't have a definite timeframe for this.  I haven't even had time to update my test system to Apache 2.2 (or MySQL or anything else) yet.

       
    • Dimitry

      Dimitry - 2006-04-18

      Hello Jerry,

      Is there any progress with this issue.
      Can we already compile mod_auth_mysql and apache2.2 together?

      Thanx, Dimitry

       
    • Jerry Stuckle

      Jerry Stuckle - 2006-04-22

      Dimitry,

      Not yet.  We're looking as to whether we should even port this to Apache 2.2.  The new _dbd interface module seems to be the way Apache is moving, and would resolve some other problems (such as conflicts between mod_auth_mysql and PHP).

      This has been taking a while because we've been working on some other changes to mod_auth_mysql which are quire involved.

       
    • AxeMan-YVR

      AxeMan-YVR - 2007-10-31

      Solution to mod_auth_mysql.c:591: errors

      mod_auth_mysql.c uses APR_XtOffsetOf( ) which is deprecated.

      See http://apr.apache.org/docs/apr/0.9/group__apr__general.html

      I replaced it with APR_OFFSETOF( ) and the errors disappeared.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.