Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backwards compatable: main.cpp:53:3: error: ‘slurm_init’ was not declared in this scope #14

Open
SomePersonSomeWhereInTheWorld opened this issue Oct 6, 2023 · 2 comments

Comments

@SomePersonSomeWhereInTheWorld

Any chance at making this work for older versions of Slurm?

make
make  all-am
make[1]: Entering directory '/path/to/slurm_showq'
g++ -DHAVE_CONFIG_H -I.     -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
main.cpp: In function ‘int main(int, char**)’:
main.cpp:53:3: error: ‘slurm_init’ was not declared in this scope
   slurm_init(conf);
   ^~~~~~~~~~
main.cpp:53:3: note: suggested alternative: ‘slurm_ping’
   slurm_init(conf);
   ^~~~~~~~~~
   slurm_ping
make[1]: *** [Makefile:284: main.o] Error 1
make[1]: Leaving directory '/path/to/slurm_showq'
make: *** [Makefile:178: all] Error 2
@pedmon
Copy link
Member

pedmon commented Oct 6, 2023

It may be best to use an older commit instead. I was told by SchedMD that this is the way to do this going forward. Either that or a gate could be put in place depending on version. I'm happy to take a Pull request that does that.

@pedmon
Copy link
Member

pedmon commented Oct 6, 2023

Specifically see: https://bugs.schedmd.com/show_bug.cgi?id=17567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants