dap-3.4.8 on x86_64 Linux
Patrice Dumas
pertusus at free.fr
Tue Nov 14 12:22:32 PST 2006
On Tue, Nov 14, 2006 at 02:44:53PM -0500, Jennifer M. Adams wrote:
> I find myself in the unfortunate situation of needing to build an old
> version of DODS (3.4) on a new version of Linux (RedHat Enterprise 4).
>
> The output from ''uname -a' is:
> Linux cola51.iges.org 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02
> EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
>
> I've got the packages built using the following arg to configure
> (since x86_64 isn't recognized)
> ./configure --build=i686-unknown-linux-gnu
>
> I'm using gcc 3.2.3 (since this version has worked for me on other
> RHEnterprise boxes), but 3.4.6 and 4.1.0 are also available. Changing
> versions of the compiler does not affect the problem I'm having
> building libdap:
You can try the attached patch. If I recall well opendap 3.4 is known
to have issues with 64 bits.
--
Pat
-------------- next part --------------
--- opendap-3.4.4/DODS/src/dap-3.4.8/RValue.cc.BAD 2005-04-22 13:43:25.000000000 -0500
+++ opendap-3.4.4/DODS/src/dap-3.4.8/RValue.cc 2005-04-22 13:43:33.000000000 -0500
@@ -110,7 +110,7 @@
#ifdef WIN32
BaseType **argv = (new (BaseType*)) + argc + 1;
#else
- BaseType **argv = new (BaseType*)[argc + 1];
+ BaseType **argv = new BaseType* [argc + 1];
#endif
int index = 0;
--- opendap-3.4.4/DODS/src/dap-3.4.8/Operators.h.BAD 2005-04-22 13:39:30.000000000 -0500
+++ opendap-3.4.4/DODS/src/dap-3.4.8/Operators.h 2005-04-22 13:39:45.000000000 -0500
@@ -36,8 +36,12 @@
#ifndef _operators_h
#define _operators_h
+#include <stdlib.h>
#include <Regex.h> // GNU Regex class used for string =~ op.
+using std::cerr;
+using std::endl;
+
static unsigned
dods_max(int i1, int i2)
{
More information about the Opendap-tech
mailing list