Bug#753493: libhdf4: mips64(el) support

Yunqiang Su wzssyqa at gmail.com
Wed Jul 2 14:50:19 UTC 2014


Package: src:libhdf4
Version: 4.2r4-13

In debian/patches/hdfi.h, for mips

+typedef long int          int32;
+typedef unsigned long int uint32;
+typedef int               hdf_pint_t;

Make it ftbfs on mips64(el), while if changed to

+typedef int          int32;
+typedef unsigned int uint32;
+typedef long               hdf_pint_t;

it builds successfully.
This modification should keep ABI compatible for current mips/mipsel,
While I am not very sure about ABI status.

For mips ABIs

O32:
    int -> 32bit
    long -> 32bit
    void * -> 32bit
    short -> 16bit
    long long -> 64bit

N32:
    int -> 32bit
    long -> 32bit
    void * -> 32bit
    short -> 16bit
    long long -> 64bit


N64:
    int -> 32bit
    long -> 64bit
    void * -> 64bit
    short -> 16bit
    long long -> 64bit

-- 
Yunqiang Su



More information about the Pkg-grass-devel mailing list