Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Install problem on CentOs

Install problem on CentOs

Scheduled Pinned Locked Moved Support
9 Posts 3 Posters 27.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    T
    trungmv
    wrote on last edited by
    #1

    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 1
    

    Although i tried:

    CFLAGS="-march=i686" ./configure --with-server --with-mysql --with-agent
    make -j2 clean all
    

    But 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.57

    Any suggestion please let me know.

    Regards,

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi,

      try to use CPPFLAGS instead of CFLAGS - CFLAGS only affect C sources, while CPPFLAGS affects both C and C++.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • T
        T
        trungmv
        wrote on last edited by
        #3

        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 1
        

        Do i miss any configuration?

        Any help is appreciated,

        Regards,

        1 Reply Last reply
        0
        • A
          A
          Alex Kirhenshtein
          wrote on last edited by
          #4

          You have incompatible version of lmsensors-dev. Please show output of "rpm -qa | grep sensors"

          1 Reply Last reply
          0
          • T
            T
            trungmv
            wrote on last edited by
            #5

            Hi,

            Here is my lmsensor verion:

            #rpm -qa | grep sensors
            lm_sensors-2.10.7-9.el5
            lm_sensors-devel-2.10.7-9.el5
            

            Any suggestion, please let me know

            Regards,

            1 Reply Last reply
            0
            • A
              A
              Alex Kirhenshtein
              wrote on last edited by
              #6

              There are two options:

              1. upgrade lm_sensors to version 3 (API was changed since v2)
              2. disabled this subagent using "--disable-lmsensors" argument for configure.
              1 Reply Last reply
              0
              • T
                T
                trungmv
                wrote on last edited by
                #7

                Hi,

                1. 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.
                2. If i disabled lmsensors, any affective to system?

                Regards,

                1 Reply Last reply
                0
                • A
                  A
                  Alex Kirhenshtein
                  wrote on last edited by
                  #8

                  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.

                  1 Reply Last reply
                  0
                  • T
                    T
                    trungmv
                    wrote on last edited by
                    #9

                    Many Thanks,

                    Now i will try install on x64 and seems to fine.

                    I stated to study this tools.

                    Best regards,

                    1 Reply Last reply
                    0

                    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
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    Powered by NodeBB Contributors
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups