Publicada por rodrigom em 07/05/2007 - 14:40h:
* rodrigom usa Debian

Qmail, boa tarde amigos, estou tentando configurar meu qmail com esse tutorial

http://www.debianfordummies.org/wiki/index.php/Qmail-deb#Pref.C3.A1cio

estava indo tudo bem até q deu esse erro, quando dou um "make" e não faço ideia doque seja, alguem pode me ajudar ??

make
make all-recursive
make[1]: Entrando no diretório `/usr/src/downloads/vpopmail-5.4.13'
Making all in cdb
make[2]: Entrando no diretório `/usr/src/downloads/vpopmail-5.4.13/cdb'
make[2]: Nada a ser feito para `all'.
make[2]: Saindo do diretório `/usr/src/downloads/vpopmail-5.4.13/cdb'
make[2]: Entrando no diretório `/usr/src/downloads/vpopmail-5.4.13'
gcc -I. -I/var/lib/mysql/vpopmail/ -I. -I. -I. -fPIC -g -O2 -Wall -c -o libvpopmail_a-vauth.o `test -f 'vauth.c' || echo './'`vauth.c
vauth.c:33:19: error: mysql.h: Arquivo ou diretório não encontrado
vauth.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysql_update’
vauth.c:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysql_read_getall’
vauth.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vauth.c:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vauth.c:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘row’
vauth.c:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘row_getall’
vauth.c: In function ‘vauth_open_update’:
vauth.c:197: warning: implicit declaration of function ‘mysql_init’
vauth.c:197: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:197: error: (Each undeclared identifier is reported only once
vauth.c:197: error: for each function it appears in.)
vauth.c:198: warning: implicit declaration of function ‘mysql_options’
vauth.c:198: error: ‘MYSQL_OPT_CONNECT_TIMEOUT’ undeclared (first use in this function)
vauth.c:201: warning: implicit declaration of function ‘mysql_real_connect’
vauth.c:211: warning: implicit declaration of function ‘mysql_select_db’
vauth.c:215: warning: implicit declaration of function ‘mysql_query’
vauth.c:221: warning: implicit declaration of function ‘mysql_error’
vauth.c:221: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
vauth.c: In function ‘vauth_open_read_getall’:
vauth.c:280: error: ‘mysql_read_getall’ undeclared (first use in this function)
vauth.c: In function ‘vauth_create_table’:
vauth.c:305: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:308: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
vauth.c: In function ‘vauth_adduser’:
vauth.c:386: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:387: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘vauth_getpw’:
vauth.c:436: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:437: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c:441: error: ‘res_update’ undeclared (first use in this function)
vauth.c:441: warning: implicit declaration of function ‘mysql_store_result’
vauth.c:446: warning: implicit declaration of function ‘mysql_num_rows’
vauth.c:447: warning: implicit declaration of function ‘mysql_free_result’
vauth.c:465: error: ‘row’ undeclared (first use in this function)
vauth.c:465: warning: implicit declaration of function ‘mysql_fetch_row’
vauth.c: In function ‘vauth_deldomain’:
vauth.c:510: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c: In function ‘vauth_deluser’:
vauth.c:554: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c: In function ‘vauth_setquota’:
vauth.c:596: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:597: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘vauth_getall’:
vauth.c:631: error: ‘res_update’ undeclared (first use in this function)
vauth.c:631: error: ‘res_read_getall’ undeclared (first use in this function)
vauth.c:634: error: ‘mysql_read_getall’ undeclared (first use in this function)
vauth.c:635: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c:661: error: ‘row_getall’ undeclared (first use in this function)
vauth.c: In function ‘vauth_end_getall’:
vauth.c:687: error: ‘res_read_getall’ undeclared (first use in this function)
vauth.c: In function ‘vauth_setpw’:
vauth.c:754: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:755: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘vclose’:
vauth.c:853: warning: implicit declaration of function ‘mysql_close’
vauth.c:853: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:857: error: ‘mysql_read_getall’ undeclared (first use in this function)
vauth.c: In function ‘vread_dir_control’:
vauth.c:984: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:993: error: ‘res_update’ undeclared (first use in this function)
vauth.c:998: error: ‘row’ undeclared (first use in this function)
vauth.c: In function ‘vwrite_dir_control’:
vauth.c:1067: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:1070: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘vcreate_dir_control’:
vauth.c:1099: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:1100: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘vdel_dir_control’:
vauth.c:1114: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:1117: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘vset_lastauth’:
vauth.c:1135: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:1138: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘vget_lastauth’:
vauth.c:1154: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:1157: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c:1161: error: ‘res_update’ undeclared (first use in this function)
vauth.c:1163: error: ‘row’ undeclared (first use in this function)
vauth.c: In function ‘vget_lastauthip’:
vauth.c:1179: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:1182: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c:1186: error: ‘res_update’ undeclared (first use in this function)
vauth.c:1187: error: ‘row’ undeclared (first use in this function)
vauth.c: In function ‘valias_select’:
vauth.c:1221: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:1224: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c:1228: error: ‘res_update’ undeclared (first use in this function)
vauth.c:1229: error: ‘row’ undeclared (first use in this function)
vauth.c: In function ‘valias_insert’:
vauth.c:1260: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:1263: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘valias_remove’:
vauth.c:1280: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:1283: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘valias_delete’:
vauth.c:1300: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:1303: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘valias_delete_domain’:
vauth.c:1320: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:1323: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘valias_select_all’:
vauth.c:1350: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c:1353: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c:1357: error: ‘res_update’ undeclared (first use in this function)
vauth.c:1358: error: ‘row’ undeclared (first use in this function)
vauth.c: In function ‘logsql’:
vauth.c:1401: error: ‘mysql_update’ undeclared (first use in this function)
make[2]: ** [libvpopmail_a-vauth.o] Erro 1
make[2]: Saindo do diretório `/usr/src/downloads/vpopmail-5.4.13'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/usr/src/downloads/vpopmail-5.4.13'
make: ** [all] Erro 2



  
 
Resposta de Sup0rt3 em 07/05/2007 - 15:16h:
* Sup0rt3 usa Slackware
* Sup0rt3 tem conceito: 9.0
 


cara eu não entendo nada de Qmail.

Mas pelo jeito se problema começa com o:
vauth.c:33:19: error: mysql.h: Arquivo ou diretório não encontrado

Ache na net esse mysql.h

aqui no meu slackware ele ta em:
/usr/include/mysql/mysql.h

Se quiser te envio por email.

Qmail....Ja pensou em usar postfix ;)

 
Resposta de matheus.silva em 25/06/2007 - 14:57h:
* matheus.silva usa Debian
* matheus.silva tem conceito: nenhum voto.
 


qual distribuição vc usa?
eu uso Debian
NO meu caso eu resolvi isso instalando os pacotes de desenvolvimento do mysql... libmysqlclient12-dev (debian 3.1) ou libmysqlclient15-dev (debian 4.0)

  


ATENÇÃO: Antes de contribuir com uma resposta, leia o artigo Qualidade de respostas e certifique-se de que esteja realmente contribuindo com a comunidade. Muitas vezes o ímpeto de contribuir nos leva a atrapalhar ao invés de ajudar.

Contribuir com resposta



CAPTCHA
[ Recarregar imagem ]

Digite o código acima:

  
* Nota: só é possível enviar respostas usuário que possui conta e esteja logado com ela, caso contrário sua mensagem será perdida.



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts