Ad Widget

Collapse

compiling 1.1.2 on debian with postgresql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • holycow
    Junior Member
    • Oct 2006
    • 1

    #1

    compiling 1.1.2 on debian with postgresql

    hi guys.

    i'm trying to compile zabbix 1.1.2 on debian sarge with postgres support because the 1.1 packages available don't support pg.

    i think i have most of the requirements down pretty well but make now errors out. would anyone be able to offer advice on how to proceed further to a successufull compilation so i can generate some debs out of this stuff?

    os: Linux debian 2.6.8-3-686 #1 Thu Feb 9 07:39:48 UTC 2006 i686 GNU/Linux

    make error:

    ...........

    ranlib libzbxconf.a
    make[4]: Leaving directory `/tmp/zabbix-1.1.2/src/libs/zbxconf'
    make[3]: Leaving directory `/tmp/zabbix-1.1.2/src/libs/zbxconf'
    Making all in zbxdbhigh
    make[3]: Entering directory `/tmp/zabbix-1.1.2/src/libs/zbxdbhigh'
    make[4]: Entering directory `/tmp/zabbix-1.1.2/src/libs/zbxdbhigh'
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I/usr/local/pgsql/include -g -O2 -MT action.o -MD -MP -MF ".deps/action.Tpo" -c -o action.o action.c; \
    then mv -f ".deps/action.Tpo" ".deps/action.Po"; else rm -f ".deps/action.Tpo"; exit 1; fi
    In file included from action.c:27:
    ../../../include/db.h:42:29: libpq-fe.h: No such file or directory
    In file included from action.c:27:
    ../../../include/db.h:81: error: syntax error before "PGresult"
    ../../../include/db.h:81: warning: no semicolon at end of struct or union
    ../../../include/db.h:86: error: syntax error before '}' token
    ../../../include/db.h:86: warning: data definition has no type or storage class
    ../../../include/db.h:88: error: syntax error before '*' token
    ../../../include/db.h:334: error: syntax error before '*' token
    ../../../include/db.h:334: warning: data definition has no type or storage class
    ../../../include/db.h:335: error: syntax error before '*' token
    ../../../include/db.h:335: warning: data definition has no type or storage class
    ../../../include/db.h:336: error: syntax error before '*' token
    action.c: In function `DBget_action_by_actionid':
    action.c:61: error: `result' undeclared (first use in this function)
    action.c:61: error: (Each undeclared identifier is reported only once
    action.c:61: error: for each function it appears in.)
    make[4]: *** [action.o] Error 1
    make[4]: Leaving directory `/tmp/zabbix-1.1.2/src/libs/zbxdbhigh'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/tmp/zabbix-1.1.2/src/libs/zbxdbhigh'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/tmp/zabbix-1.1.2/src/libs'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/tmp/zabbix-1.1.2/src'
    make: *** [all-recursive] Error 1


    Please let me know if there is anything else about my envrionment that i can paste to help track down this issue.

    Thanks for any help ahead of time!
Working...