Install problem on CentOs
-
Hi experts,
I installed Netxms but error when running make install step:
make[4]: Nothing to be done for `install-data-am'. make[4]: Leaving directory `/tmp/netxms-2.0-M1/src/server/core' make[3]: Leaving directory `/tmp/netxms-2.0-M1/src/server/core' Making install in netxmsd make[3]: Entering directory `/tmp/netxms-2.0-M1/src/server/netxmsd' CXX netxmsd-netxmsd.o netxmsd.cpp: In function âBOOL ParseCommandLine(int, char**)â: netxmsd.cpp:232: warning: use of âhâ length modifier with âsâ type character netxmsd.cpp: In function âint main(int, char**)â: netxmsd.cpp:412: warning: use of âhâ length modifier with âsâ type character CXXLD netxmsd ../core/.libs/libnxcore.so: undefined reference to `__sync_add_and_fetch_4' ../core/.libs/libnxcore.so: undefined reference to `__sync_sub_and_fetch_4' collect2: ld returned 1 exit status make[3]: *** [netxmsd] Error 1 make[3]: Leaving directory `/tmp/netxms-2.0-M1/src/server/netxmsd' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/tmp/netxms-2.0-M1/src/server' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/tmp/netxms-2.0-M1/src' make: *** [install-recursive] Error 1Although i tried:
CFLAGS="-march=i686" ./configure --with-server --with-mysql --with-agent make -j2 clean allBut still problem
System: CentOS release 5.11 (Final)
Java version: java version "1.6.0_33"
OpenJDK Runtime Environment (IcedTea6 1.13.5) (rhel-1.13.5.0.el5_11-i386)
OpenJDK Server VM (build 23.25-b01, mixed mode)
Tomcat: 7.0.57Any suggestion please let me know.
Regards,
-
Hi,
try to use CPPFLAGS instead of CFLAGS - CFLAGS only affect C sources, while CPPFLAGS affects both C and C++.
Best regards,
Victor -
Hello Victor,
Seems to success with used CPPFLAGS instead of CFLAGS
But still error with "make install" step
make install-exec-hook make[6]: Entering directory `/tmp/netxms-2.0-M1/src/agent/subagents/linux' mv -f /usr/local/lib/netxms/linux.so /usr/local/lib/netxms/linux.nsm rm -f /usr/local/lib/netxms/linux.la rm -f /usr/local/lib/libnsm_linux.so ln -s netxms/linux.nsm /usr/local/lib/libnsm_linux.so make[6]: Leaving directory `/tmp/netxms-2.0-M1/src/agent/subagents/linux' make[5]: Nothing to be done for `install-data-am'. make[5]: Leaving directory `/tmp/netxms-2.0-M1/src/agent/subagents/linux' make[4]: Leaving directory `/tmp/netxms-2.0-M1/src/agent/subagents/linux' Making install in lmsensors make[4]: Entering directory `/tmp/netxms-2.0-M1/src/agent/subagents/lmsensors' CXX lmsensors_la-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 main.cpp: In function 'BOOL SubagentInit(Config*)': main.cpp:189: warning: use of 'h' length modifier with 's' type character make[4]: *** [lmsensors_la-main.lo] Error 1 make[4]: Leaving directory `/tmp/netxms-2.0-M1/src/agent/subagents/lmsensors' make[3]: *** [install-recursive] Error 1 make[3]: Leaving directory `/tmp/netxms-2.0-M1/src/agent/subagents' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/tmp/netxms-2.0-M1/src/agent' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/tmp/netxms-2.0-M1/src' make: *** [install-recursive] Error 1Do i miss any configuration?
Any help is appreciated,
Regards,
-
You have incompatible version of lmsensors-dev. Please show output of "rpm -qa | grep sensors"
-
-
There are two options:
- upgrade lm_sensors to version 3 (API was changed since v2)
- disabled this subagent using "--disable-lmsensors" argument for configure.
-
Hi,
- I only upgrade system by using repository. But here is my kernel:
2.6.18-400.1.1.el5PAE #1 SMP Thu Dec 18 01:38:34 EST 2014 i686 i686 i386 GNU/Linux
I am looking around but may not lmsensor v3 for i686. - If i disabled lmsensors, any affective to system?
Regards,
- I only upgrade system by using repository. But here is my kernel:
-
It will disabled build of lm_sensors subagent. System itself will work perfectly well, but you will not be able to collect hardware metrics like temperature and voltages.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login