Ad Widget

Collapse

trunk build failed...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • frater
    Senior Member
    • Oct 2010
    • 340

    #1

    trunk build failed...

    I have successfully built zabbix alphas, betas, RC's and trunk from source on this server. I'm currently running zabbix-2.0.0rc2 with the PHP-frontend from the trunk (rc3).
    I now wanted to replace my RC2 binaries with the ones from trunk.

    I've seen this error before in the past, but do think I successfully compiled some of the trunk-versions (not 100% sure).

    AFAIK this sequence of commands should work

    Code:
    cd /opt
    rm -rf trunk
    svn co svn://svn.zabbix.com/trunk
    cd trunk
    ./bootstrap.sh
    ./configure --enable-agent --enable-server --with-mysql --with-net-snmp --with-libcurl --sysconfdir=/etc/zabbix
    make install
    On my system it ends with this:
    Code:
    make[3]: Entering directory `/opt/trunk/src/libs/zbxdbhigh'
    gcc -DHAVE_CONFIG_H -I. -I../../../include    -I../../../src/zabbix_server/ -g -O2  -I/usr/include/mysql  -DBIG_JOINS=1  -fno-strict-aliasing   -DUNIV_LINUX -DUNIV_LINUX       -I/usr/local/include -I/usr/lib/perl/5.10/CORE -I. -I/usr/include      -MT libzbxdbhigh_a-host.o -MD -MP -MF .deps/libzbxdbhigh_a-host.Tpo -c -o libzbxdbhigh_a-host.o `test -f 'host.c' || echo './'`host.c
    mv -f .deps/libzbxdbhigh_a-host.Tpo .deps/libzbxdbhigh_a-host.Po
    gcc -DHAVE_CONFIG_H -I. -I../../../include    -I../../../src/zabbix_server/ -g -O2  -I/usr/include/mysql  -DBIG_JOINS=1  -fno-strict-aliasing   -DUNIV_LINUX -DUNIV_LINUX       -I/usr/local/include -I/usr/lib/perl/5.10/CORE -I. -I/usr/include      -MT libzbxdbhigh_a-db.o -MD -MP -MF .deps/libzbxdbhigh_a-db.Tpo -c -o libzbxdbhigh_a-db.o `test -f 'db.c' || echo './'`db.c
    mv -f .deps/libzbxdbhigh_a-db.Tpo .deps/libzbxdbhigh_a-db.Po
    make[3]: *** No rule to make target `dbschema.c', needed by `libzbxdbhigh_a-dbschema.o'. Stop.
    make[3]: Leaving directory `/opt/trunk/src/libs/zbxdbhigh'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/opt/trunk/src/libs'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/opt/trunk/src'
    make: *** [install-recursive] Error 1
    It should be easy to replicate this behaviour.



    I just tested it on another Ubuntu 10.04 LTS and there the configure went sour. I think I don't have all the prerequisites...
    Can you give a hint for that one?

    Code:
    checking for -rdynamic linking option... yes
    ./configure: line 8084: syntax error near unexpected token `IKSEMEL,iksemel,'
    ./configure: line 8084: `               PKG_CHECK_MODULES(IKSEMEL,iksemel,'
    root@ns6:/opt/trunk# aptitude search iksemel                                                                  i   libiksemel-dev                                 - C library for the Jabber IM platform
    i   libiksemel-utils                               - utilities from the iksemel library
    i A libiksemel3                                    - C library for the Jabber IM platform
    Zabbix agents on Linux, FreeBSD, Windows, AVM-Fritz!box, DD-WRT and QNAP
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    i like when two questions can be answered with a single url

    Join the friendly and open Zabbix community on our forums and social media platforms.
    Zabbix 3.0 Network Monitoring book

    Comment

    • frater
      Senior Member
      • Oct 2010
      • 340

      #3
      OK...
      Took a look at that page.

      This works:

      Code:
      if cd /opt ; then
        rm -rf trunk
        if [ -z "`which pkg-config`" ] ; then
          apt-get install pkg-config 2>/dev/null || yum install pkgconfig
        fi
        if [ -z "`which svn`" ] ; then
          apt-get install subversion 2>/dev/null || yum install subversion
        fi
        svn co svn://svn.zabbix.com/trunk
        if [ -d trunk ] ; then
          cd trunk
          make dbschema
          make dist
          ./bootstrap.sh
          ./configure --enable-agent --enable-server --with-mysql --with-net-snmp --with-libcurl --sysconfdir=/etc/zabbix
          make install
        else
          echo "SVN did not succeed"
        fi
      fi
      Zabbix agents on Linux, FreeBSD, Windows, AVM-Fritz!box, DD-WRT and QNAP

      Comment

      Working...