The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"Ошибки в Postfix при компиляции"
Вариант для распечатки  
Пред. тема | След. тема 
Форумы OpenNET: Виртуальная конференция (Public)
Изначальное сообщение [ Отслеживать ]

"Ошибки в Postfix при компиляции"  
Сообщение от Tuxper email(??) on 28-Ноя-06, 07:54 
Народ, ставлю 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.
Как побороть?

Высказать мнение | Ответить | Правка | Cообщить модератору

 Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "Ошибки в Postfix при компиляции"  
Сообщение от newser (??) on 28-Ноя-06, 09:01 
>Народ, ставлю Postfix 2.3.4
[skip]
>Stop in /usr/distr/mail/postfix-2.3.4/src/global.
>*** Error code 1
>
>Stop in /usr/distr/mail/postfix-2.3.4.
>Как побороть?

Поставить из портов/пакетов.

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

2. "Ошибки в Postfix при компиляции"  
Сообщение от Hammer (ok) on 28-Ноя-06, 09:35 
>Народ, ставлю 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

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

3. "Ошибки в Postfix при компиляции"  
Сообщение от kerilka on 28-Ноя-06, 12:07 
>>Народ, ставлю 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, или убрать из постфикса поддержку мускуля.

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

4. "Ошибки в Postfix при компиляции"  
Сообщение от quiet2 (ok) on 05-Ноя-08, 15:09 
make -f Makefile.init makefiles \
        'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include/mysql' \
        'AUXLIBS=-L/usr/local/mysql/include/mysql -lmysqlclient -lz -lm'
Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

Архив | Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Оцените тред (1=ужас, 5=супер)? [ 1 | 2 | 3 | 4 | 5 ] [Рекомендовать для помещения в FAQ]




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру