+ Responder ao Tópico



  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




  2. 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

  3. 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






Tópicos Similares

  1. mikrotik - local fcs error on link
    Por VNInfo no fórum Redes
    Respostas: 5
    Último Post: 27-10-2015, 22:19
  2. nroff -man qmail-local.8 > qmail-local.0
    Por spyderlinux no fórum Servidores de Rede
    Respostas: 1
    Último Post: 20-02-2006, 16:45
  3. arquivo ponto-qmail (.qmail) para bogogilter+qmail
    Por hunt3r no fórum Servidores de Rede
    Respostas: 0
    Último Post: 06-02-2006, 14:56
  4. Respostas: 0
    Último Post: 02-02-2006, 11:57
  5. relay no qmail ... rcpthosts .. locals?
    Por mcclaudio no fórum Servidores de Rede
    Respostas: 0
    Último Post: 26-08-2004, 17:51

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L