Created attachment 831323 [details]
patch for fc19 spec file
Description of problem:
collectd-dbi and collectd-memcachec plugins are not included in the default collectd package. I've modified the collectd.spec files for epel el6 and fc19 so that the modules are built as extra packages. Please review my patches.
I've had some issues compiling memcachec on fc19, fixed it by adding a patch on the configure file, notified upstream here: https://github.com/collectd/collectd/issues/494 . The patch adds -lpthread flag to the memcached library ldflags.
Version-Release number of selected component (if applicable):
fc19 and el6,
Steps to Reproduce:
Created attachment 831324 [details]
-lpthread configure file patch for collectd-memcachec
Created attachment 831325 [details]
patch for el6 spec file
Fedora Rawhide appears to contain the DBI & memcached plugins
Next to the memcached plugin, collectd also has a memcachec plugin. Confusing, I know. The memcachec plugin indeed fails to build. Adding -lpthread does fix it, but isn't this a bug in memcachec itself?
BTW I have no plans pushing the changes in Rawhide back to F-19 and EL-6.
I didn't notice that they were already added to Rawhide... Is there a way to get the suggested plugins (dbi and memcachec, or more) pushed to el6? If there is anything I can do please let me know.
I think the -lpthread bug is in collectd-memcachec, thats why I submitted the issue on the collectd github issue tracker: https://github.com/collectd/collectd/issues/494 . This bug only occurs at f-19, el6 compiles fine.
There is no memcachec plugin in F-19, F-20 and Rawhide because of the pthread issue. I'm no expert on these things, but I believe it shouldn't be necessary for collectd to link to libmemcached with -lpthread. The plugin used to work fine in F-18, but I think an update to libmemcached broke this.
Btw, I believe you should use -pthread instead of -lpthread.
I'll look into enabling the dbi plugin in EL-6. Next time, please open 2 separate bugs because these are really two separate issues.
I was wrong, this is neither a bug in collectd or libmemcached.
It took me a while to find this, and I've gotten a few grey hairs, but it is caused by a bug in libtool #661333
libmemcached correctly uses -pthread to link, but due to the libtool issue this has no effect. Adding -lpthread as a workaround does.
So, first we have to wait for libtool to be fixed, then libmemcached has to be rebuilt, and then I can enable the memcachec plugin in collectd.
collectd-5.3.1-1.fc20 has been submitted as an update for Fedora 20.
collectd-5.3.1-1.fc19 has been submitted as an update for Fedora 19.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing collectd-5.3.1-1.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
collectd-5.3.1-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
collectd-5.3.1-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.