Hi,
I have used the following make command with 2.5.1 successfully in the past:
make -f Makefile.init makefiles CCARGS="-I/usr/include
-I/usr/include/mysql -I/usr/include/openssl -I/usr/include/sasl
-DUSE_SASL_AUTH -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DHAS_LDAP -DHAS_MYSQL
-DHAS_PGSQL -DUSE_TLS" AUXLIBS="-L/usr/lib -L/usr/lib -L/usr/lib/mysql
-lmysqlclient -L/usr/lib/pgsql -lcrypto -lldap -llber -lm -lpq -lsasl2
-lssl -lz"
However, when I try to perform a make with the above command on the
2.5.4 source I am getting these errors:
dict_pgsql.c:156:26: error: postgres_ext.h: No such file or directory
dict_pgsql.c:157:22: error: libpq-fe.h: No such file or directory
dict_pgsql.c:193: error: expected specifier-qualifier-list before ‘PGconn’
dict_pgsql.c:229: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
dict_pgsql.c: In function ‘dict_pgsql_quote’:
dict_pgsql.c:267: error: ‘HOST’ has no member named ‘stat’
dict_pgsql.c:303: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:313: error: ‘HOST’ has no member named ‘hostname’
dict_pgsql.c:313: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:314: error: ‘HOST’ has no member named ‘stat’
dict_pgsql.c: In function ‘dict_pgsql_lookup’:
dict_pgsql.c:324: error: ‘PGresult’ undeclared (first use in this function)
dict_pgsql.c:324: error: (Each undeclared identifier is reported only once
dict_pgsql.c:324: error: for each function it appears in.)
dict_pgsql.c:324: error: ‘query_res’ undeclared (first use in this function)
dict_pgsql.c:404: warning: assignment makes pointer from integer without
a cast
dict_pgsql.c: In function ‘dict_pgsql_check_stat’:
dict_pgsql.c:426: error: ‘HOST’ has no member named ‘stat’
dict_pgsql.c:426: error: ‘HOST’ has no member named ‘type’
dict_pgsql.c:428: error: ‘HOST’ has no member named ‘stat’
dict_pgsql.c:428: error: ‘HOST’ has no member named ‘ts’
dict_pgsql.c:428: error: ‘HOST’ has no member named ‘ts’
dict_pgsql.c: In function ‘dict_pgsql_get_active’:
dict_pgsql.c:477: error: ‘HOST’ has no member named ‘hostname’
dict_pgsql.c:493: error: ‘HOST’ has no member named ‘hostname’
dict_pgsql.c:495: error: ‘HOST’ has no member named ‘stat’
dict_pgsql.c: In function ‘dict_pgsql_event’:
dict_pgsql.c:509: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c: At top level:
dict_pgsql.c:520: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
dict_pgsql.c: In function ‘plpgsql_connect_single’:
dict_pgsql.c:627: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:627: error: ‘HOST’ has no member named ‘name’
dict_pgsql.c:627: error: ‘HOST’ has no member named ‘port’
dict_pgsql.c:629: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:629: error: ‘CONNECTION_OK’ undeclared (first use in this
function)
dict_pgsql.c:631: error: ‘HOST’ has no member named ‘hostname’
dict_pgsql.c:631: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:638: error: ‘HOST’ has no member named ‘hostname’
dict_pgsql.c:646: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:648: error: ‘HOST’ has no member named ‘hostname’
dict_pgsql.c:654: error: ‘HOST’ has no member named ‘stat’
dict_pgsql.c: In function ‘plpgsql_close_host’:
dict_pgsql.c:661: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:662: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:663: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:664: error: ‘HOST’ has no member named ‘stat’
dict_pgsql.c: In function ‘plpgsql_down_host’:
dict_pgsql.c:673: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:674: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:675: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:676: error: ‘HOST’ has no member named ‘ts’
dict_pgsql.c:677: error: ‘HOST’ has no member named ‘stat’
dict_pgsql.c: In function ‘host_init’:
dict_pgsql.c:799: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:800: error: ‘HOST’ has no member named ‘hostname’
dict_pgsql.c:801: error: ‘HOST’ has no member named ‘stat’
dict_pgsql.c:802: error: ‘HOST’ has no member named ‘ts’
dict_pgsql.c:810: error: ‘HOST’ has no member named ‘name’
dict_pgsql.c:811: error: ‘HOST’ has no member named ‘port’
dict_pgsql.c:811: error: ‘HOST’ has no member named ‘name’
dict_pgsql.c:814: error: ‘HOST’ has no member named ‘name’
dict_pgsql.c:814: error: ‘HOST’ has no member named ‘name’
dict_pgsql.c:815: error: ‘HOST’ has no member named ‘type’
dict_pgsql.c:817: error: ‘HOST’ has no member named ‘type’
dict_pgsql.c:820: error: ‘HOST’ has no member named ‘name’
dict_pgsql.c:821: error: ‘HOST’ has no member named ‘port’
dict_pgsql.c:821: error: ‘HOST’ has no member named ‘port’
dict_pgsql.c:822: error: ‘HOST’ has no member named ‘type’
dict_pgsql.c: In function ‘plpgsql_dealloc’:
dict_pgsql.c:856: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:857: error: ‘HOST’ has no member named ‘db’
dict_pgsql.c:858: error: ‘HOST’ has no member named ‘hostname’
dict_pgsql.c:859: error: ‘HOST’ has no member named ‘name’
make: *** [dict_pgsql.o] Error 1
make: *** [update] Error 1
What am I missing?
Thanks,
John