8000 lm_sensors-3.5.0 not supported yet · Issue #3006 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
lm_sensors-3.5.0 not supported yet #3006
Closed
@vesath

Description

@vesath

Building collectd-5.8.1 against lm_sensors-3.5.0 yields:

src/sensors.c:165:2: error: #error "This version of libsensors is not supported yet. Please report this " "as bug."
 #error "This version of libsensors is not supported yet. Please report this " \
  ^~~~~
src/sensors.c:169:8: error: unknown type name 'featurelist_t'
 static featurelist_t *first_feature = NULL;
        ^~~~~~~~~~~~~
In file included from src/sensors.c:38:
src/sensors.c: In function 'sensors_config':
src/sensors.c:212:13: error: 'conffile' undeclared (first use in this function); did you mean 'confstr'?
       sfree(conffile);
             ^~~~~~~~
./src/daemon/common.h:41:10: note: in definition of macro 'sfree'
     free(ptr);                                                                 \
          ^~~
src/sensors.c:212:13: note: each undeclared identifier is reported only once for each function it appears in
       sfree(conffile);
             ^~~~~~~~
./src/daemon/common.h:41:10: note: in definition of macro 'sfree'
     free(ptr);                                                                 \
          ^~~
src/sensors.c: In function 'sensors_free_features':
src/sensors.c:239:3: error: unknown type name 'featurelist_t'; did you mean 'ignorelist_t'?
   featurelist_t *nextft;
   ^~~~~~~~~~~~~
   ignorelist_t
src/sensors.c:246:8: error: unknown type name 'featurelist_t'; did you mean 'ignorelist_t'?
   for (featurelist_t *thisft = first_feature; thisft != NULL; thisft = nextft) {
        ^~~~~~~~~~~~~
        ignorelist_t
src/sensors.c:247:20: error: request for member 'next' in something not a structure or union
     nextft = thisft->next;
                    ^~
src/sensors.c: In function 'sensors_load_conf':
src/sensors.c:257:3: error: unknown type name 'featurelist_t'; did you mean 'ignorelist_t'?
   featurelist_t *last_feature = NULL;
   ^~~~~~~~~~~~~
   ignorelist_t
src/sensors.c:269:7: error: 'conffile' undeclared (first use in this function); did you mean 'confstr'?
   if (conffile != NULL) {
       ^~~~~~~~
       confstr

And the compilation aborts.

I am reporting this as instructed by the error message above. Note that lm_sensors-3.5.0 ships with the soname libsensors.so.5.0.0 instead of the old libsensors.so.4.4.0. Its headers also define SENSORS_API_VERSION 0x500.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0