CentOS 8 doesn't appear to have pmLocalPMDA - where did it go?
I'm building a cockpit project that used to build fine on CentOS 7 but is having issues with CentOS 8. After resolving several issues I have it compiling now, but I get this error now:
error: implicit declaration of function 'pmLocalPMDA'; did you mean 'pmSpecLocalPMDA'? [-Werror=implicit-function-declaration] Any idea why pmLocalPMDA isn't being found? Note: pmSpecLocalPMDA() is different from pmLocalPMDA(). |
Looks like it's called __pmLocalPMDA now. Also, this commit moved its prototype from impl.h to libpcp.h.
|
I was pulled onto a different project right after I Started this thread and am just back revisiting it now... I found libpcp.h on my system and am including it now, but it is in a kinda weird place: /var/lib/pcp/pmdas/sample/libpcp.h
There are far more errors now too, mostly "expected ';' before 'extern'" for lines like this: PCP_CALL extern int someFunctionName(). or Unknown type name '__pmSockLen' I wonder if I'm not including the wrong header still... |
There's also /var/lib/pcp/testsuite/src/libpcp.h provided by pcp-testsuite. I'm not sure this is the right file though. The PMAPI documentation mentions <pcp/libpcp.h>, but /usr/include/pcp/libpcp.h is definitely not included in any package from the standard CentOS 8 repos.
|
I ended up finding the define for __pmLocalPMDA() and it appears to be in "deprecated.h" where it says that "__pmLocalPMDA()" is being replaced with "pmLocalPMDA()"... and I thought (from your first comment) that it was the other way around.
Now I'm just confused. I ran grep on my entire linux VM but there is no declaration for "pmLocalPMDA()" which is also confusing... do you know what is going on? |
All times are GMT -5. The time now is 01:51 AM. |