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

Re: Bug#1121240: libhdf4: FTBFS on armhf (-Wincompatible-pointer-types)



On 11/23/25 3:42 PM, Bas Couwenberg wrote:
Your package FTBFS on armhf, the buildlogs contains many -Wincompatible-pointer-types errors:

  array.c: In function 'sd_NC_xlen_array':
  array.c:383:28: error: assignment to 'int (*)(void)' from incompatible pointer type 'int (*)(NC_string *)' [-Wincompatible-pointer-types]
    383 |                 xlen_funct = NC_xlen_string;
        |                            ^
  In file included from hdf4_netcdf.h:297,

This was likely caused by changes in the toolchain, as these also occur without the recent patches.

Making this a warning with following does not resolve the FTBFS:

 ifneq (,$(filter $(DEB_BUILD_ARCH),armhf))
 export DEB_CFLAGS_MAINT_APPEND = -Wno-error=incompatible-pointer-types
 endif

It then fails due to:

 array.c:399:21: error: too many arguments to function 'xlen_funct'; expected 0, have 1
   399 |             len += (*xlen_funct)(vp);
       |                    ~^~~~~~~~~~~~ ~~

We can't get around this by just removing libhdf4 from armhf because it has a relatively extensive rdep chain via gdal (which makes it a key package).

ARM porters, can you help resolve this issue on armhf?

Kind Regards,

Bas

--
 PGP Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1


Reply to: