Ad Widget

Collapse

Problem installing on Mac OS X

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kayers
    Junior Member
    • Dec 2005
    • 2

    #1

    Problem installing on Mac OS X

    Hey,

    I'm new to Zabbix and wanted to try it out. I'm using the last stable release, and I've been about to configure without complaint, but now when I do 'make', I get the following errors:

    ---------------------------------------------------------------------------------------

    sysinfo.c: In function `KERNEL_MAXFILES':
    sysinfo.c:1644: warning: passing arg 4 of `sysctl' from incompatible pointer type
    sysinfo.c: In function `KERNEL_MAXPROC':
    sysinfo.c:1666: warning: passing arg 4 of `sysctl' from incompatible pointer type
    sysinfo.c: In function `UPTIME':
    sysinfo.c:1702: warning: passing arg 4 of `sysctl' from incompatible pointer type
    ld: warning multiple definitions of symbol _asprintf
    /var/tmp//cc6P44wK.o definition of _asprintf in section (__TEXT,__text)
    /usr/lib/libSystem.dylib(asprintf-LDBL.So) definition of _asprintf
    ld: warning multiple definitions of symbol _vsnprintf
    /var/tmp//cc6P44wK.o definition of _vsnprintf in section (__TEXT,__text)
    /usr/lib/libSystem.dylib(vsnprintf-LDBL.So) definition of _vsnprintf
    Making all in src/zabbix_sender
    gcc -o ../../bin/zabbix_sender -g -O2 -I../../include ../../include/snprintf.c zabbix_sender.c
    ld: warning multiple definitions of symbol _asprintf
    /var/tmp//cc3FQTuf.o definition of _asprintf in section (__TEXT,__text)
    /usr/lib/libSystem.dylib(asprintf-LDBL.So) definition of _asprintf
    Making all in src/zabbix_sucker
    gcc -o ../../bin/zabbix_suckerd -g -O2 -I../../include -I/usr/local/mysql-standard-4.1.15-apple-darwin8.2.0-powerpc/include zabbix_sucker.c ../../include/db.c ../../include/functions.c ../../include/expression.c ../../include/cfg.c ../../include/log.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c ../zabbix_agent/sysinfo.c alerter.c pinger.c housekeeper.c -Wall -L/usr/local/mysql-standard-4.1.15-apple-darwin8.2.0-powerpc/lib -lmysqlclient -lz
    ../zabbix_agent/sysinfo.c: In function `KERNEL_MAXFILES':
    ../zabbix_agent/sysinfo.c:1644: warning: passing arg 4 of `sysctl' from incompatible pointer type
    ../zabbix_agent/sysinfo.c: In function `KERNEL_MAXPROC':
    ../zabbix_agent/sysinfo.c:1666: warning: passing arg 4 of `sysctl' from incompatible pointer type
    ../zabbix_agent/sysinfo.c: In function `UPTIME':
    ../zabbix_agent/sysinfo.c:1702: warning: passing arg 4 of `sysctl' from incompatible pointer type
    ld: warning multiple definitions of symbol _asprintf
    /var/tmp//ccRxXg5B.o definition of _asprintf in section (__TEXT,__text)
    /usr/lib/libSystem.dylib(asprintf-LDBL.So) definition of _asprintf
    ld: warning multiple definitions of symbol _vsnprintf
    /var/tmp//ccRxXg5B.o definition of _vsnprintf in section (__TEXT,__text)
    /usr/lib/libSystem.dylib(vsnprintf-LDBL.So) definition of _vsnprintf
    ld: Undefined symbols:
    _fprintf$LDBLStub
    _sprintf$LDBLStub
    _printf$LDBLStub
    _vsprintf$LDBLStub
    make[1]: *** [all] Error 1
    make: *** [all] Error 1

    ---------------------------------------------------------------------------------------

    I don't believe this is really a zabbix problem, but I'm not sure. Does anyone have any suggests? Thanks in advance for your help.

    Actually, now that I look at it, it's similar to other posts I've seen... I'll go back and look, but I'm going to post this thread anyway...
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    What's your version of Mac OS/X? Version of ZABBIX?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • kayers
      Junior Member
      • Dec 2005
      • 2

      #3
      I'm running Tiger 10.4.3, and at that time I was trying to install Zabbix 1.0. I switched to the beta and encountered similar problems... I've been able to get it to build by doing these steps:

      1. ./configure --enable-server --with-mysql=/usr/local/mysql-standard-4.1.15-apple-darwin8.20-powerpc --enable-agent
      (why mysql is here, I don't know)

      2. Change PACKETSZ in common.c to NS_PACKETSZ (courtesy of another post's information)

      3. in Makefile.in: change zabbix_server_LDADD to include /usr/local/mysql/lib/libmysqlclient.a (again, found this in another post)

      4. Be sure to use gcc 4.0.1. (gcc_select 4.0.1 in command line; I was using 3.3)

      Now it compiles fine. Thought I should write down what I had to do, just in case someone else needs it.

      Comment

      Working...