<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Patrice - thanks for the patch but I need the 64 bit one (seems
nothing is simple on this one) also what is the correct method of
installing this patch, I put it in the source directory of udunits then
<br>
<br>
patch &lt; /data/source/Libaries/udunits-1.12.4-linuxfixes.patch<br>
<br>
but then I have to manually put in the absolute paths to each file to
be patched.<br>
<br>
Many Thanks<br>
&nbsp;&nbsp;&nbsp; Jean Pierre<br>
<br>
Patrice Dumas wrote:
<blockquote cite="mid20061101221330.GA2272@free.fr" type="cite">
  <pre wrap="">On Wed, Nov 01, 2006 at 04:40:11PM +0200, Jean Pierre Arabonis wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Good Day Patrice

   I seem to be missing udunits.h , I'm not quite sure which package
this comes from.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
It may be found at
<a class="moz-txt-link-freetext" href="http://my.unidata.ucar.edu/content/software/udunits/index.html">http://my.unidata.ucar.edu/content/software/udunits/index.html</a>

I also attach a patch which is in fedora, it may need some tweaking as
it reference RPM_BUILD_ROOT, which should certainly be replaced with
$(prefix).

On 64 bits you may need another patch, I'll attach it if you like.

  </pre>
  <blockquote type="cite">
    <pre wrap="">checking libsx.h usability... no
checking libsx.h presence... no
checking for libsx.h... no
- GUI disabled
    </pre>
  </blockquote>
  <pre wrap=""><!---->
You don't have libsx, so no gui, but I guess that's not too bad.

You have readline support.

After that, there is udunits needed for all the different versions. In the
fedora rpm the other build dependencies (except for libdap and libnc-dap) are

netcdf, hdf, zlib, libjpeg, gd.

hdf is not required for gradsdods (the netcdf headers might be needed),
I guess you allready have the zlib, libjpeg and gd development packages.

In any case you should also search in the existing packages for your
distro, since it is much easier when they can be installed using the
distro tools, but I guess you allready know that...

--
Pat
  </pre>
  <pre wrap="">
<hr size="4" width="90%">
--- udunits-1.12.4/src/port/cfortran/cfortran.h.BAD     2005-03-25 22:15:13.000000000 -0600
+++ udunits-1.12.4/src/port/cfortran/cfortran.h 2005-03-25 22:17:24.000000000 -0600
@@ -83,7 +83,7 @@
 #if !(defined(NAGf90Fortran)||defined(f2cFortran)||defined(hpuxFortran)||defined(apolloFortran)||defined(sunFortran)||defined(IBMR2Fortran)||defined(CRAYFortran)||defined(pgiFortran))
 #if !(defined(mipsFortran)||defined(DECFortran)||defined(vmsFortran)||defined(CONVEXFortran)||defined(PowerStationFortran)||defined(AbsoftUNIXFortran)||defined(AbsoftProFortran)||defined(SXFortran))
 /* If no Fortran compiler is given, we choose one for the machines we know.   */
-#if defined(lynx) || defined(VAXUltrix)
+#if defined(lynx) || defined(VAXUltrix) || defined(__linux__)
 #define f2cFortran    /* Lynx:      Only support f2c at the moment.
                          VAXUltrix: f77 behaves like f2c.
                            Support f2c or f77 with gcc, vcc with f2c.
--- udunits-1.12.4/src/udunits/udunits.c.BAD    2005-03-25 22:24:50.000000000 -0600
+++ udunits-1.12.4/src/udunits/udunits.c        2005-03-25 22:33:08.000000000 -0600
@@ -4,12 +4,15 @@
  * Test program for the Unidata udunits(3) library.
  */

+#define _POSIX_SOURCE 1
+
 #include &lt;limits.h&gt;    /* for _POSIX_MAX_INPUT */
 #include &lt;stddef.h&gt;    /* for size_t */
 #include &lt;stdio.h&gt;     /* for I/O functions, and NULL */
 #include &lt;string.h&gt;    /* for strlen() &amp; memmove() */
 #include &lt;errno.h&gt;     /* for errno */
 #include &lt;ctype.h&gt;     /* for isspace() */
+#include &lt;stdlib.h&gt;    /* for exit */
 #include "udunits.h"

 #ifdef YYDEBUG
--- udunits-1.12.4/src/Makefile.in.BAD  2005-03-25 23:03:01.000000000 -0600
+++ udunits-1.12.4/src/Makefile.in      2005-03-25 23:03:14.000000000 -0600
@@ -68,7 +68,7 @@
 @PERL_DISTCLEAN@ dummy:        perl/Makefile

 perl/Makefile:         perl/Makefile.PL
-       -cd perl &amp;&amp; $(PERL) Makefile.PL
+       -cd perl &amp;&amp; $(PERL) Makefile.PL PREFIX=$(RPM_BUILD_ROOT)/usr INSTALLDIRS=vendor

 install:       whatis

--- udunits-1.12.4/src/lib/Makefile.in.BAD      2005-03-25 23:28:38.000000000 -0600
+++ udunits-1.12.4/src/lib/Makefile.in  2005-03-25 23:28:56.000000000 -0600
@@ -7,7 +7,7 @@
 LIBRARY                = udunits

 FLEX           = /usr/local/gnu/bin/flex
-cpp_path       = -DUT_DEFAULT_PATH='"$(prefix)/etc/udunits.dat"'
+cpp_path       = -DUT_DEFAULT_PATH='"/etc/udunits.dat"'
 CPPFLAGS       = -I../port/misc -I../port/cfortran $(cpp_path) @CPPFLAGS@
 CFLAGS         = @CFLAGS@

--- udunits-1.12.4/src/port/master.mk.in.BAD    2005-03-25 23:37:16.000000000 -0600
+++ udunits-1.12.4/src/port/master.mk.in        2005-03-25 23:37:25.000000000 -0600
@@ -351,7 +351,7 @@
 ############################################################################
 # `etc/' files:
 ############################################################################
-ETCDIR = $(prefix)/etc
+ETCDIR = $(RPM_BUILD_ROOT)/etc
 ETCFILE        = dummy-etcfile         # to silence GNU make(1)

 installed_etcfiles:
--- udunits-1.12.4/src/lib/Makefile.in.BAD      2005-04-11 11:45:36.000000000 -0500
+++ udunits-1.12.4/src/lib/Makefile.in  2005-04-11 11:46:17.000000000 -0500
@@ -6,7 +6,7 @@

 LIBRARY                = udunits

-FLEX           = /usr/local/gnu/bin/flex
+FLEX           = /usr/bin/flex
 cpp_path       = -DUT_DEFAULT_PATH='"/etc/udunits.dat"'
 CPPFLAGS       = -I../port/misc -I../port/cfortran $(cpp_path) @CPPFLAGS@
 CFLAGS         = @CFLAGS@
--- udunits-1.12.4/src/port/master.mk.in.BAD    2005-04-11 11:44:37.000000000 -0500
+++ udunits-1.12.4/src/port/master.mk.in        2005-04-11 11:44:55.000000000 -0500
@@ -382,7 +382,7 @@
 ############################################################################
 # Manual Pages:
 ############################################################################
-MANDIR         = $(prefix)/man
+MANDIR         = $(prefix)/share/man
 MANUAL         = dummy-manual  # to slience GNU make
 WHATIS         = @WHATIS@
 # The following macro should be empty on systems that don't
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Jean Pierre Arabonis
<a class="moz-txt-link-abbreviated" href="mailto:arabonis@egs.uct.ac.za">arabonis@egs.uct.ac.za</a>
Tel 021 780 1021 cell 084 401 1365
This email is 100% Microsoft Free
</pre>
</body>
</html>