[OpenAFS-devel] Windows build problems

Volker Holfeld volker.holfeld@e-technik.tu-chemnitz.de
Wed, 28 Mar 2001 08:18:22 +0200 (MEST)


Hi,

I build the vanilla OpenAFS 1.0.3 distribution with VC6 on a WinNT 4.0
platform with the exception of 2 little problems, the first is a missing
snprintf, it's called _snprintf in nt, here is a patch:

--- krb_udp.c~  Tue Mar  6 23:25:31 2001
+++ krb_udp.c   Wed Mar 21 07:10:34 2001
@@ -559,7 +559,11 @@
     char  buf[256];

     if (reason == 0) reason = "";
+#ifndef AFS_NT40_ENV
     snprintf (buf, 255, "code = %d: %s", code, reason);
+#else
+    _snprintf (buf, 255, "code = %d: %s", code, reason);
+#endif

     if (krb_udp_debug) {
        printf ("Sending error packet to '%s'.'%s'@'%s' containing %s\n",

and the second one are the missing export definitions for the xdr_int64 and the
xdr_uint64 symbols, i added it to the end of the export list, hope that's right:

--- afsrpc.def~ Sat Nov  4 03:28:07 2000
+++ afsrpc.def  Wed Mar 21 08:13:10 2001
@@ -196,3 +196,5 @@
        rx_SetRxStatUserOk                      @201
        rx_RxStatUserOk                         @202
        rx_enable_hot_thread                    @203 DATA
+       xdr_int64                               @204
+       xdr_uint64                              @205

The server and the client runs fine but the butc.exe program bails out with a
memory exception, i'll take a closer look at it if i have a little bit more 
time.

-volker.