Ad Widget

Collapse

compilation problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bobrivers
    Senior Member
    • Feb 2007
    • 115

    #1

    compilation problem

    Hi,

    I think that this problem isn't related with Zabbix, but at least it's a compatibility issue.

    I'm traying to compile zabbix 1.3.4 (./configure --with-libcurl --with-net-snmp --with-mysql --enable-server --enable-agent) using a RedHat AS 4 update 4. The configuration step is done with no errors.

    But, when I try to make it, I receive the following error:

    PHP Code:
    [root@sv-xpto-01 zabbix-1.3.4]# make install
    Making install in create
    make
    [1]: Entering directory `/tmp/zabbix-1.3.4/create'
    Making install in schema
    make[2]: Entering directory 
    `/tmp/zabbix-1.3.4/create/schema'
    make[3]: Entering directory `/tmp/zabbix-1.3.4/create/schema'
    make[3]: Nothing to be done for `install-exec-am'.
    make[3]: Nothing to be done for 
    `install-data-am'.
    make[3]: Leaving directory `/tmp/zabbix-1.3.4/create/schema'
    make[2]: Leaving directory `/tmp/zabbix-1.3.4/create/schema'
    make[2]: Entering directory 
    `/tmp/zabbix-1.3.4/create'
    make[3]: Entering directory `/tmp/zabbix-1.3.4/create'
    make[3]: Nothing to be done for `install-exec-am'.
    make[3]: Nothing to be done for 
    `install-data-am'.
    make[3]: Leaving directory `/tmp/zabbix-1.3.4/create'
    make[2]: Leaving directory `/tmp/zabbix-1.3.4/create'
    make[1]: Leaving directory 
    `/tmp/zabbix-1.3.4/create'
    Making install in misc
    make[1]: Entering directory `/tmp/zabbix-1.3.4/misc'
    make[2]: Entering directory `/tmp/zabbix-1.3.4/misc'
    make[2]: Nothing to be done for 
    `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'
    .
    make[2]: Leaving directory `/tmp/zabbix-1.3.4/misc'
    make[1]: Leaving directory 
    `/tmp/zabbix-1.3.4/misc'
    Making install in src
    make[1]: Entering directory `/tmp/zabbix-1.3.4/src'
    Making install in libs
    make
    [2]: Entering directory `/tmp/zabbix-1.3.4/src/libs'
    Making install in zbxcrypto
    make[3]: Entering directory 
    `/tmp/zabbix-1.3.4/src/libs/zbxcrypto'
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include     -g -O2   -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing   -I/usr/include -MT md5.o -MD -MP -MF ".deps/md5.Tpo" -c -o md5.o md5.c; \
    then mv -f ".deps/md5.Tpo" ".deps/md5.Po"; else rm -f ".deps/md5.Tpo"; exit 1; fi
    cc1: invalid option `tune=pentium4'
    make[3]: *** [md5.oError 1
    make
    [3]: Leaving directory `/tmp/zabbix-1.3.4/src/libs/zbxcrypto'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory 
    `/tmp/zabbix-1.3.4/src/libs'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/tmp/zabbix-1.3.4/src'
    make: *** [install-recursiveError 1 
    I never figured, but the default RHEL AS 4 seems to have 3 versions of gcc: 3.2.3, 3.4.3 and 4.1.0. And, by default it uses the 3.2.3 version.

    So, does anybody managed to compile zabbix using a RHEL AS 4 box? And (a little bit off topic) how do I select another version of compiler, since it's installed (at least seems to be)?

    TIA,

    Bob
  • bobrivers
    Senior Member
    • Feb 2007
    • 115

    #2
    Solved

    Solved with export CC=gcc4

    Comment

    Working...