Skip to content

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

@storagebit

Description

@storagebit
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions