LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   CentOS 8 doesn't appear to have pmLocalPMDA - where did it go? (https://www.linuxquestions.org/questions/centos-111/centos-8-doesnt-appear-to-have-pmlocalpmda-where-did-it-go-4175680759/)

jimmy71 08-20-2020 01:16 PM

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().

shruggy 08-22-2020 07:44 AM

Looks like it's called __pmLocalPMDA now. Also, this commit moved its prototype from impl.h to libpcp.h.

jimmy71 11-30-2020 04:07 PM

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...

shruggy 11-30-2020 04:44 PM

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.

jimmy71 12-01-2020 02:02 PM

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.