Qmail - > make: *** [qmail-local.o] Error 1
Pessoal, estou com o problema na hora de compilar o qmail. Ao acessar a pasta qmail-1.03 e fazer o seguinte comando para compilar.
cd /usr/src/qmail/qmail-1.03 # make man
depois
make setup check
Esta retornando esse erro.
O que fazer ?
make setup check
./compile qmail-local.c
qmail-local.c:1:23: sys/types.h: No such file or directory
qmail-local.c:2:22: sys/stat.h: No such file or directory
In file included from qmail-local.c:19:
error.h:5:19: errno.h: No such file or directory
qmail-local.c: In function `temp_fork':
qmail-local.c:37: error: `errno' undeclared (first use in this function)
qmail-local.c:37: error: (Each undeclared identifier is reported only once
qmail-local.c:37: error: for each function it appears in.)
qmail-local.c: In function `temp_read':
qmail-local.c:38: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `temp_qmail':
qmail-local.c:42: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `maildir_child':
qmail-local.c:88: error: storage size of `st' isn't known
qmail-local.c:94: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `mailfile':
qmail-local.c:197: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `mailprogram':
qmail-local.c:266: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `checkhome':
qmail-local.c:332: error: storage size of `st' isn't known
qmail-local.c:335: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `qmeox':
qmail-local.c:348: error: storage size of `st' isn't known
qmail-local.c:357: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `qmeexists':
qmail-local.c:367: error: storage size of `st' isn't known
qmail-local.c:373: error: `errno' undeclared (first use in this function)
qmail-local.c:380: error: `S_IFMT' undeclared (first use in this function)
qmail-local.c:380: error: `S_IFREG' undeclared (first use in this function)
qmail-local.c: In function `main':
qmail-local.c:510: error: `errno' undeclared (first use in this function)
qmail-local.c:469: warning: return type of `main' is not `int'
make: *** [qmail-local.o] Error 1
Qmail - > make: *** [qmail-local.o] Error 1
Qmail - > make: *** [qmail-local.o] Error 1
Seguinte,
Editei o arquivo qmail-local.c, e coloquei no inicio dele a linha
Obs: Junto com ele inclui o # pq faz parte de bibliotecas do c
#include <errno.h>
Ai foi so que nas linhas da compilação apareceu um erro falando que o main não é int.
Procurando no arquivo qmail-local.c
achei na linha 457 assim
void main(argc,argv)
int argc;
char **argv;
{
int opt;
int i;
int j;
int k;
int fd;
int numforward;
char **recips;
datetime_sec starttime;
Agora vamos ver o que fazer com isso
Qmail - > make: *** [qmail-local.o] Error 1
Seguinte na hora que eu fiz make setup check informou sobre "spawn"
./chkspawn
Oops. Your system's FD_SET() has a hidden limit of 1024 descriptors.
This means that the qmail daemons could crash if you set the run-time
concurrency higher than 509. So I'm going to insist that the concurrency
limit in conf-spawn be at most 509. Right now it's 1000.
make: *** [spawn.o] Error 1
mcedit conf-spawn (alterarei o valor que aparece na tela para 500)
Salvei e sai.
Rodei novamente o make setup check
e agora a nova mensagem é.
In file included from qmail-pop3d.c:32:
maildirquota.h:271:45: missing terminating " character
In file included from qmail-pop3d.c:32:
maildirquota.h:272: error: parse error before "rsam"
maildirquota.h:272:11: missing terminating " character
qmail-pop3d.c:64: warning: conflicting types for built-in function `puts'
qmail-pop3d.c: In function `main':
qmail-pop3d.c:347: warning: return type of `main' is not `int'
make: *** [qmail-pop3d.o] Error 1
Esse erro referente a qmail-pop3d.o] provavelmente é do patch que eu apliquei no mesmo.
Alguem saberia mi informar como resolver o mesmo ?
e o que fazer com esse MAIN que não é int no arquivo
Grato