Dear Sir/Madam:
I am having redhat enterprise linux version 5 working as postfix mail server with dovecot working fine now required to setup virtual users and domains hence when checked default postfix rpm from the redhat network does not support mysql hence downloaded the sorce from the postfix web and when i tried to build postfixwith mysql map by executing the following command:
make -f Makefile.init makefiles \
'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include
' \
'AUXLIBS=-L/usr/local/mysq
l/lib -lmysqlclient -lz -lm'
this ends with an error message , the same is posted below for your reference :
I. -I../../include -DLINUX2 -c dict_ldap.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/local/mysql/include
-g -O -I. -I../../include -DLINUX2 -c dict_mysql.c
dict_mysql.c:173:19: error: mysql.h: No such file or directory
dict_mysql.c:203: error: expected specifier-qualifier-list before MYSQL
dict_mysql.c:249: error: expected =, ,, ;, asm or __attribute__ before * token
dict_mysql.c: In function dict_mysql_lookup:
dict_mysql.c:295: error: MYSQL_RES undeclared (first use in this function)
dict_mysql.c:295: error: (Each undeclared identifier is reported only once
dict_mysql.c:295: error: for each function it appears in.)
dict_mysql.c:295: error: query_res undeclared (first use in this function)
dict_mysql.c:296: error: MYSQL_ROW undeclared (first use in this function)
dict_mysql.c:296: error: expected ; before row
dict_mysql.c:373: error: row undeclared (first use in this function)
dict_mysql.c: In function dict_mysql_check_stat:
dict_mysql.c:396: error: HOST has no member named stat
dict_mysql.c:396: error: HOST has no member named type
dict_mysql.c:398: error: HOST has no member named stat
dict_mysql.c:398: error: HOST has no member named ts
dict_mysql.c:398: error: HOST has no member named ts
dict_mysql.c: In function dict_mysql_get_active:
dict_mysql.c:447: error: HOST has no member named hostname
dict_mysql.c:463: error: HOST has no member named hostname
dict_mysql.c:465: error: HOST has no member named stat
dict_mysql.c: In function dict_mysql_event:
dict_mysql.c:479: error: HOST has no member named db
dict_mysql.c: At top level:
dict_mysql.c:490: error: expected =, ,, ;, asm or __attribute__ before * token
dict_mysql.c: In function plmysql_connect_single:
dict_mysql.c:542: error: HOST has no member named db
dict_mysql.c:544: error: HOST has no member named db
dict_mysql.c:545: error: HOST has no member named type
dict_mysql.c:545: error: HOST has no member named name
dict_mysql.c:549: error: HOST has no member named port
dict_mysql.c:550: error: HOST has no member named type
dict_mysql.c:550: error: HOST has no member named name
dict_mysql.c:554: error: HOST has no member named hostname
dict_mysql.c:555: error: HOST has no member named stat
dict_mysql.c:558: error: HOST has no member named hostname
dict_mysql.c:558: error: HOST has no member named db
dict_mysql.c: In function plmysql_close_host:
dict_mysql.c:566: error: HOST has no member named db
dict_mysql.c:567: error: HOST has no member named db
dict_mysql.c:568: error: HOST has no member named stat
dict_mysql.c: In function plmysql_down_host:
dict_mysql.c:577: error: HOST has no member named db
dict_mysql.c:578: error: HOST has no member named db
dict_mysql.c:579: error: HOST has no member named ts
dict_mysql.c:580: error: HOST has no member named stat
dict_mysql.c: In function host_init:
dict_mysql.c:707: error: HOST has no member named db
dict_mysql.c:708: error: HOST has no member named hostname
dict_mysql.c:709: error: HOST has no member named port
dict_mysql.c:710: error: HOST has no member named stat
dict_mysql.c:711: error: HOST has no member named ts
dict_mysql.c:719: error: HOST has no member named type
dict_mysql.c:723: error: HOST has no member named type
dict_mysql.c:725: error: HOST has no member named name
dict_mysql.c:726: error: HOST has no member named name
dict_mysql.c:727: error: HOST has no member named port
dict_mysql.c:728: error: HOST has no member named name
dict_mysql.c:730: error: HOST has no member named name
dict_mysql.c:731: error: HOST has no member named name
dict_mysql.c:732: error: HOST has no member named type
dict_mysql.c:737: error: HOST has no member named name
dict_mysql.c:737: error: HOST has no member named name
dict_mysql.c:738: error: HOST has no member named port
dict_mysql.c:738: error: HOST has no member named type
dict_mysql.c: In function plmysql_dealloc:
dict_mysql.c:772: error: HOST has no member named db
dict_mysql.c:773: error: HOST has no member named db
dict_mysql.c:774: error: HOST has no member named hostname
dict_mysql.c:775: error: HOST has no member named name
dict_mysql.c:776: error: HOST has no member named name
make: *** [dict_mysql.o] Error 1
make: *** [update] Error 1
--------------------------
----------
----------
----------
----------
----------
----------
----------
Please note:
already mysql , openssl , openldap rpms is installed .
please help me to fix this so that build happens correctly so that the same can be installed.
Thanks in advance.