Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 11858 invoked from network); 6 Nov 2010 22:30:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Nov 2010 22:30:32 -0000 Received: (qmail 4876 invoked by uid 500); 6 Nov 2010 22:31:03 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 4811 invoked by uid 500); 6 Nov 2010 22:31:03 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 4803 invoked by uid 99); 6 Nov 2010 22:31:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Nov 2010 22:31:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.242.35.75] (HELO dns-factory.at) (194.242.35.75) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Nov 2010 22:30:55 +0000 Received: from [10.202.65.180] normw@gknw.net [124.183.152.230] by dns-factory.at with NetMail SMTP Agent $Revision: 8582 $ on Novell NetWare via secured & encrypted transport (TLS); Sat, 06 Nov 2010 23:30:24 +0100 Message-ID: <4CD5D6F9.2050403@gknw.net> Date: Sun, 07 Nov 2010 09:30:17 +1100 From: NormW User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5 MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: svn commit r1032073 - NetWare build 'problems' References: <4CD5CA71.7010406@gknw.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, Diffs to util_expr_eval.c and util_expr_scan.c below fix issues noted and now get apache2 nlm. Thx Norm On 7/11/2010 9:10 AM, Stefan Fritsch wrote: > Hi, > > On Sun, 7 Nov 2010, NormW wrote: >> See a needed tweak similar to the following for the root build file: > > ... > >> Also 'needed' is the following minor reshuffle in util_expr_eval.c: > > ... > > Commited. Thanks. > >> And, see the following, but not yet solved: >>> Compiling server/util_expr_eval.c >>> ### mwccnlm Compiler: >>> # File: server\util_expr_eval.c >>> # -------------------------------- >>> # 86: ap_expr_string_func_t *func = info->node_arg1; >>> # Error: ^ >>> # illegal implicit conversion from 'const void *const ' to >>> # 'char * (*)(struct *, const void *, const char *)' >>> ### mwccnlm Compiler: >>> # 189: ap_expr_list_func_t *func = info->node_arg1; >>> # Error: ^ >>> # illegal implicit conversion from 'const void *const ' to >>> # 'struct apr_array_header_t * (*)(struct *, const void *, const char >>> *)' >>> >>> Compiling server/util_expr_scan.c >>> ### mwccnlm Compiler: >>> # File: server\util_expr_scan.c >>> # -------------------------------- >>> # 1141: char c[2] = { yytext[0], '\0' }; >>> # Error: ^ >>> # illegal constant expression >>> ### mwccnlm Compiler: >>> # 1446: char c[2] = { yytext[0], '\0' }; >>> # Error: ^ >>> # illegal constant expression > > > Please try this patch: > > --- server/util_expr_scan.c (Revision 1032160) > +++ server/util_expr_scan.c (Arbeitskopie) > @@ -1138,9 +1138,8 @@ > YY_RULE_SETUP > #line 198 "util_expr_scan.l" > { > - char c[2] = { yytext[0], '\0' }; > char *msg = apr_psprintf(yyextra->pool, > - "Invalid character in variable name '%s'", c); > + "Invalid character in variable name '%c'", yytext[0]); > PERROR(msg); > } > YY_BREAK > @@ -1443,8 +1442,7 @@ > YY_RULE_SETUP > #line 336 "util_expr_scan.l" > { > - char c[2] = { yytext[0], '\0' }; > - char *msg = apr_psprintf(yyextra->pool, "Parse error near '%s'", c); > + char *msg = apr_psprintf(yyextra->pool, "Parse error near '%c'", > yytext[0]); > PERROR(msg); > } > YY_BREAK > --- server/util_expr_eval.c (Revision 1032163) > +++ server/util_expr_eval.c (Arbeitskopie) > @@ -83,7 +83,7 @@ > static const char *ap_expr_eval_string_func(ap_expr_eval_ctx *ctx, const > ap_expr *info, > const ap_expr *arg) > { > - ap_expr_string_func_t *func = info->node_arg1; > + ap_expr_string_func_t *func = (ap_expr_string_func_t *)info->node_arg1; > const void *data = info->node_arg2; > > AP_DEBUG_ASSERT(info->node_op == op_StringFuncInfo); > @@ -186,7 +186,7 @@ > else if (e2->node_op == op_ListFuncCall) { > const ap_expr *info = e2->node_arg1; > const ap_expr *arg = e2->node_arg2; > - ap_expr_list_func_t *func = info->node_arg1; > + ap_expr_list_func_t *func = (ap_expr_list_func_t *)info->node_arg1; > apr_array_header_t *haystack; > int i = 0; > AP_DEBUG_ASSERT(func != NULL); >