From c94f40a23666b5fc47530cccba4ba665651c7792 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Wed, 21 Mar 2007 03:46:50 +0000 Subject: [PATCH] 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? git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@520733 13f79535-47bb-0310-9956-ffa450edef68 --- modules/mappers/mod_so.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/mappers/mod_so.c b/modules/mappers/mod_so.c index b95aba546e..44bed43b69 100644 --- a/modules/mappers/mod_so.c +++ b/modules/mappers/mod_so.c @@ -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); } /* -- 2.40.0