Ad Widget

Collapse

Compilation problem: Zbx-2.1.8 FreeBSD-7.0 Release

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sowltech
    Junior Member
    • Sep 2013
    • 2

    #1

    Compilation problem: Zbx-2.1.8 FreeBSD-7.0 Release

    Hi everyone.
    I have a problem with installing from source. ZBX Version 2.1.8. I tried 2.1.7 but there is the same problem.

    Configure option --with-libxml2 makes that problem.

    When I run make install, I get the following error:
    checks_simple_vmware.c:235: error: invalid operands to binary -

    # pkg_info | grep xml
    libxml2-2.7.7 XML parser library for GNOME

    also tried with libxml2-2.8.0_2

    FreeBSD 7.0-RELEASE
    I think in the latest release will be the same problem.

    Somebody knows what to do with it?

    p.s. Sorry for my english, it is not perfect.
  • Pada
    Senior Member
    • Apr 2012
    • 236

    #2
    Hi & welcome to the Zabbix forums!

    Make sure that you have the libxml2 development (libxml2-devel) package installed, otherwise compilation will fail.

    To install it, try running: sudo yum install libxml2-devel
    and then try to compile it again.

    If you don't have the above package installed (libxml2-devel), then I would've guessed that the configure process would've stopped you already, and not the compilation process.
    So there may be something else missing/wrong still...
    Last edited by Pada; 23-10-2013, 23:36. Reason: updated response

    Comment

    • Sowltech
      Junior Member
      • Sep 2013
      • 2

      #3
      If you are interested, I solved the problem.
      For libxml2 need THREAD_ALLOC option.
      On FreeBSD 9.2-RELEASE operating system.

      In the FreeBSD 7.0-RELESE is a problem with the build libxml2 with this option.
      I will try to fix it.

      Comment

      • weerok
        Junior Member
        • Nov 2013
        • 4

        #4
        Hello.

        Same problem here.
        PHP Code:
        # uname -a
        FreeBSD freebsd92 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     [email][email protected][/email]:/usr/obj/usr/src/sys/GENERIC  amd64

        latest portsnap

        # pkg_info  |  grep libxml2  
        libxml2-2.8.0_2     XML parser library for GNOME

        cd 
        /home/sc/zabbix-2.2.0rc2/
        make distclean
        ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
        make install 
        libxml2 port was builded with THREAD_ALLOC Per-thread memory (DEVELOPERS ONLY!) and without, same error.

        Code:
        /usr/include/sys/timeb.h:42:2: warning: #warning "this file includes <sys/timeb.h> which is deprecated"
        mv -f .deps/libzbxpoller_a-checks_internal.Tpo .deps/libzbxpoller_a-checks_internal.Po
        gcc -DHAVE_CONFIG_H -I. -I../../../include    -I../../../src/libs/zbxsysinfo/simple -I../../../src/libs/zbxdbcache -g -O2  -I/usr/local/include/mysql -pipe -fno-strict-aliasing -g -DNDEBUG     -I/usr/local/include/libxml2 -I/usr/local/include    -I/usr/local/include -I/usr/local/lib/perl5/5.16/mach/CORE -I/usr/include -I. -I/usr/local/include     -I/usr/local/include -MT libzbxpoller_a-checks_simple.o -MD -MP -MF .deps/libzbxpoller_a-checks_simple.Tpo -c -o libzbxpoller_a-checks_simple.o `test -f 'checks_simple.c' || echo './'`checks_simple.c
        In file included from ../../../include/sysinc.h:378,
                         from ../../../include/common.h:23,
                         from checks_simple_vmware.h:23,
                         from checks_simple.c:20:
        /usr/include/sys/timeb.h:42:2: warning: #warning "this file includes <sys/timeb.h> which is deprecated"
        mv -f .deps/libzbxpoller_a-checks_simple.Tpo .deps/libzbxpoller_a-checks_simple.Po
        gcc -DHAVE_CONFIG_H -I. -I../../../include    -I../../../src/libs/zbxsysinfo/simple -I../../../src/libs/zbxdbcache -g -O2  -I/usr/local/include/mysql -pipe -fno-strict-aliasing -g -DNDEBUG     -I/usr/local/include/libxml2 -I/usr/local/include    -I/usr/local/include -I/usr/local/lib/perl5/5.16/mach/CORE -I/usr/include -I. -I/usr/local/include     -I/usr/local/include -MT libzbxpoller_a-checks_simple_vmware.o -MD -MP -MF .deps/libzbxpoller_a-checks_simple_vmware.Tpo -c -o libzbxpoller_a-checks_simple_vmware.o `test -f 'checks_simple_vmware.c' || echo './'`checks_simple_vmware.c
        In file included from ../../../include/sysinc.h:378,
                         from ../../../include/common.h:23,
                         from checks_simple_vmware.c:20:
        /usr/include/sys/timeb.h:42:2: warning: #warning "this file includes <sys/timeb.h> which is deprecated"
        checks_simple_vmware.c: In function 'vmware_get_events':
        checks_simple_vmware.c:235: error: invalid operands to binary -
        *** [libzbxpoller_a-checks_simple_vmware.o] Error code 1
        
        Stop in /usr/home/sc/zabbix-2.2.0rc2/src/zabbix_server/poller.
        *** [install-recursive] Error code 1
        
        Stop in /usr/home/sc/zabbix-2.2.0rc2/src/zabbix_server.
        *** [install-recursive] Error code 1
        
        Stop in /usr/home/sc/zabbix-2.2.0rc2/src.
        *** [install-recursive] Error code 1
        
        Stop in /usr/home/sc/zabbix-2.2.0rc2.
        Press any key to continue...
        any suggestion ?
        Last edited by weerok; 11-11-2013, 08:44.

        Comment

        • wiper
          Junior Member
          • Jan 2013
          • 8

          #5

          Comment

          • weerok
            Junior Member
            • Nov 2013
            • 4

            #6
            Compilation is successful with revision 40218. Thanx

            PHP Code:
            svn checkout svn://svn.zabbix.com/branches/dev/ZBX-7329 

            Comment

            Working...