Brad,
here are additional changes in the sources needed to build Apache's 
binaries for NetWare with the GNU tools.

config.c.patch, listen.c.patch and protocol.c.patch - Uninitialized 
variables changed to initialized, so now they can be exported by 
Apache's core NLM if linked by a nlmconv utility.

mod_rewrite.c.patch - Module functionality untested, but it's possible 
to compile with LIBC and the GNU tools. Not sure if you already tried to 
compile 2.0 version of this module with CodeWarrior...

Thanks,
Pavel
--- original/server/config.c    Fri Dec 14 06:12:15 2001
+++ modified/server/config.c    Sat Dec 22 21:45:43 2001
@@ -95,13 +95,13 @@
 #include "mpm.h"
 
 
-AP_DECLARE_DATA const char *ap_server_argv0;
+AP_DECLARE_DATA const char *ap_server_argv0 = NULL;
 
 AP_DECLARE_DATA const char *ap_server_root = NULL;
 
-AP_DECLARE_DATA apr_array_header_t *ap_server_pre_read_config;
-AP_DECLARE_DATA apr_array_header_t *ap_server_post_read_config;
-AP_DECLARE_DATA apr_array_header_t *ap_server_config_defines;
+AP_DECLARE_DATA apr_array_header_t *ap_server_pre_read_config = NULL;
+AP_DECLARE_DATA apr_array_header_t *ap_server_post_read_config = NULL;
+AP_DECLARE_DATA apr_array_header_t *ap_server_config_defines = NULL;
 
 AP_DECLARE_DATA ap_directive_t *ap_conftree = NULL;
 
--- original/server/listen.c    Sat Dec  8 06:12:13 2001
+++ modified/server/listen.c    Sat Dec 22 21:46:53 2001
@@ -72,7 +72,7 @@
 #include "mpm.h"
 #include "mpm_common.h"
 
-ap_listen_rec *ap_listeners;
+ap_listen_rec *ap_listeners = NULL;
 #if APR_HAVE_IPV6
 static int default_family = APR_UNSPEC;
 #else
--- original/server/protocol.c  Fri Dec 21 06:12:22 2001
+++ modified/server/protocol.c  Sat Dec 22 21:41:26 2001
@@ -104,7 +104,7 @@
            APR_HOOK_LINK(default_port)
 )
 
-AP_DECLARE_DATA ap_filter_rec_t *ap_old_write_func;
+AP_DECLARE_DATA ap_filter_rec_t *ap_old_write_func = NULL;
 
 /*
  * Builds the content-type that should be sent to the client from the
--- original/modules/mappers/mod_rewrite.c      Sun Dec 30 06:12:16 2001
+++ modified/modules/mappers/mod_rewrite.c      Wed Jan  2 13:34:00 2002
@@ -114,7 +114,7 @@
 #include "http_protocol.h"
 #include "mod_rewrite.h"
 
-#if !defined(OS2) && !defined(WIN32) && !defined(BEOS)
+#if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE)
 #include "unixd.h"
 #endif
 
@@ -4154,12 +4154,14 @@
 **
 */
 
+/*
 #ifdef NETWARE
 int main(int argc, char *argv[]) 
 {
     ExitThread(TSR_THREAD, 0);
 }
 #endif
+*/
 
     /* the apr_table_t of commands we provide */
 static const command_rec command_table[] = {

Reply via email to