Ошибки после обновления с 1.0.7 до 1.2.0

Started by inspirit, May 29, 2012, 12:12:19 PM

Previous topic - Next topic

inspirit

Не собирается.

Making all in lmsensors
make[5]: Entering directory `/root/netxms-1.2.1/src/agent/subagents/lmsensors'
  CXX    main.lo
main.cpp: In function 'bool getSensorValue(char*, char*, double*)':
main.cpp:57: error: cannot convert 'sensors_chip_name*' to 'int*' for argument '1' to 'const sensors_chip_name* sensors_get_detected_chips(int*)'
main.cpp:58: error: expected initializer before '*' token
main.cpp:61: error: 'feature' was not declared in this scope
main.cpp:61: error: 'sensors_get_features' was not declared in this scope
main.cpp:73: error: 'sensors_subfeature_type' was not declared in this scope
main.cpp:73: error: expected `;' before 'types'
main.cpp:74: error: 'types' was not declared in this scope
main.cpp:74: error: 'SENSORS_SUBFEATURE_UNKNOWN' was not declared in this scope
main.cpp:76: error: 'SENSORS_FEATURE_TEMP' was not declared in this scope
main.cpp:77: error: 'SENSORS_SUBFEATURE_TEMP_INPUT' was not declared in this scope
main.cpp:79: error: 'SENSORS_FEATURE_IN' was not declared in this scope
main.cpp:80: error: 'SENSORS_SUBFEATURE_IN_INPUT' was not declared in this scope
main.cpp:82: error: 'SENSORS_FEATURE_FAN' was not declared in this scope
main.cpp:83: error: 'SENSORS_SUBFEATURE_FAN_INPUT' was not declared in this scope
main.cpp:85: error: 'SENSORS_FEATURE_VID' was not declared in this scope
main.cpp:86: error: 'SENSORS_SUBFEATURE_VID' was not declared in this scope
main.cpp:88: error: 'SENSORS_FEATURE_POWER' was not declared in this scope
main.cpp:94: error: 'SENSORS_SUBFEATURE_POWER_INPUT' was not declared in this scope
main.cpp:95: error: 'SENSORS_SUBFEATURE_POWER_AVERAGE' was not declared in this scope
main.cpp:97: error: 'SENSORS_FEATURE_ENERGY' was not declared in this scope
main.cpp:98: error: 'SENSORS_SUBFEATURE_ENERGY_INPUT' was not declared in this scope
main.cpp:100: error: 'SENSORS_FEATURE_CURR' was not declared in this scope
main.cpp:101: error: 'SENSORS_SUBFEATURE_CURR_INPUT' was not declared in this scope
main.cpp:105: error: expected initializer before '*' token
main.cpp:106: error: 'subFeature' was not declared in this scope
main.cpp:107: error: 'sensors_get_subfeature' was not declared in this scope
main.cpp:109: error: 'subFeature' was not declared in this scope
main.cpp:111: error: 'sensors_get_value' was not declared in this scope
main.cpp:113: error: 'SENSORS_FEATURE_TEMP' was not declared in this scope
main.cpp:124: error: 'sensors_free_chip_name' was not declared in this scope
make[5]: *** [main.lo] Error 1
make[5]: Leaving directory `/root/netxms-1.2.1/src/agent/subagents/lmsensors'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/root/netxms-1.2.1/src/agent/subagents'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/netxms-1.2.1/src/agent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/netxms-1.2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/netxms-1.2.1'
make: *** [all] Error 2

Стоит Centos 5.2
lm_sensors-2.10.7-9.el5
lm_sensors-devel-2.10.7-9.el5

Это виртуалка, так что никаких сенсоров там нет :)
что делать?


Alex Kirhenshtein

Код написан под lm_sensors-3, но вот configure не проверяет версию - только наличие.
Постараюсь сегодня починить.

Victor Kirhenshtein

Можно попробовать деинсталлировать lm_sensors или только lm_sensors-devel-2.10.7-9.el5, раз они все равно на виртуалке не нужны.

blacat


kozlov_ao

нее.. я до вечера подожду. :) машина боевая.
Сразу вопрос (сорри за офтоп). Под Unix появился lmsensors, а под винду ниче вразумительного не придумалии случаем? :)

inspirit


inspirit

Живет стабильно. Спасибо за оперативность :)

blacat

Подтверждаю. Живет.
Спасибо.

PS: другая засада теперь, консоль под макось 1.2.1 отсутствует  ;D

Alex Kirhenshtein


blacat