[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#251275: marked as done (libhdf4: FTBFS: Missing amd64 support.)

Your message dated Sun, 25 Mar 2007 10:19:19 +0200
with message-id <87fy7tag6w.fsf@diziet.irb.hr>
and subject line Fixed in NMU of libhdf4 4.1r4-18.1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libhdf4
Version: 4.1r4-18
Severity: important
Tags: patch

It doesn't have support for amd64.
Here is a patch to make it build on amd64.


--- ./hdf/src/hdfi.h.orig	2004-05-27 18:33:18.130716223 +0000
+++ ./hdf/src/hdfi.h	2004-05-27 18:42:20.840507177 +0000
@@ -73,6 +73,7 @@
 #define     DFMT_CRAYMPP        0x1171
 #define     DFMT_IA64           0x4441
 #define     DFMT_ARMV4L         0x4441
+#define     DFMT_X86_64         0x4441
 /* I/O library constants */
 #define UNIXUNBUFIO 1
@@ -1599,6 +1600,60 @@
 #endif /* IA64 */
+/* AMD64 running Linux */
+#if defined(__x86_64__)
+If you get an error on this line more than one machine type has been defined.
+Please check your Makefile.
+#define GOT_MACHINE
+#include <sys/file.h>               /* for unbuffered i/o stuff */
+#include <sys/stat.h>
+#define DF_MT             DFMT_X86_64
+typedef void              VOID;
+typedef void              *VOIDP;
+typedef char              *_fcd;
+typedef char              char8;
+typedef unsigned char     uchar8;
+typedef char              int8;
+typedef unsigned char     uint8;
+typedef short int         int16;
+typedef unsigned short int uint16;
+typedef int               int32;
+typedef unsigned int      uint32;
+typedef int               intn;
+typedef unsigned int      uintn;
+typedef int               intf;     /* size of INTEGERs in Fortran compiler */
+typedef float             float32;
+typedef double            float64;
+typedef long              hdf_pint_t;   /* an integer the same size as a pointer */
+#define _fcdtocp(desc) (desc)
+#ifdef  HAVE_FMPOOL
+#define FILELIB PAGEBUFIO  /* enable page buffering */
+#define BIG_LONGS
+/* JPEG #define's - Look in the JPEG docs before changing - (Q) */
+/* Determine the memory manager we are going to use. Valid values are: */
+/*  MEM_DOS, MEM_ANSI, MEM_NAME, MEM_NOBS.  See the JPEG docs for details on */
+/*  what each does */
+#define JMEMSYS         MEM_ANSI
+#ifdef __GNUC__
+#define HAVE_STDC
+#endif /* X86_64 */
 #ifndef GOT_MACHINE
 No machine type has been defined.  Your Makefile needs to have someing like
 -DSUN or -DUNICOS in order for the HDF internal structures to be defined

--- End Message ---
--- Begin Message ---
Source: libhdf4
Source-Version: 4.1r4-18.1

Now that libhdf4 is orphaned, bugs fixed in non-maintainer uploads can
be closed.

Hash: SHA1

Format: 1.7
Date: Thu,  5 May 2005 16:07:36 +0200
Source: libhdf4
Binary: libhdf4g-run libhdf4g libhdf4g-dev libhdf4g-doc
Architecture: source all i386
Version: 4.1r4-18.1
Distribution: unstable
Urgency: medium
Maintainer: Stephen M Moraco <stephen@debian.org>
Changed-By: Luk Claes <luk@debian.org>
 libhdf4g   - The Hierarchical Data Format library -- library package
 libhdf4g-dev - The Hierarchical Data Format library -- development package
 libhdf4g-doc - The Hierarchical Data Format library -- documentation
 libhdf4g-run - The Hierarchical Data Format library -- runtime package
Closes: 251275
 libhdf4 (4.1r4-18.1) unstable; urgency=medium
   * Non-maintainer upload.
   * Patch source so it builds on amd64, thanks Kurt Roeckx. Closes: #251275
 4e9f1dd6be59d5fced4d008213b6afbd 674 graphics optional libhdf4_4.1r4-18.1.dsc
 738020e09eef3bff0b4a9038dd89d7c5 1211839 graphics optional libhdf4_4.1r4-18.1.diff.gz
 5378be5b0e108b4a7f0c4d85879ea21f 1168750 doc optional libhdf4g-doc_4.1r4-18.1_all.deb
 defbb8c527e99a12dc9c9ccf6aa91698 274814 libs optional libhdf4g_4.1r4-18.1_i386.deb
 97b9935c53b659cdb50ff40cc82af576 420638 devel optional libhdf4g-dev_4.1r4-18.1_i386.deb
 4dd780f15cce4ba90588fd6bc84f99c1 176942 graphics optional libhdf4g-run_4.1r4-18.1_i386.deb

Version: GnuPG v1.4.0 (GNU/Linux)


--- End Message ---

Reply to: