>>Народ, ставлю Postfix 2.3.4 >>make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/include/sasl' \ >>'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm -L/usr/lib -lsasl' >>Все хорошо, но когда команда: >>make >>выдает такую ошибку: >>gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/include/sasl -g -O -I. -I../../include -DFREEBSD5 >>-c dict_mysql.c >>dict_mysql.c:173:19: mysql.h: No such file or directory >>dict_mysql.c:203: error: syntax error before "MYSQL" >>dict_mysql.c:249: error: syntax error before '*' token >>dict_mysql.c:250: warning: data definition has no type or storage class >>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: syntax error before "row" >>dict_mysql.c:371: error: `row' undeclared (first use in this function) >>dict_mysql.c: In function `dict_mysql_event': >>dict_mysql.c:477: error: structure has no member named `db' >>dict_mysql.c: At top level: >>dict_mysql.c:488: error: syntax error before '*' token >>dict_mysql.c: In function `plmysql_query': >>dict_mysql.c:497: error: `MYSQL_RES' undeclared (first use in this function) >>dict_mysql.c:497: error: `res' undeclared (first use in this function) >>dict_mysql.c:514: error: structure has no member named `db' >>dict_mysql.c:515: error: structure has no member named `db' >>dict_mysql.c:516: error: structure has no member named `db' >>dict_mysql.c:516: warning: format argument is not a pointer (arg 2) >>dict_mysql.c:525: error: structure has no member named `db' >>dict_mysql.c:525: warning: format argument is not a pointer (arg 2) >>dict_mysql.c: In function `plmysql_connect_single': >>dict_mysql.c:540: error: structure has no member named `db' >>dict_mysql.c:542: error: structure has no member named `db' >>dict_mysql.c:556: error: structure has no member named `db' >>dict_mysql.c:556: warning: format argument is not a pointer (arg 3) >>dict_mysql.c: In function `plmysql_close_host': >>dict_mysql.c:564: error: structure has no member named `db' >>dict_mysql.c:565: error: structure has no member named `db' >>dict_mysql.c: In function `plmysql_down_host': >>dict_mysql.c:575: error: structure has no member named `db' >>dict_mysql.c:576: error: structure has no member named `db' >>dict_mysql.c: In function `host_init': >>dict_mysql.c:705: error: structure has no member named `db' >>dict_mysql.c: In function `plmysql_dealloc': >>dict_mysql.c:770: error: structure has no member named `db' >>dict_mysql.c:771: error: structure has no member named `db' >>*** Error code 1 >> >>Stop in /usr/distr/mail/postfix-2.3.4/src/global. >>*** Error code 1 >> >>Stop in /usr/distr/mail/postfix-2.3.4. >>Как побороть? > > >dict_mysql.c:173:19: mysql.h: No such file or directory он пытается собраться с поддержкой мускуля, а его у вас или нет, или хедеры лежат не там, где оно их пытается найти. попробуйте установить mysql-devel, или убрать из постфикса поддержку мускуля.
|