Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make[1]: *** [src/lvm_la-lvm.lo] Error 1 #7

Open
storagebit opened this issue Mar 26, 2020 · 1 comment
Open

make[1]: *** [src/lvm_la-lvm.lo] Error 1 #7

storagebit opened this issue Mar 26, 2020 · 1 comment

Comments

@storagebit
Copy link

  • Version of collectd: 5.110
  • Operating system / distribution: CentOS7.7

Expected behavior

Compiles without error.

Actual behavior

Compile/make fails with the error as below.

In file included from src/lvm.c:24:0:
/usr/include/lvm2app.h:22:2: error: #warning "liblvm2app is deprecated, use D-Bus API instead." [-Werror=cpp]
 #warning "liblvm2app is deprecated, use D-Bus API instead."
  ^
cc1: all warnings being treated as errors
make[1]: *** [src/lvm_la-lvm.lo] Error 1
make[1]: Leaving directory

Steps to reproduce

Run make

Temporary and dirty fix to run the make task is to edit the /etc/src/lvm2app.h header file and patch a few lines as below.

/*
#ifndef _BUILDING_LVM
#warning "liblvm2app is deprecated, use D-Bus API instead."
#endif
*/

But this can only be a temporary workaround.

Cheers!
Andreas

@LiXi-storage
Copy link
Collaborator

@storagebit

I am not sure whether you are using LVM plugin. In LustrePerfMon, when building collectd, LVM plugin is disabled:

command = ('cd %s && ' 'rpmbuild -ba --with write_tsdb --with nfs --without java ' '--without amqp --without gmond --without nut --without pinba ' '--without ping --without varnish --without dpdkstat ' '--without turbostat --without redis --without write_redis ' '--without gps --without lvm --define "_topdir %s" ' '--define="rev $(git rev-parse --short HEAD)" ' '--define="dist .el%s" ' 'contrib/redhat/collectd.spec' % (host_collectd_git_dir, host_collectd_git_dir, distro_number))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants