Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

apache2.x failed to install mod_auth_mysql3.0

Help
flown
2006-02-24
2013-04-23
  • flown
    flown
    2006-02-24

    hey guys:
      i try to install mod_auth_mysql recently but failed.
      os: linux-2.4.21-20.EL
      apache: apache2.2.0
      mysql: mysql-5.0.18
      gcc: gcc-3.2.3-42

      here is some error info i gathered:

    [root@localhost mod_auth_mysql-3.0.0]#  /usr/local/apache2/bin/apxs -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm mod_auth_mysql.c
    /usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/usr/include/mysql  -c -o mod_auth_mysql.lo mod_auth_mysql.c && touch mod_auth_mysql.slo
    mod_auth_mysql.c:593: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:593: initializer element is not constant
    mod_auth_mysql.c:593: (near initialization for `mysql_auth_cmds[0].cmd_data')
    mod_auth_mysql.c:593: initializer element is not constant
    mod_auth_mysql.c:593: (near initialization for `mysql_auth_cmds[0]')
    mod_auth_mysql.c:597: initializer element is not constant
    mod_auth_mysql.c:597: (near initialization for `mysql_auth_cmds[1].func')
    mod_auth_mysql.c:597: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:597: initializer element is not constant
    mod_auth_mysql.c:597: (near initialization for `mysql_auth_cmds[1].cmd_data')
    mod_auth_mysql.c:597: initializer element is not constant
    mod_auth_mysql.c:597: (near initialization for `mysql_auth_cmds[1]')
    mod_auth_mysql.c:601: initializer element is not constant
    mod_auth_mysql.c:601: (near initialization for `mysql_auth_cmds[2].func')
    mod_auth_mysql.c:601: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:601: initializer element is not constant
    mod_auth_mysql.c:601: (near initialization for `mysql_auth_cmds[2].cmd_data')
    mod_auth_mysql.c:601: initializer element is not constant
    mod_auth_mysql.c:601: (near initialization for `mysql_auth_cmds[2]')
    mod_auth_mysql.c:605: initializer element is not constant
    mod_auth_mysql.c:605: (near initialization for `mysql_auth_cmds[3].func')
    mod_auth_mysql.c:605: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:605: initializer element is not constant
    mod_auth_mysql.c:605: (near initialization for `mysql_auth_cmds[3].cmd_data')
    mod_auth_mysql.c:605: initializer element is not constant
    mod_auth_mysql.c:605: (near initialization for `mysql_auth_cmds[3]')
    mod_auth_mysql.c:609: initializer element is not constant
    mod_auth_mysql.c:609: (near initialization for `mysql_auth_cmds[4].func')
    mod_auth_mysql.c:609: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:609: initializer element is not constant
    mod_auth_mysql.c:609: (near initialization for `mysql_auth_cmds[4].cmd_data')
    mod_auth_mysql.c:609: initializer element is not constant
    mod_auth_mysql.c:609: (near initialization for `mysql_auth_cmds[4]')
    mod_auth_mysql.c:613: initializer element is not constant
    mod_auth_mysql.c:613: (near initialization for `mysql_auth_cmds[5].func')
    mod_auth_mysql.c:613: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:613: initializer element is not constant
    mod_auth_mysql.c:613: (near initialization for `mysql_auth_cmds[5].cmd_data')
    mod_auth_mysql.c:613: initializer element is not constant
    mod_auth_mysql.c:613: (near initialization for `mysql_auth_cmds[5]')
    mod_auth_mysql.c:617: initializer element is not constant
    mod_auth_mysql.c:617: (near initialization for `mysql_auth_cmds[6].func')
    mod_auth_mysql.c:617: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:617: initializer element is not constant
    mod_auth_mysql.c:617: (near initialization for `mysql_auth_cmds[6].cmd_data')
    mod_auth_mysql.c:617: initializer element is not constant
    mod_auth_mysql.c:617: (near initialization for `mysql_auth_cmds[6]')
    mod_auth_mysql.c:621: initializer element is not constant
    mod_auth_mysql.c:621: (near initialization for `mysql_auth_cmds[7].func')
    mod_auth_mysql.c:621: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:621: initializer element is not constant
    mod_auth_mysql.c:621: (near initialization for `mysql_auth_cmds[7].cmd_data')
    mod_auth_mysql.c:621: initializer element is not constant
    mod_auth_mysql.c:621: (near initialization for `mysql_auth_cmds[7]')
    mod_auth_mysql.c:625: initializer element is not constant
    mod_auth_mysql.c:625: (near initialization for `mysql_auth_cmds[8].func')
    mod_auth_mysql.c:625: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:625: initializer element is not constant
    mod_auth_mysql.c:625: (near initialization for `mysql_auth_cmds[8]')
    mod_auth_mysql.c:629: initializer element is not constant
    mod_auth_mysql.c:629: (near initialization for `mysql_auth_cmds[9].func')
    mod_auth_mysql.c:629: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:629: initializer element is not constant
    mod_auth_mysql.c:629: (near initialization for `mysql_auth_cmds[9].cmd_data')
    mod_auth_mysql.c:629: initializer element is not constant
    mod_auth_mysql.c:629: (near initialization for `mysql_auth_cmds[9]')
    mod_auth_mysql.c:633: initializer element is not constant
    mod_auth_mysql.c:633: (near initialization for `mysql_auth_cmds[10].func')
    mod_auth_mysql.c:633: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:633: initializer element is not constant
    mod_auth_mysql.c:633: (near initialization for `mysql_auth_cmds[10].cmd_data')
    mod_auth_mysql.c:633: initializer element is not constant
    mod_auth_mysql.c:633: (near initialization for `mysql_auth_cmds[10]')
    mod_auth_mysql.c:637: initializer element is not constant
    mod_auth_mysql.c:637: (near initialization for `mysql_auth_cmds[11].func')
    mod_auth_mysql.c:637: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:637: initializer element is not constant
    mod_auth_mysql.c:637: (near initialization for `mysql_auth_cmds[11].cmd_data')
    mod_auth_mysql.c:637: initializer element is not constant
    mod_auth_mysql.c:637: (near initialization for `mysql_auth_cmds[11]')mod_auth_mysql.c:641: initializer element is not constant
    mod_auth_mysql.c:641: (near initialization for `mysql_auth_cmds[12].func')
    mod_auth_mysql.c:641: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:641: initializer element is not constant
    mod_auth_mysql.c:641: (near initialization for `mysql_auth_cmds[12].cmd_data')
    mod_auth_mysql.c:641: initializer element is not constant
    mod_auth_mysql.c:641: (near initialization for `mysql_auth_cmds[12]')
    mod_auth_mysql.c:645: initializer element is not constant
    mod_auth_mysql.c:645: (near initialization for `mysql_auth_cmds[13].func')
    mod_auth_mysql.c:645: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:645: initializer element is not constant
    mod_auth_mysql.c:645: (near initialization for `mysql_auth_cmds[13].cmd_data')
    mod_auth_mysql.c:645: initializer element is not constant
    mod_auth_mysql.c:645: (near initialization for `mysql_auth_cmds[13]')
    mod_auth_mysql.c:653: initializer element is not constant
    mod_auth_mysql.c:653: (near initialization for `mysql_auth_cmds[14].func')
    mod_auth_mysql.c:653: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:653: initializer element is not constant
    mod_auth_mysql.c:653: (near initialization for `mysql_auth_cmds[14].cmd_data')
    mod_auth_mysql.c:653: initializer element is not constant
    mod_auth_mysql.c:653: (near initialization for `mysql_auth_cmds[14]')
    mod_auth_mysql.c:657: initializer element is not constant
    mod_auth_mysql.c:657: (near initialization for `mysql_auth_cmds[15].func')
    mod_auth_mysql.c:657: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:657: initializer element is not constant
    mod_auth_mysql.c:657: (near initialization for `mysql_auth_cmds[15].cmd_data')
    mod_auth_mysql.c:657: initializer element is not constant
    mod_auth_mysql.c:657: (near initialization for `mysql_auth_cmds[15]')
    mod_auth_mysql.c:661: initializer element is not constant
    mod_auth_mysql.c:661: (near initialization for `mysql_auth_cmds[16].func')
    mod_auth_mysql.c:661: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:661: initializer element is not constant
    mod_auth_mysql.c:661: (near initialization for `mysql_auth_cmds[16].cmd_data')
    mod_auth_mysql.c:661: initializer element is not constant
    mod_auth_mysql.c:661: (near initialization for `mysql_auth_cmds[16]')
    mod_auth_mysql.c:665: initializer element is not constant
    mod_auth_mysql.c:665: (near initialization for `mysql_auth_cmds[17].func')
    mod_auth_mysql.c:665: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:665: initializer element is not constant
    mod_auth_mysql.c:665: (near initialization for `mysql_auth_cmds[17].cmd_data')
    mod_auth_mysql.c:665: initializer element is not constant
    mod_auth_mysql.c:665: (near initialization for `mysql_auth_cmds[17]')
    mod_auth_mysql.c:669: initializer element is not constant
    mod_auth_mysql.c:669: (near initialization for `mysql_auth_cmds[18].func')
    mod_auth_mysql.c:669: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:669: initializer element is not constant
    mod_auth_mysql.c:669: (near initialization for `mysql_auth_cmds[18].cmd_data')
    mod_auth_mysql.c:669: initializer element is not constant
    mod_auth_mysql.c:669: (near initialization for `mysql_auth_cmds[18]')
    mod_auth_mysql.c:673: initializer element is not constant
    mod_auth_mysql.c:673: (near initialization for `mysql_auth_cmds[19].func')
    mod_auth_mysql.c:673: syntax error before "mysql_auth_config_rec"
    mod_auth_mysql.c:673: initializer element is not constant
    mod_auth_mysql.c:673: (near initialization for `mysql_auth_cmds[19].cmd_data')
    mod_auth_mysql.c:673: initializer element is not constant
    mod_auth_mysql.c:673: (near initialization for `mysql_auth_cmds[19]')
    mod_auth_mysql.c:675: initializer element is not constant
    mod_auth_mysql.c:675: (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

    I had no way now.
    any ideas what can I do?
    thanks in advance for any help.

     
    • Jerry Stuckle
      Jerry Stuckle
      2006-02-24

      Hi, Flown,

      Sorry, but we're not compatible with Apache 2.2 because of some changes made to Apache at that level.

      We're currently looking at how to make it work again, but there isn't a lot of documentation available on the changes in Apache 2.2 right now.

      We'll have something up as soon as we can get it working.

      Sorry.

      Jerry

       
    • AxeMan-YVR
      AxeMan-YVR
      2007-10-31

      Solution to mod_auth_mysql.c:593: syntax error before "mysql_auth_config_rec"

      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.