Bug#734153: libhdf4-alt-dev doesn't work on mips*
James Cowgill
james410 at cowgill.org.uk
Tue Mar 17 14:19:15 UTC 2015
Control: tags -1 patch
Hi,
On Sat, 04 Jan 2014 11:26:48 +0000 Alastair McKinstry <mckinstry at debian.org> wrote:
> Building ncl with libhdf4-alt-dev, it FTBFS on mips and mipsel due to:
>
> cc -ansi -fPIC -g -O2 -Wformat -Werror=format-security -I../../../.././include -I/usr/include/freetype2 -I/usr/include/gdal -I/usr/include/hdf-eos5 -I/usr/include/hdf -DBuildRasterHDF -DLINUX -DBuildRasterHPPCL -DBuildRasterNrif -DBuildRasterSun -DBuildRasterXWD -DBuildRasterAVS -DBuildRasterSGI -DBuildRasterAbekas -DBuildRasterBinary -DBuildRasterYUV -DNGTMPDIR='"tmp"' -Dmips -DIBM -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -D_FORTIFY_SOURCE=2 -c -o hdf.o hdf.c
> In file included from /usr/include/hdf/hdf.h:20:0,
> from hdf.c:54:
> /usr/include/hdf/hdfi.h:1886:1: error: unknown type name 'No'
> No machine type has been defined. Your Makefile needs to have someing like
This is caused by compiling with -ansi which suppresses the non-ansi
MIPSEB and MIPSEL defines hdfi.h uses. This can be fixed by using
__MIPSEB__ and __MIPSEL__ instead, and I've attached a patch which does
this.
Note this fix is unrelated to any of the mips64el stuff which is also
going on at the minute.
Thanks,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-734153.patch
Type: text/x-patch
Size: 770 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20150317/8d2d91be/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20150317/8d2d91be/attachment.sig>
More information about the Pkg-grass-devel
mailing list