[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Apache cannot start up

From: Jing Jiang <jjiang_at_telus.net>
Date: 2004-07-04 04:00:26 CEST

    cat >> confdefs.h <<\EOF
#define BLOWFISH_CRYPT 0
EOF

    echo "$ac_t""cannot check" 1>&6

else
  cat > conftest.$ac_ext <<EOF
#line 1213 "configure"
#include "confdefs.h"

main() {
#if HAVE_CRYPT
    char salt[25], answer[70];

    salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0';
salt[5]='7'; salt[6]='$'; salt[7]='\0';
    strcat(salt,"rasmuslerd");
    strcpy(answer,salt);
    strcpy(&answer[16],"O............gl95GkTKn53Of.H4YchXl5PwvvW.5ri");
    exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
#else
        exit(0);
#endif
}
EOF
if { (eval echo configure:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
&& test -s conftest && (./conftest; exit) 2>/dev/null
then

    cat >> confdefs.h <<\EOF
#define BLOWFISH_CRYPT 1
EOF

    echo "$ac_t""yes" 1>&6

else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*

    cat >> confdefs.h <<\EOF
#define BLOWFISH_CRYPT 0
EOF

    echo "$ac_t""no" 1>&6

fi
rm -fr conftest*
fi

echo $ac_n "checking for Apache module support via DSO through APXS""...
$ac_c" 1>&6
echo "configure:1257: checking for Apache module support via DSO through
APXS" >&5
# Check whether --with-apxs or --without-apxs was given.
if test "${with_apxs+set}" = set; then
  withval="$with_apxs"

    if test "$withval" = "yes"; then
        withval=apxs
    fi
    APXS_ON=1
    APXS="$withval"
    APXS_LDFLAGS="@MYSQL_LFLAGS@ @MYSQL_LIBS@"
    APACHE_INCLUDE="-I`$APXS -q INCLUDEDIR`"
    INSTALL_IT="\$(APXS) -i -a -n auth_mysql libauth_mysql.so"
    CFLAGS_SHLIB=`perl -V:cccdlflags | cut -d\' -f2`
    LDFLAGS_SHLIB=`perl -V:lddlflags | cut -d\' -f2`
    LDFLAGS_SHLIB_EXPORT=`perl -V:ccdlflags | cut -d\' -f2`
    STRONGHOLD=

        cat >> confdefs.h <<\EOF
#define HAVE_AP_COMPAT_H 1
EOF

    echo "$ac_t""yes" 1>&6

else

    echo "$ac_t""no" 1>&6

fi

else

    echo "$ac_t""no" 1>&6

fi

echo $ac_n "checking for Apache module support via DSO through APACI""...
$ac_c" 1>&6
echo "configure:1291: checking for Apache module support via DSO through
APACI" >&5
# Check whether --with-shared-apache or --without-shared-apache was given.
if test "${with_shared_apache+set}" = set; then
  withval="$with_shared_apache"

        if test "$withval" = "yes"; then
          # Apache's default directory
          withval=/usr/local/etc/httpd
        fi
        DSO_APACI_ON=1
#define HAVE_AP_COMPAT_H 1
EOF

    echo "$ac_t""yes" 1>&6

else

    echo "$ac_t""no" 1>&6

fi

echo $ac_n "checking for Apache module support via DSO through APACI""...
$ac_c" 1>&6
echo "configure:1291: checking for Apache module support via DSO through
APACI" >&5
# Check whether --with-shared-apache or --without-shared-apache was given.
if test "${with_shared_apache+set}" = set; then
  withval="$with_shared_apache"

        if test "$withval" = "yes"; then
          # Apache's default directory
  withval="$with_shared_apache"

        if test "$withval" = "yes"; then
          # Apache's default directory
          withval=/usr/local/etc/httpd
        fi
        DSO_APACI_ON=1
        if test "$withval" != "no"; then
          if test -f $withval/src/include/httpd.h; then
            APACHE_INCLUDE="-I$withval/src/include -I$withval/src/os/unix"
            APACHE_TARGET=$withval/src/modules/auth_mysql
                if test ! -d $APACHE_TARGET; then
                        mkdir $APACHE_TARGET
                fi
                CFLAGS_SHLIB=`perl -V:cccdlflags | cut -d\' -f2`
                LDFLAGS_SHLIB=`perl -V:lddlflags | cut -d\' -f2`
                LDFLAGS_SHLIB_EXPORT=`perl -V:ccdlflags | cut -d\' -f2`
            INSTALL_IT="mkdir -p $APACHE_TARGET; cp mod_auth_mysql.*
*.module $APACHE_TARGET; cp config.h $APACHE_TARGET/auth_mysql_config.h; cp
apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp apMakefile.libdir
$APACHE_TARGET/Makefile.libdir"
            echo "$ac_t""yes - Shared Apache 1.3.x" 1>&6
                STRONGHOLD=
                if test -f $withval/src/include/ap_compat.h; then
                        cat >> confdefs.h <<\EOF
#define HAVE_AP_COMPAT_H 1
EOF

                else
                if test -f $withval/src/include/compat.h; then

        if test "$withval" = "yes"; then
          # Apache's default directory
          withval=/usr/local/etc/httpd
        fi
        DSO_APACI_ON=1
        if test "$withval" != "no"; then
          if test -f $withval/src/include/httpd.h; then
            APACHE_INCLUDE="-I$withval/src/include -I$withval/src/os/unix"
            APACHE_TARGET=$withval/src/modules/auth_mysql
                if test ! -d $APACHE_TARGET; then
                        mkdir $APACHE_TARGET
                fi
                CFLAGS_SHLIB=`perl -V:cccdlflags | cut -d\' -f2`
                LDFLAGS_SHLIB=`perl -V:lddlflags | cut -d\' -f2`
                LDFLAGS_SHLIB_EXPORT=`perl -V:ccdlflags | cut -d\' -f2`
            INSTALL_IT="mkdir -p $APACHE_TARGET; cp mod_auth_mysql.*
*.module $APACHE_TARGET; cp config.h $APACHE_TARGET/auth_mysql_config.h; cp
apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp apMakefile.libdir
$APACHE_TARGET/Makefile.libdir"
            echo "$ac_t""yes - Shared Apache 1.3.x" 1>&6
                STRONGHOLD=
                if test -f $withval/src/include/ap_compat.h; then
                        cat >> confdefs.h <<\EOF
#define HAVE_AP_COMPAT_H 1
EOF

                else
                if test -f $withval/src/include/compat.h; then
                        cat >> confdefs.h <<\EOF
#define HAVE_OLD_COMPAT_H 1
EOF

                fi
                fi
      else
            echo "$ac_t""no" 1>&6
            { echo "configure: error: Invalid Apache directory - unable to
find httpd.h under $withval/src/include" 1>&2; exit 1; }
          fi
        fi

else
    APXS_ON=1
    APXS="$withval"
    APXS_LDFLAGS="@MYSQL_LFLAGS@ @MYSQL_LIBS@"
    APACHE_INCLUDE="-I`$APXS -q INCLUDEDIR`"
    INSTALL_IT="\$(APXS) -i -a -n auth_mysql libauth_mysql.so"
    CFLAGS_SHLIB=`perl -V:cccdlflags | cut -d\' -f2`
    LDFLAGS_SHLIB=`perl -V:lddlflags | cut -d\' -f2`
    LDFLAGS_SHLIB_EXPORT=`perl -V:ccdlflags | cut -d\' -f2`
    STRONGHOLD=

        cat >> confdefs.h <<\EOF
#define HAVE_AP_COMPAT_H 1
EOF

    echo "$ac_t""yes" 1>&6

else

    echo "$ac_t""no" 1>&6

fi

When I started Apache, I got the following message
/usr/sbin/apachectl restart
httpd: module "mod_auth_mysql.c" is not compatible with this version of
Apache (found 20020628, need 20020903).
Please contact the vendor for the correct version.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 5 20:19:26 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.