Ad Widget

Collapse

error while running 'make'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arahman
    Junior Member
    • Mar 2006
    • 3

    #1

    error while running 'make'

    Please help me resolve this error.
    Any help is much appreciated
    thanks
    this is the error
    [root@LNDEV02 zabbix-1.1beta7]# make
    Making all in src make[1]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src'
    Making all in libs make[2]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs' Making all in zbxcommon make[3]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxcommon' make[4]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxcommon'
    make[4]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxcrypto'
    make[3]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxcrypto'
    make[3]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxconf' make[4]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxconf' make[4]: Nothing to be done for `all-am'.
    make[4]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxconf'
    make[3]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxconf'
    Making all in zbxdbhigh make[3]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxdbhigh' make[4]: Entering directory `/opt/zabbix/zabbix-1.1beta7/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:38:23: libpq-fe.h: No such file or directory
    In file included from action.c:27: ../../../include/db.h:331: error: syntax error before '*' token
    ../../../include/db.h:331: warning: data definition has no type or storage class
    ../../../include/db.h:332: error: syntax error before '*' token
    ../../../include/db.h:333: error: syntax error before '*' token
    ../../../include/db.h:361: error: syntax error before "PGresult"
    action.c: In function `DBget_action_by_actionid':
    action.c:65: error: `PGresult' undeclared (first use in this function)
    action.c:65: error: (Each undeclared identifier is reported only once
    action.c:65: error: for each function it appears in.)
    action.c:65: error: `result' undeclared (first use in this function)
    make[4]: *** [action.o] Error 1 make[4]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxdbhigh'
    make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxdbhigh'
    -1.1beta7/src/libs/zbxcommon'
    -bash: command substitution: line 1: unexpected EOF while looking for matching `'' -bash: command substitution: line 4: syntax error: unexpected end of file
    -bash: make[1]:: command not found
    [root@LNDEV02 zabbix-1.1beta7]# make[4]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxcommon'
    > make[4]: Nothing to be done for `all-am'.
    > make[4]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxcommon'
    -bash: command substitution: line 1: unexpected EOF while looking for matching `''
    -bash: command substitution: line 3: syntax error: unexpected end of file
    -bash: make[4]:: command not found
    [root@LNDEV02 zabbix-1.1beta7]# make[3]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxcommon'
    > Making all in zbxlog
    > make[3]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxlog'
    > make[4]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxlog'
    -bash: command substitution: line 1: unexpected EOF while looking for matching `''
    -bash: command substitution: line 4: syntax error: unexpected end of file
    -bash: make[3]:: command not found
    [root@LNDEV02 zabbix-1.1beta7]# make[4]: Nothing to be done for `all-am'.
    > make[4]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxlog'
    > make[3]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxlog'
    -bash: command substitution: line 1: unexpected EOF while looking for matching `''
    -bash: command substitution: line 3: syntax error: unexpected end of file
    -bash: make[4]:: command not found
    [root@LNDEV02 zabbix-1.1beta7]# Making all in zbxcrypto
    -bash: Making: command not found
    [root@LNDEV02 zabbix-1.1beta7]# make[3]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxcrypto'
    > make[4]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxcrypto'
    > make[4]: Nothing to be done for `all-am'.
    -bash: command substitution: line 1: unexpected EOF while looking for matching `''
    -bash: command substitution: line 3: syntax error: unexpected end of file
    -bash: make[3]:: command not found
    [root@LNDEV02 zabbix-1.1beta7]# make[4]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxcrypto'
    > make[3]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxcrypto'
    > Making all in zbxpid
    > make[3]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxpid'
    -bash: command substitution: line 1: unexpected EOF while looking for matching `''
    -bash: command substitution: line 3: syntax error: unexpected end of file
    -bash: make[4]:: command not found
    [root@LNDEV02 zabbix-1.1beta7]# make[4]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxpid'
    > make[4]: Nothing to be done for `all-am'.
    > make[4]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxpid'
    -bash: command substitution: line 1: unexpected EOF while looking for matching `''
    -bash: command substitution: line 3: syntax error: unexpected end of file
    -bash: make[4]:: command not found
    [root@LNDEV02 zabbix-1.1beta7]# make[3]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxconf'
    > make[4]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxconf'
    > make[4]: Nothing to be done for `all-am'.
    -bash: command substitution: line 1: unexpected EOF while looking for matching `''
    -bash: command substitution: line 3: syntax error: unexpected end of file
    -bash: make[3]:: command not found
    [root@LNDEV02 zabbix-1.1beta7]# make[4]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxconf'
    > make[3]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxconf'
    > Making all in zbxdbhigh
    > make[3]: Entering directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxdbhigh'
    -bash: command substitution: line 1: unexpected EOF while looking for matching `''
    -bash: command substitution: line 3: syntax error: unexpected end of file
    -bash: make[4]:: command not found
    [root@LNDEV02 zabbix-1.1beta7]# make[4]: Entering directory `/opt/zabbix/zabbix-1.1beta7/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:38:23: libpq-fe.h: No such file or directory
    > In file included from action.c:27:
    > ../../../include/db.h:331: error: syntax error before '*' token
    > ../../../include/db.h:331: warning: data definition has no type or storage class
    > ../../../include/db.h:332: error: syntax error before '*' token
    > ../../../include/db.h:333: error: syntax error before '*' token
    > ../../../include/db.h:361: error: syntax error before "PGresult"
    > action.c: In function `DBget_action_by_actionid':
    > action.c:65: error: `PGresult' undeclared (first use in this function)
    -bash: syntax error near unexpected token `('
    [root@LNDEV02 zabbix-1.1beta7]# action.c:65: error: (Each undeclared identifier is reported only once
    -bash: syntax error near unexpected token `('
    [root@LNDEV02 zabbix-1.1beta7]# action.c:65: error: for each function it appears in.)
    -bash: syntax error near unexpected token `)'
    [root@LNDEV02 zabbix-1.1beta7]# action.c:65: error: `result' undeclared (first use in this function)
    > make[4]: *** [action.o] Error 1
    > make[4]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxdbhigh'
    > make[3]: *** [all-recursive] Error 1
    > make[3]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs/zbxdbhigh'
    -bash: command substitution: line 1: unexpected EOF while looking for matching `''
    -bash: command substitution: line 4: syntax error: unexpected end of file
    -bash: action.c:65:: command not found
    [root@LNDEV02 zabbix-1.1beta7]# make[2]: *** [all-recursive] Error 1
    -bash: make[2]:: command not found
    [root@LNDEV02 zabbix-1.1beta7]# make[2]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src/libs'
    > make[1]: *** [all-recursive] Error 1
    > make[1]: Leaving directory `/opt/zabbix/zabbix-1.1beta7/src'
    > make: *** [all-recursive] Error 1
    >
  • kyi
    Member
    • Jun 2005
    • 64

    #2
    you want to compile zabbix fpr postgresql? if so, install the dev packages

    Comment

    Working...