Your message dated Sun, 11 Jan 2026 12:21:41 +0100
with message-id <[email protected]>
and subject line Re: Bug#1124926: pacemaker: FTBFS: error: 'cmocka_macro' is 
deprecated: check_expected: use check_expected_int or check_expected_uint 
instead
has caused the Debian Bug report #1124926,
regarding pacemaker: FTBFS: error: 'cmocka_macro' is deprecated: 
check_expected: use check_expected_int or check_expected_uint instead
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1124926: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1124926
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: pacemaker
Version: 3.0.1-1
Severity: normal
Tags: ftbfs, forky, sid

Hi,

Maybe there is a public error while rebuilding for loong64 in the Debian Package Auto-Building environment.
The error log is as follows,
```
mock.c: In function '__wrap_calloc':
mock.c:97:5: error: 'cmocka_macro' is deprecated: check_expected: use check_expected_int or check_expected_uint instead [-Werror=deprecated-declarations]
   97 |     check_expected(nmemb);
      |     ^~~~~~~~~~~~~~
mock.c:98:5: error: 'cmocka_macro' is deprecated: check_expected: use check_expected_int or check_expected_uint instead [-Werror=deprecated-declarations]
   98 |     check_expected(size);
      |     ^~~~~~~~~~~~~~
mock.c: In function '__wrap_realloc':
mock.c:147:5: error: 'cmocka_macro' is deprecated: check_expected: use check_expected_int or check_expected_uint instead [-Werror=deprecated-declarations]
  147 |     check_expected(size);
      |     ^~~~~~~~~~~~~~
mock.c: In function '__wrap_setenv':
mock.c:176:5: error: 'cmocka_macro' is deprecated: check_expected: use check_expected_int or check_expected_uint instead [-Werror=deprecated-declarations]
  176 |     check_expected(overwrite);
      |     ^~~~~~~~~~~~~~
mock.c: In function '__wrap_getpwnam_r':
mock.c:387:9: error: 'cmocka_macro' is deprecated: check_expected: use check_expected_int or check_expected_uint instead [-Werror=deprecated-declarations]
  387 |         check_expected(buflen);
      |         ^~~~~~~~~~~~~~
mock.c: In function '__wrap_readlink':
mock.c:422:9: error: 'cmocka_macro' is deprecated: check_expected: use check_expected_int or check_expected_uint instead [-Werror=deprecated-declarations]
  422 |         check_expected(buf);
      |         ^~~~~~~~~~~~~~
mock.c:423:9: error: 'cmocka_macro' is deprecated: check_expected: use check_expected_int or check_expected_uint instead [-Werror=deprecated-declarations]
  423 |         check_expected(bufsize);
      |         ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
```

The full build log can be found at https://buildd.debian.org/status/fetch.php?pkg=pacemaker&arch=loong64&ver=3.0.1-1&stamp=1767187817&raw=0.
Maintainers, please pay attention to the above phenomenon.
Or please generate a rootfs based on the latest archive state on another architecture for testing.

Best regards,
Dandan Zhang

--- End Message ---
--- Begin Message ---
Version: 3.0.1-1.1

zhangdandan <[email protected]> writes:

> This  is a public error on other architectures.
>
> I just found that the build failure is related to the version of
> libcmocka-dev.
> When using the latest version 2.0.1-1, the build fails;
> when using version 1.1.7-3+b1, it succeeds.
> The solution is to replace all occurrences of check_expected() with
> check_expected_int()/check_expected_uint(), which resolves the issue.

Hi Dandan,

Thanks for the research!  This problem is already fixed upstream but the
fix is not released yet.  However, the pacemaker_3.0.1-1.1 (the latest
NMU) does not error out on warnings, so it builds successfully.
-- 
Regards,
Feri.

--- End Message ---

Reply via email to