Brad,
I've finally succeeded with the build of aprlib.nlm with OpenWatcom.
Here are two patches needed to apply to make Watcom compiler happy (attached).


getuuid.c.patch: Watcom is not familiar with LL:

Watcom C32 Optimizing Compiler Version 11.0c
Copyright by Sybase, Inc., and its subsidiaries, 1984, 2000.
All rights reserved. Watcom is a trademark of Sybase, Inc.
..\..\srclib\apr\misc\unix\getuuid.c(146): Error! E1009: Expecting ';' but found 'L'
..\..\srclib\apr\misc\unix\getuuid.c: 240 lines, included 24521, 0 warnings, 1 errors
make: *** [../../srclib/apr/misc/unix/getuuid.obj] Error 8


config.hnw.patch: There is no memory.h in paths (there is only <nks/memory.h> in LIBC's include subdirectory), so compilation is aborted with an error. It seems there is no need to include this header file (gcc, Watcom).

Regards,
Pavel
--- original/srclib/apr/misc/unix/getuuid.c     Sat Dec  1 00:20:42 2001
+++ modified/srclib/apr/misc/unix/getuuid.c     Mon Feb 18 00:24:28 2002
@@ -143,7 +143,7 @@
     uint64_t sec;
     
     NXGetTime(NX_SINCE_1970, NX_SECONDS, &sec);
-    *uuid_time = (sec * 10000000) + 0x01B21DD213814000LL;
+    *uuid_time = (sec * 10000000) + 0x01B21DD213814000;
 #else
     struct timeval tp;
 
--- original/srclib/apr-util/xml/expat/lib/config.hnw   Fri Nov  2 19:25:31 2001
+++ modified/srclib/apr-util/xml/expat/lib/config.hnw   Mon Feb 18 00:24:08 2002
@@ -12,7 +12,6 @@
 #ifndef CONFIG_HNW
 #define CONFIG_HNW
 
-#include <memory.h>
 #include <string.h>
 
 #define XML_NS 1

Reply via email to