Processed: Bug #772980: libhdf4: FTBFS on mips64el - Assertion `sizeof(hdf_pint_t)==sizeof(void *)' failed.

2015-02-27 Thread Debian Bug Tracking System
Processing control commands:

 tags -1 patch
Bug #772980 [src:libhdf4] libhdf4: FTBFS on mips64el - Assertion 
`sizeof(hdf_pint_t)==sizeof(void *)' failed.
Added tag(s) patch.

-- 
772980: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772980
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems

___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel


Bug#772980: Bug #772980: libhdf4: FTBFS on mips64el - Assertion `sizeof(hdf_pint_t)==sizeof(void *)' failed.

2015-02-27 Thread James Cowgill
Control: tags -1 patch

On Fri, 12 Dec 2014 17:40:06 + James Cowgill james...@cowgill.org.uk 
wrote:
 Hi,
 
 libhdf4 FTBFS on mips64el because it chooses the size of hdf_pint_t
 incorrectly. This results in a lot of warnings and causes this assertion
 to fail near the end of the log:

So I had a look at fixing this and it seems that there was already
another bug (#753493) on this issue and you tried to fix it in this
commit:

https://anonscm.debian.org/cgit/pkg-grass/hdf4.git/commit/?id=683f409c2e11b4cd3f20f62bc01ba02f839656bc

Unfortunately, you changed the typedefs for ARM instead of MIPS so the
bug wasn't fixed. Thankfully since int and long are the same on 32-bit
ARM, it had no effect there and nothing broke.

I've attached a patch to the hdfi.h patch which has the correct line
numbers against 4.2.10-3.

Thanks,
James
--- a/debian/patches/hdfi.h	2014-10-21 14:20:19.0 +0100
+++ b/debian/patches/hdfi.h	2015-02-27 23:48:18.397275292 +
@@ -324,14 +324,14 @@
 +typedef unsigned char uint8;
 +typedef short int int16;
 +typedef unsigned short int uint16;
-+typedef long int  int32;
-+typedef unsigned long int uint32;
++typedef int   int32;
++typedef unsigned int  uint32;
 +typedef int   intn;
 +typedef unsigned int  uintn;
 +typedef float float32;
 +typedef doublefloat64;
 +typedef long  intf; /* size of INTEGERs in Fortran compiler */
-+typedef int   hdf_pint_t;   /* an integer the same size as a pointer */
++typedef long  hdf_pint_t;   /* an integer the same size as a pointer */
 +#define FNAME_POST_UNDERSCORE
 +#define _fcdtocp(desc) (desc)
 +
___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Bug#772980: libhdf4: FTBFS on mips64el - Assertion `sizeof(hdf_pint_t)==sizeof(void *)' failed.

2014-12-12 Thread James Cowgill
Source: libhdf4
Version: 4.2.10-3
Severity: important

Hi,

libhdf4 FTBFS on mips64el because it chooses the size of hdf_pint_t
incorrectly. This results in a lot of warnings and causes this assertion
to fail near the end of the log:

 lt-ncgen: atom.c:103: HAinit_group: Assertion 
 `sizeof(hdf_pint_t)==sizeof(void *)' failed.

You can find the full log here:
http://mips64el.debian.net/debian/buildlog/libh/libhdf4_4.2.10-3/libhdf4_4.2.10-3_mips64el-20141112-0459.build

Thanks,
James

___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel