[DebianGIS-dev] Bug#596603: libhdf4: FTBFS on sparc64

Aurelien Jarno aurel32 at debian.org
Sun Sep 12 19:39:51 UTC 2010


Package: libhdf4
Version: 4.2r4-10
Severity: normal
Tags: patch
User: debian-sparc at lists.debian.org
Usertags: sparc64

libhdf4 fails to build from source on sparc64 as it misses some
definitions for this architecture in hdfi.h. The patch below fixes that,
could you please add it in the next upload? Thanks in advance.

diff -u libhdf4-4.2r4/debian/patches/hdfi.h libhdf4-4.2r4/debian/patches/hdfi.h
--- libhdf4-4.2r4/debian/patches/hdfi.h
+++ libhdf4-4.2r4/debian/patches/hdfi.h
@@ -58,7 +58,7 @@
  
  #ifndef MIPSEL
  #define MIPSEL
-@@ -1039,6 +1049,340 @@
+@@ -1039,6 +1049,349 @@
  #endif /* INTEL86 */
  #endif /* !(defined(macintosh) || defined(MAC)) */
  
@@ -144,14 +144,23 @@
 +typedef unsigned char     uint8;
 +typedef short int         int16;
 +typedef unsigned short int uint16;
++#ifdef _LP64 /* 64-bit environment */
++typedef int               int32;
++typedef unsigned int      uint32;
++#else /* 32-bit environment */
 +typedef long int          int32;
 +typedef unsigned long int uint32;
++#endif
 +typedef int               intn;
 +typedef unsigned int      uintn;
 +typedef float             float32;
 +typedef double            float64;
 +typedef long              intf;     /* size of INTEGERs in Fortran compiler */
++#ifdef _LP64 /* 64-bit environment */
++typedef long              hdf_pint_t;   /* an integer the same size as a pointer */
++#else /* 32-bit environment */
 +typedef int               hdf_pint_t;   /* an integer the same size as a pointer */
++#endif
 +#define FNAME_POST_UNDERSCORE
 +#define _fcdtocp(desc) (desc)
 +


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: sparc64

Kernel: Linux 2.6.32-bpo.5-sparc64-smp (SMP w/32 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash





More information about the Pkg-grass-devel mailing list