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

Re: mathgl 1.11 upload



Sylvestre Ledru <sylvestre@debian.org> writes:

> I tried to build it into a chroot and it fails:
> /usr/include/hdf/hdfi.h:1011: error: conflicting declaration 'typedef
> long int intf'
> /usr/include/zconf.h:340: error: 'intf' has a previous declaration as
> 'typedef int intf'

This looks like an architecture-specific issue; hdfi.h typedefs intf to
be long on i386 and int on amd64, whereas zconf.h uses int regardless.
The types are the same size on i386, but still formally distinct, hence
the error.  To work around it, you may have to use the preprocessor to
divert one library's definition:

[...]
#include <zlib.h>
#ifdef HAVE_HDF5
#include <hdf5.h>
#endif
#ifdef HAVE_HDF4
#define intf hdf4_intf
#include <hdf/mfhdf.h>
#undef intf
#endif
[...]

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu


Reply to: