This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
=============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research address@hidden WWW: http://www.unidata.ucar.edu/ =============================================================================== ---------- Forwarded message ---------- Date: Thu, 21 Nov 2002 00:40:36 -0700 From: Corey Cole <address@hidden> To: address@hidden Subject: Compiling LDM on Windows In case anyone on the list is interested, I've gotten LDM to compile on Windows XP using Microsoft's Services For Unix 3.0. Here are the tricky parts: 1) Make sure to install gcc when you install SFU. 2) The supplied version of 'make' won't work, so you'll have to download and compile GNU make 3.80 3) SFU is for the most part BSD 4.4, so I had to add the following define to CFLAGS '-D_ALL_SOURCE' I haven't had the time/energy/inclination to test the software, but it does compile error free and doesn't dump core when the binaries are run. I'm still trying to work out how setuid root programs actually work with SFU, as there's no such thing as 'su' in SFU. If anyone has any suggestions/opinions/etc. I'd be glad to look into this further. Anyways, here's the patch: diff -Naur /usr/src/ldm-5.2.2/src/aclocal.m4 /usr/local/ldm/ldm-5.2.2/src/aclocal.m4 --- /usr/src/ldm-5.2.2/src/aclocal.m4 Tue Jul 23 13:03:35 2002 +++ /usr/local/ldm/ldm-5.2.2/src/aclocal.m4 Thu Nov 21 00:08:08 2002 @@ -419,6 +419,9 @@ BSD*) libs="-lrpc" ;; + Interix*) + libs="-lrpclib" + ;; HP-UX\ ?.10.2*) libs="-lnsl_s -lPW" AC_DEFINE(PORTMAP) diff -Naur /usr/src/ldm-5.2.2/src/configure /usr/local/ldm/ldm-5.2.2/src/configure --- /usr/src/ldm-5.2.2/src/configure Tue Jul 23 13:04:33 2002 +++ /usr/local/ldm/ldm-5.2.2/src/configure Thu Nov 21 00:10:05 2002 @@ -1847,6 +1847,9 @@ BSD*) libs="-lrpc" ;; + Interix*) + libs="-lrpclib" + ;; HP-UX\ ?.10.2*) libs="-lnsl_s -lPW" cat >> confdefs.h <<\EOF diff -Naur /usr/src/ldm-5.2.2/src/misc/fsStats.c /usr/local/ldm/ldm-5.2.2/src/misc/fsStats.c --- /usr/src/ldm-5.2.2/src/misc/fsStats.c Wed Feb 9 09:32:23 2000 +++ /usr/local/ldm/ldm-5.2.2/src/misc/fsStats.c Wed Nov 20 23:39:07 2002 @@ -49,7 +49,7 @@ * agrees with others f_bavail... */ #endif -#if _SYSTYPE_SVR4 || __SVR4 || _AIX || __osf__ || __sgi +#if _SYSTYPE_SVR4 || __SVR4 || _AIX || __osf__ || __sgi || __INTERIX /* irix 5.3, SunOS 5, AIX, OSF1 */ #include <sys/statvfs.h> typedef struct statvfs STRUCT_STATFS; --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002