You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2007/03/21 04:46:53 UTC

svn commit: r520733 - /httpd/httpd/trunk/modules/mappers/mod_so.c

Author: wrowe
Date: Tue Mar 20 20:46:50 2007
New Revision: 520733

URL: http://svn.apache.org/viewvc?view=rev&rev=520733
Log:
Too many users are baffled by this message.  Some days even the devs are ;-)

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?

Modified:
    httpd/httpd/trunk/modules/mappers/mod_so.c

Modified: httpd/httpd/trunk/modules/mappers/mod_so.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_so.c?view=diff&rev=520733&r1=520732&r2=520733
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_so.c (original)
+++ httpd/httpd/trunk/modules/mappers/mod_so.c Tue Mar 20 20:46:50 2007
@@ -268,9 +268,12 @@
      *
      */
     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);
     }
 
     /*