G/E,
At least have 'solved' one the compiler complaints;
Calling NWGNUmod_brotli
GEN  obj_release/mod_brotli_cc.opt
CC   mod_brotli.c
### mwccnlm Compiler:
#    File: mod_brotli.c
# ---------------------
# 244: ctx->bb->bucket_alloc); # Error: ^
#   illegal implicit conversion from 'const unsigned char *' to
#   'const char *'

Index: modules/filters/mod_brotli.c
===================================================================
--- modules/filters/mod_brotli.c        (revision 1765782)
+++ modules/filters/mod_brotli.c        (working copy)
@@ -240,7 +240,7 @@
             output = BrotliEncoderTakeOutput(ctx->state, &output_len);
             ctx->total_out += output_len;

-            b = apr_bucket_transient_create(output, output_len,
+            b = apr_bucket_transient_create((const char *)output, output_len,
                                             ctx->bb->bucket_alloc);
             APR_BRIGADE_INSERT_TAIL(ctx->bb, b);

@@ -289,7 +289,7 @@
         output = BrotliEncoderTakeOutput(ctx->state, &output_len);
         ctx->total_out += output_len;

-        b = apr_bucket_heap_create(output, output_len, NULL,
+        b = apr_bucket_heap_create((const char *)output, output_len, NULL,
                                    ctx->bb->bucket_alloc);
         APR_BRIGADE_INSERT_TAIL(ctx->bb, b);
     }

The var 'output' is created as 'const uint8_t *' while the apr functions are expecting 'const char *'. Applying the cast in two places is accepted and mod_brotli.c compiles without issue'.

The other 'problem' is a bit more devious (== not solved yet):
CC   D:\Projects\srcs\brotli-master/enc/backward_references.c
### mwccnlm Compiler:
#    File: D:\Projects\srcs\brotli-master\enc\backward_references.c
# -----------------------------------------------------------------
#      30: static const float kInfinity = INFINITY;
#   Error:                                        ^
#   illegal constant expression
The assignment LHS has no issue as, if I force line 32 to run, then backward_references.c compiles; the issue appears to be in the Novell headers itself. Still poking on that front.
Norm

Reply via email to