Hi Dev,
----- Original Message -----
>
> Hi Guys,
>
>
> About couple of months back when I had checked out pmwebapi from
> git:// sourceware.org/git/pcpfans.git and installed it, it was
> working fine out of the box. Now I guess some recent changes have
> gone in that has broken the compatibility with v3.6.9 of pmcd.
>
This is a missing libpcp symbol - so, issue is less about pmcd (the
pmwebapi will work with any pmcd version) and more about the version
of libpcp that pmwebapi is finding.
>
> pmwebapi launches but as soon as I connect to it, it throws an error
> saying undefined symbol: __pmHashWalkCB
>
Yeah, this was added into libpcp in pcp-3.7.0 for pmwebapi. Before,
the pmwebapi was using a locally-modified version (a different API).
>
> pmwebapi(32253) Info: Started daemon on tcp port 44323, pmapi url
> /pmapi
> pmwebapi: symbol lookup error: pmwebapi: undefined symbol:
> __pmHashWalkCB
>
>
> I saw that some changes were checked in fche/pmwebapi branch related
> to __pmHashWalkCB so I tried building pcp and pmcd from source from
> this branch. The build finishes with the commands
>
>
> ./configure; sudo make install
>
This configure will do install "locally" - so /usr/local/bin by default
whereas your pmwebapi is probably finding an existing libpcp somewhere
like /usr/lib or /usr/lib64 and using that instead of the newer version
with the new __pmHashWalkCB symbol.
>
> but pcp fails to run saying no file found /etc/pcp.env. I located
> pcp.env in /usr/local/share and copied it to /etc/pcp.env. Now pcp
> runs but pmcd is not to be found anywhere! I try restarting pmcd
> service but the service is not found!
>
>
> Can someone please point me to a stable tag that will build fine with
> pcp, pmcd and pmwebapi? If would be great if I can use the old
> pmwebapi that works fine with v3.6.9. Please point me to the
> tag/commit of pmwebapi that will work with v3.6.9
You should find that if you build the pcpfans branch the same way that
you did before (was that via ./Makepkgs?) it will continue to install
to the same locations as before, and overwrite the earlier version, and
everything should link correctly.
cheers.
--
Nathan
|