]> granicus.if.org Git - apache/commitdiff
Too many users are baffled by this message. Some days even the devs are ;-)
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 21 Mar 2007 03:46:50 +0000 (03:46 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 21 Mar 2007 03:46:50 +0000 (03:46 +0000)
Votes to backport to 2.2 and 2.0?

New resulting message is

bin/httpd -f /dev/null -C "LoadModule ftp_module ../apache22/modules/mod_ftp.so"

Syntax error in -C/-c directive:
API module structure 'ftp_module' in file /usr/local/apache22/modules/mod_ftp.so
is garbled - expected signature 41503230 but saw 41503232 - perhaps this is not
an Apache module DSO, or was compiled for a different Apache version?

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@520733 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_so.c

index b95aba546e7d611bc49dd1d318c69935d6aee18e..44bed43b69b760f820479df0da8465018ddf9c7d 100644 (file)
@@ -268,9 +268,12 @@ static const char *load_module(cmd_parms *cmd, void *dummy,
      *
      */
     if (modp->magic != MODULE_MAGIC_COOKIE) {
-        return apr_pstrcat(cmd->pool, "API module structure `", modname,
-                          "' in file ", szModuleFile, " is garbled -"
-                          " perhaps this is not an Apache module DSO?", NULL);
+        return apr_psprintf(cmd->pool, "API module structure '%s' in file %s "
+                            "is garbled - expected signature %08lx but saw "
+                            "%08lx - perhaps this is not an Apache module DSO, "
+                            "or was compiled for a different Apache version?",
+                            modname, szModuleFile, 
+                            MODULE_MAGIC_COOKIE, modp->magic);
     }
 
     /*