Ad Widget

Collapse

cygwin and make

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michu
    Junior Member
    • Nov 2004
    • 20

    #1

    cygwin and make

    hey

    well i managed to install cygwin and compile/install net snmp and mysql. the configure of zabbix with net-snmp and mysql are running without a problem... but when i try a make, i get the following error:

    $ make
    Making all in src/zabbix_agent
    make[1]: Entering directory `/tmp/zabbix-1.0/src/zabbix_agent'
    gcc -o ../../bin/zabbix_agent -g -O2 -I../../include zabbix_agent.c sysinfo.c .
    ./../include/log.c ../../include/cfg.c ../../include/security.c ../../include/sn
    printf.c -Wall
    In file included from sysinfo.c:120:
    sysinfo.h:49: error: parse error before "struct"
    sysinfo.h:50: error: parse error before "struct"
    sysinfo.h:51: error: parse error before "struct"
    sysinfo.h:52: error: parse error before "struct"
    sysinfo.h:53: error: parse error before "struct"
    sysinfo.h:54: error: parse error before "struct"
    sysinfo.c:1076: error: parse error before "struct"
    sysinfo.c: In function `NETLOADIN1':
    sysinfo.c:1080: error: parse error before "struct"
    sysinfo.c: At top level:
    sysinfo.c:1085: error: parse error before "struct"
    sysinfo.c: In function `NETLOADIN5':
    sysinfo.c:1089: error: parse error before "struct"
    sysinfo.c: At top level:
    sysinfo.c:1094: error: parse error before "struct"
    sysinfo.c: In function `NETLOADIN15':
    sysinfo.c:1098: error: parse error before "struct"
    sysinfo.c: At top level:
    sysinfo.c:1103: error: parse error before "struct"
    sysinfo.c: In function `NETLOADOUT1':
    sysinfo.c:1107: error: parse error before "struct"
    sysinfo.c: At top level:
    sysinfo.c:1112: error: parse error before "struct"
    sysinfo.c: In function `NETLOADOUT5':
    sysinfo.c:1116: error: parse error before "struct"
    sysinfo.c: At top level:
    sysinfo.c:1121: error: parse error before "struct"
    sysinfo.c: In function `NETLOADOUT15':
    sysinfo.c:1125: error: parse error before "struct"
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/tmp/zabbix-1.0/src/zabbix_agent'
    make: *** [all] Error 1

    version is 1.0

    regards
  • riegersteve
    Member
    • Oct 2004
    • 68

    #2
    am assuming that this will be on windows,

    here is what i would do,

    mysql and apache for windows install

    get unix_for_windows from MS, then configure and make zabbix, and point the windows apache to serve the pages


    cygwin is not unix, it is a very nice shell, and a lot more, but it willl not do everything

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Can one run all ZABBIX processes, provided unix_for_windows is used? Does everything compile well in this environment?
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • michu
        Junior Member
        • Nov 2004
        • 20

        #4
        hey, thanks you your reply:

        >am assuming that this will be on windows,
        >here is what i would do,
        >mysql and apache for windows install
        >get unix_for_windows from MS, then configure and make zabbix, and point the >windows apache to serve the pages

        cygwin is allways windows yes...
        mysql and apache are installed in the win box but i need the header file and libs from apache and mysql fpr the cygwin env. to compile,...

        >Can one run all ZABBIX processes, provided unix_for_windows is used? Does >everything compile well in this environment?

        i dont know... but i want i think cygwin is the better soulutions...
        the ./conifguer --with-mysql --with-apache runns fine, without errors.. the make command fails, as descr. in the 1st post

        Comment

        Working...