Bug 278686 - net-mgmt/collectd5: Fails to build with SLURM option ON
Summary: net-mgmt/collectd5: Fails to build with SLURM option ON
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Nuno Teixeira
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-01 17:32 UTC by Nuno Teixeira
Modified: 2024-05-01 19:26 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (ports)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nuno Teixeira freebsd_committer freebsd_triage 2024-05-01 17:32:00 UTC
Hello,

SLURM option fails with slurm-wlm-23.11.1_2 (actual version on tree).

I did found this as I'm doing an exp-run on sysutils/slurm-wlm update to latest version 23.11.6 that shows same error.

With this I will carry on with update.

Thanks

---
src/slurm.c:187:29: error: use of undeclared identifier 'NODE_STATE_REBOOT'; did you mean 'NODE_STATE_ERROR'?
  bool reboot_flag = (inx & NODE_STATE_REBOOT);
                            ^~~~~~~~~~~~~~~~~
                            NODE_STATE_ERROR
/usr/local/include/slurm/slurm.h:946:2: note: 'NODE_STATE_ERROR' declared here
        NODE_STATE_ERROR,       /* UNUSED - node is in an error state */
        ^
src/slurm.c:191:33: error: use of undeclared identifier 'NODE_STATE_POWER_SAVE'
  bool power_down_flag = (inx & NODE_STATE_POWER_SAVE);
                                ^
src/slurm.c:251:14: error: use of undeclared identifier 'NODE_STATE_CANCEL_REBOOT'
  if (inx == NODE_STATE_CANCEL_REBOOT)
             ^
src/slurm.c:253:14: error: use of undeclared identifier 'NODE_STATE_POWER_SAVE'
  if (inx == NODE_STATE_POWER_SAVE)
             ^
4 errors generated.
---
Comment 1 Nuno Teixeira freebsd_committer freebsd_triage 2024-05-01 19:26:30 UTC
sysutils/slurm-wlm: Update to 23.11.6

https://cgit.freebsd.org/ports/commit/?id=8b690b7d2ac6d17be6a61f7ba5ace0b21d76c124