LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 08-20-2020, 01:16 PM   #1
jimmy71
LQ Newbie
 
Registered: Aug 2020
Posts: 5

Rep: Reputation: Disabled
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().
 
Old 08-22-2020, 07:44 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Looks like it's called __pmLocalPMDA now. Also, this commit moved its prototype from impl.h to libpcp.h.
 
1 members found this post helpful.
Old 11-30-2020, 04:07 PM   #3
jimmy71
LQ Newbie
 
Registered: Aug 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
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...
 
Old 11-30-2020, 04:44 PM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 12-01-2020, 02:02 PM   #5
jimmy71
LQ Newbie
 
Registered: Aug 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why did a duplicate post appear johnsfine LQ Suggestions & Feedback 4 03-19-2012 10:41 AM
My system did not appear to resume correctly(CentOS 5-2) madani Linux - Newbie 1 11-09-2009 04:17 PM
Why/How did you pick the nickname you did? Gill Bates General 121 12-30-2005 11:41 PM
Speedtouch 330, I did it, i did it... gamb8 LinuxQuestions.org Member Success Stories 7 09-02-2005 12:17 PM
Did I miss something when I did my HCL's? rberry88 LQ Suggestions & Feedback 5 02-11-2004 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration