+ Responder ao Tópico



  1. #1
    sarna
    Visitante

    Padrão Problemas com instalação de PPPoE

    Estou tentando fazer o artigo PPPoE + Radius + BandLimit só que ele está dando um monte de erros no meu Conectiva 10.

    Eu executo o ./configure do ppp e ele dá esse monte de erros..
    Código :
    [root@server ppp]# make
    cd chat; make  all
    make[1]: Entering directory `/usr/local/src/ppp/chat'
    cc -c -O2 -g -pipe -DTERMIOS                     -DSIGTYPE=void                  -UNO_SLEEP                      -DFNDELAY=O_NDELAY           -o chat.o chat.c
    chat.c:93:19: stdio.h: Arquivo ou diretório não encontrado
    chat.c:94:19: ctype.h: Arquivo ou diretório não encontrado
    chat.c:95:18: time.h: Arquivo ou diretório não encontrado
    chat.c:96:19: fcntl.h: Arquivo ou diretório não encontrado
    chat.c:97:20: signal.h: Arquivo ou diretório não encontrado
    chat.c:98:19: errno.h: Arquivo ou diretório não encontrado
    chat.c:99:20: string.h: Arquivo ou diretório não encontrado
    chat.c:100:20: stdlib.h: Arquivo ou diretório não encontrado
    chat.c:101:20: unistd.h: Arquivo ou diretório não encontrado
    chat.c:102:23: sys/types.h: Arquivo ou diretório não encontrado
    chat.c:103:22: sys/stat.h: Arquivo ou diretório não encontrado
    chat.c:104:20: syslog.h: Arquivo ou diretório não encontrado
    chat.c:115:21: termios.h: Arquivo ou diretório não encontrado
    chat.c:177: error: parse error before '*' token
    chat.c:177: error: `FILE' undeclared here (not in a function)
    chat.c:177: error: parse error before ')' token
    chat.c:212: error: parse error before "size_t"
    chat.c:214: error: parse error before "size_t"
    chat.c:216: warning: conflicting types for built-in function `logf'
    chat.c: In function `dup_mem':
    chat.c:248: error: parse error before "size_t"
    chat.c:250: warning: initialization makes pointer from integer without a cast
    chat.c: In function `grow':
    chat.c:268: error: parse error before "size_t"
    chat.c:270: error: `size_t' undeclared (first use in this function)
    chat.c:270: error: (Each undeclared identifier is reported only once
    chat.c:270: error: for each function it appears in.)
    chat.c:272: warning: assignment makes pointer from integer without a cast
    chat.c:275: error: `l' undeclared (first use in this function)
    chat.c: In function `main':
    chat.c:324: error: `NULL' undeclared (first use in this function)
    chat.c:343: warning: assignment makes pointer from integer without a cast
    chat.c:376: error: `stderr' undeclared (first use in this function)
    chat.c:382: error: `LOG_PID' undeclared (first use in this function)
    chat.c:382: error: `LOG_NDELAY' undeclared (first use in this function)
    chat.c:382: error: `LOG_LOCAL2' undeclared (first use in this function)
    chat.c:385: error: `LOG_INFO' undeclared (first use in this function)
    chat.c:387: error: `LOG_WARNING' undeclared (first use in this function)
    chat.c: In function `do_file':
    chat.c:422: error: `FILE' undeclared (first use in this function)
    chat.c:422: error: `cfp' undeclared (first use in this function)
    chat.c:425: error: `NULL' undeclared (first use in this function)
    chat.c: In function `usage':
    chat.c:487: error: `stderr' undeclared (first use in this function)
    chat.c: In function `logf':
    chat.c:512: error: `LOG_INFO' undeclared (first use in this function)
    chat.c:514: error: `stderr' undeclared (first use in this function)
    chat.c: In function `fatal':
    chat.c:537: error: `LOG_ERR' undeclared (first use in this function)
    chat.c:539: error: `stderr' undeclared (first use in this function)
    chat.c: In function `sigalrm':
    chat.c:552: error: `SIGALRM' undeclared (first use in this function)
    chat.c:554: error: `F_GETFL' undeclared (first use in this function)
    chat.c:557: error: `F_SETFL' undeclared (first use in this function)
    chat.c:557: error: `O_NDELAY' undeclared (first use in this function)
    chat.c: In function `unalarm':
    chat.c:568: error: `F_GETFL' undeclared (first use in this function)
    chat.c:571: error: `F_SETFL' undeclared (first use in this function)
    chat.c:571: error: `O_NDELAY' undeclared (first use in this function)
    chat.c: In function `init':
    chat.c:595: error: `SIGINT' undeclared (first use in this function)
    chat.c:596: error: `SIGTERM' undeclared (first use in this function)
    chat.c:597: error: `SIGHUP' undeclared (first use in this function)
    chat.c:600: error: `SIGALRM' undeclared (first use in this function)
    chat.c: In function `set_tty_parameters':
    chat.c:608: error: storage size of `t' isn't known
    chat.c:613: error: `saved_tty_parameters' has an incomplete type
    chat.c:616: error: `IGNBRK' undeclared (first use in this function)
    chat.c:616: error: `ISTRIP' undeclared (first use in this function)
    chat.c:616: error: `IGNPAR' undeclared (first use in this function)
    chat.c:619: error: `VERASE' undeclared (first use in this function)
    chat.c:620: error: `VKILL' undeclared (first use in this function)
    chat.c:621: error: `VMIN' undeclared (first use in this function)
    chat.c:622: error: `VTIME' undeclared (first use in this function)
    chat.c:624: error: `TCSANOW' undeclared (first use in this function)
    chat.c: In function `terminate':
    chat.c:664: error: `FILE' undeclared (first use in this function)
    chat.c:664: error: parse error before ')' token
    chat.c:668: error: parse error before ')' token
    chat.c: At top level:
    chat.c:678: warning: parameter names (without types) in function declaration
    chat.c:678: warning: data definition has no type or storage class
    chat.c:679: error: parse error before '}' token
    chat.c: In function `clean':
    chat.c:691: error: `size_t' undeclared (first use in this function)
    chat.c:691: error: parse error before "len"
    chat.c:699: error: `len' undeclared (first use in this function)
    chat.c:699: warning: assignment makes pointer from integer without a cast
    chat.c:725: warning: assignment makes pointer from integer without a cast
    chat.c: In function `chat_send':
    chat.c:1053: error: `SIGHUP' undeclared (first use in this function)
    chat.c:1053: error: `SIG_IGN' undeclared (first use in this function)
    chat.c:1104: error: `NULL' undeclared (first use in this function)
    chat.c:1192: error: `FILE' undeclared (first use in this function)
    chat.c:1192: error: `f' undeclared (first use in this function)
    chat.c: In function `get_char':
    chat.c:1242: error: `F_GETFL' undeclared (first use in this function)
    chat.c:1245: error: `F_SETFL' undeclared (first use in this function)
    chat.c:1245: error: `O_NDELAY' undeclared (first use in this function)
    chat.c: In function `put_char':
    chat.c:1270: error: `F_GETFL' undeclared (first use in this function)
    chat.c:1273: error: `F_SETFL' undeclared (first use in this function)
    chat.c:1273: error: `O_NDELAY' undeclared (first use in this function)
    chat.c: In function `write_char':
    chat.c:1288: error: `errno' undeclared (first use in this function)
    chat.c:1288: error: `EINTR' undeclared (first use in this function)
    chat.c:1288: error: `EWOULDBLOCK' undeclared (first use in this function)
    chat.c: In function `get_string':
    chat.c:1434: error: `stderr' undeclared (first use in this function)
    chat.c:1441: error: `NULL' undeclared (first use in this function)
    chat.c:1444: error: `time_t' undeclared (first use in this function)
    chat.c:1444: error: parse error before "time_now"
    chat.c:1445: error: `time_now' undeclared (first use in this function)
    chat.c:1445: warning: initialization makes pointer from integer without a cast
    chat.c: In function `pack_array':
    chat.c:1574: error: `NULL' undeclared (first use in this function)
    chat.c: In function `vfmtmsg':
    chat.c:1691: error: `errno' undeclared (first use in this function)
    chat.c:1691: warning: assignment makes pointer from integer without a cast
    chat.c: At top level:
    chat.c:197: error: storage size of `saved_tty_parameters' isn't known
    make[1]: ** [chat.o] Erro 1
    make[1]: Leaving directory `/usr/local/src/ppp/chat'
    make: ** [all] Erro 2

    E no outro .tar quando executo o ./go
    Código :
    [root@server rp-pppoe-3.5]# ./go
    Running ./configure...
    loading cache ./config.cache
    checking for gcc... gcc
    checking whether the C compiler (gcc  ) works... no
    configure: error: installation or configuration problem: C compiler cannot create executables.
    Oops!  It looks like ./configure failed.


    O que pode ser isso ?

  2. #2

    Padrão Problemas com instalação de PPPoE

    apt-get install glibc-devel gcc

    deve resolver o seu prolbema.