Resolvido - NO-IP no DEBIAN - ajuda

1. Resolvido - NO-IP no DEBIAN - ajuda

wellington
welllinux

(usa Debian)

Enviado em 21/02/2008 - 15:16h

Galera, é o seguinte, estou tentando instalar o no-ip no Debian e não estou conseguindo, achei um otimo tópico esplicando mas nao deu certo, bem fiz assim.

Crie uma nova pasta e baixe o cliente no-ip com os comandos:

# mkdir noip && cd noip
# wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz

Descompacte o arquivo:

# tar -zvxf noip-duc-linux.tar.gz
Para instalar execute o comando:

# make && make install


Opaaaaa.... aí que vem meu problema quando execulto o make ele dá o seguinte erro...

debian:/noip/noip-2.1.7# make
gcc -Wall -g -O2 -Dlinux -DPREFIX=\"/usr/local\" noip2.c -o noip2
make: gcc: Comando não encontrado
make: ** [noip2] Erro 127


ai [*****] tudo, confeso que nunca soube usar direiro o tal de MAKE e MAKE INSTALL mas conto com a ajuda da galera esperta daqui da VOL, um abraço galera!



  


2. Re: Resolvido - NO-IP no DEBIAN - ajuda

Marcos Miras
marcosmiras

(usa CentOS)

Enviado em 21/02/2008 - 15:35h

Veja se existe o gcc (GNU Compiler Collection), parece-me que não...
# gcc --version
Caso não tenha instale-o:
# apt-get gcc
Falow...


3. Progredimos

wellington
welllinux

(usa Debian)

Enviado em 21/02/2008 - 16:51h

Opa, realmente faltava o gcc, agora quando dei o make deu o erro:

debian:/etc/noip/noip-2.1.7# make
gcc -Wall -g -O2 -Dlinux -DPREFIX=\"/usr/local\" noip2.c -o noip2
noip2.c:118:19: error: stdio.h: Arquivo ou diretório não encontrado
noip2.c:119:20: error: stdlib.h: Arquivo ou diretório não encontrado
noip2.c:121:20: error: unistd.h: Arquivo ou diretório não encontrado
noip2.c:122:23: error: sys/types.h: Arquivo ou diretório não encontrado
noip2.c:123:23: error: sys/ioctl.h: Arquivo ou diretório não encontrado
noip2.c:124:22: error: sys/time.h: Arquivo ou diretório não encontrado
noip2.c:125:20: error: string.h: Arquivo ou diretório não encontrado
noip2.c:126:19: error: ctype.h: Arquivo ou diretório não encontrado
noip2.c:127:19: error: errno.h: Arquivo ou diretório não encontrado
noip2.c:128:20: error: signal.h: Arquivo ou diretório não encontrado
noip2.c:129:20: error: assert.h: Arquivo ou diretório não encontrado
noip2.c:130:21: error: termios.h: Arquivo ou diretório não encontrado
noip2.c:131:24: error: sys/socket.h: Arquivo ou diretório não encontrado
noip2.c:132:24: error: netinet/in.h: Arquivo ou diretório não encontrado
noip2.c:133:19: error: netdb.h: Arquivo ou diretório não encontrado
noip2.c:134:20: error: syslog.h: Arquivo ou diretório não encontrado
noip2.c:135:19: error: fcntl.h: Arquivo ou diretório não encontrado
noip2.c:136:22: error: sys/stat.h: Arquivo ou diretório não encontrado
noip2.c:137:22: error: sys/wait.h: Arquivo ou diretório não encontrado
noip2.c:139:23: error: arpa/inet.h: Arquivo ou diretório não encontrado
noip2.c:140:20: error: net/if.h: Arquivo ou diretório não encontrado
noip2.c:141:21: error: sys/ipc.h: Arquivo ou diretório não encontrado
noip2.c:142:21: error: sys/shm.h: Arquivo ou diretório não encontrado
noip2.c:143:17: error: pwd.h: Arquivo ou diretório não encontrado
noip2.c:144:18: error: time.h: Arquivo ou diretório não encontrado
noip2.c:158:29: error: linux/sockios.h: Arquivo ou diretório não encontrado
noip2.c:347: error: ‘NULL’ undeclared here (not in a function)
noip2.c:373: error: expected specifier-qualifier-list before ‘ushort’
noip2.c:457: warning: ‘struct shmid_ds’ declared inside parameter list
noip2.c:457: warning: its scope is only this definition or declaration, which is probably not what you want
noip2.c:463: error: expected declaration specifiers or ‘...’ before ‘size_t’
noip2.c:464: error: expected declaration specifiers or ‘...’ before ‘size_t’
noip2.c:474: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘chksum’
noip2.c: In function ‘Usage’:
noip2.c:497: warning: implicit declaration of function ‘fprintf’
noip2.c:497: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:497: error: ‘stderr’ undeclared (first use in this function)
noip2.c:497: error: (Each undeclared identifier is reported only once
noip2.c:497: error: for each function it appears in.)
noip2.c: In function ‘main’:
noip2.c:534: error: invalid use of undefined type ‘struct sigaction’
noip2.c:535: warning: implicit declaration of function ‘sigemptyset’
noip2.c:535: error: invalid use of undefined type ‘struct sigaction’
noip2.c:536: error: invalid use of undefined type ‘struct sigaction’
noip2.c:536: error: ‘SIG_IGN’ undeclared (first use in this function)
noip2.c:537: warning: implicit declaration of function ‘sigaction’
noip2.c:537: error: ‘SIGHUP’ undeclared (first use in this function)
noip2.c:538: error: ‘SIGPIPE’ undeclared (first use in this function)
noip2.c:539: error: ‘SIGUSR1’ undeclared (first use in this function)
noip2.c:540: error: ‘SIGUSR2’ undeclared (first use in this function)
noip2.c:541: error: invalid use of undefined type ‘struct sigaction’
noip2.c:542: error: ‘SIGALRM’ undeclared (first use in this function)
noip2.c:543: warning: implicit declaration of function ‘strrchr’
noip2.c:543: warning: incompatible implicit declaration of built-in function ‘strrchr’
noip2.c:548: warning: implicit declaration of function ‘openlog’
noip2.c:548: error: ‘LOG_PID’ undeclared (first use in this function)
noip2.c:548: error: ‘LOG_DAEMON’ undeclared (first use in this function)
noip2.c:550: warning: implicit declaration of function ‘realpath’
noip2.c:550: warning: assignment makes pointer from integer without a cast
noip2.c:553: warning: implicit declaration of function ‘sprintf’
noip2.c:553: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:560: warning: implicit declaration of function ‘exit’
noip2.c:560: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:566: warning: implicit declaration of function ‘geteuid’
noip2.c:567: warning: implicit declaration of function ‘getpwnam’
noip2.c:567: warning: assignment makes pointer from integer without a cast
noip2.c:568: warning: implicit declaration of function ‘setgid’
noip2.c:568: error: dereferencing pointer to incomplete type
noip2.c:569: warning: implicit declaration of function ‘setegid’
noip2.c:569: error: dereferencing pointer to incomplete type
noip2.c:570: warning: implicit declaration of function ‘setuid’
noip2.c:570: error: dereferencing pointer to incomplete type
noip2.c:571: warning: implicit declaration of function ‘seteuid’
noip2.c:571: error: dereferencing pointer to incomplete type
noip2.c:585: error: invalid use of undefined type ‘struct sigaction’
noip2.c:587: error: invalid use of undefined type ‘struct sigaction’
noip2.c:588: error: ‘SIGINT’ undeclared (first use in this function)
noip2.c:589: error: ‘SIGTERM’ undeclared (first use in this function)
noip2.c:590: error: ‘SIGQUIT’ undeclared (first use in this function)
noip2.c:591: error: invalid use of undefined type ‘struct sigaction’
noip2.c:592: error: ‘SIGCHLD’ undeclared (first use in this function)
noip2.c:608: warning: implicit declaration of function ‘shmdt’
noip2.c:616: warning: implicit declaration of function ‘strcpy’
noip2.c:616: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:619: warning: implicit declaration of function ‘free’
noip2.c: In function ‘process_options’:
noip2.c:630: warning: implicit declaration of function ‘getopt’
noip2.c:630: error: ‘EOF’ undeclared (first use in this function)
noip2.c:646: warning: implicit declaration of function ‘atoi’
noip2.c:651: warning: implicit declaration of function ‘strcat’
noip2.c:651: warning: incompatible implicit declaration of built-in function ‘strcat’
noip2.c:680: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:695: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:716: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:721: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:727: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:733: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:737: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:741: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:745: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:626: warning: unused variable ‘opterr’
noip2.c: In function ‘sigchld_handler’:
noip2.c:759: warning: implicit declaration of function ‘waitpid’
noip2.c:759: error: ‘WNOHANG’ undeclared (first use in this function)
noip2.c:759: error: ‘WUNTRACED’ undeclared (first use in this function)
noip2.c: In function ‘get_version’:
noip2.c:792: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:794: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c: In function ‘save_IP’:
noip2.c:802: warning: implicit declaration of function ‘access’
noip2.c:802: error: ‘W_OK’ undeclared (first use in this function)
noip2.c:803: warning: implicit declaration of function ‘lseek’
noip2.c:803: error: ‘SEEK_SET’ undeclared (first use in this function)
noip2.c:804: warning: implicit declaration of function ‘write’
noip2.c:805: warning: implicit declaration of function ‘strlen’
noip2.c:805: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:815: warning: implicit declaration of function ‘close’
noip2.c:818: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c: In function ‘getip’:
noip2.c:825: error: storage size of ‘ifr’ isn’t known
noip2.c:826: error: storage size of ‘z’ isn’t known
noip2.c:829: warning: implicit declaration of function ‘socket’
noip2.c:829: error: ‘AF_INET’ undeclared (first use in this function)
noip2.c:829: error: ‘SOCK_DGRAM’ undeclared (first use in this function)
noip2.c:830: error: ‘errno’ undeclared (first use in this function)
noip2.c:833: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:834: warning: implicit declaration of function ‘ioctl’
noip2.c:834: error: ‘SIOCGIFFLAGS’ undeclared (first use in this function)
noip2.c:839: error: ‘IFF_UP’ undeclared (first use in this function)
noip2.c:845: error: ‘SIOCGIFADDR’ undeclared (first use in this function)
noip2.c:852: error: dereferencing pointer to incomplete type
noip2.c:853: warning: implicit declaration of function ‘inet_ntoa’
noip2.c:853: warning: passing argument 2 of ‘strcpy’ makes pointer from integer without a cast
noip2.c:856: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:856: error: ‘stderr’ undeclared (first use in this function)
noip2.c:826: warning: unused variable ‘z’
noip2.c:825: warning: unused variable ‘ifr’
noip2.c: In function ‘config_file_inuse’:
noip2.c:867: warning: implicit declaration of function ‘shmget’
noip2.c:869: warning: implicit declaration of function ‘shmat’
noip2.c:869: warning: assignment makes pointer from integer without a cast
noip2.c:876: warning: implicit declaration of function ‘strcmp’
noip2.c:877: warning: implicit declaration of function ‘kill’
noip2.c: At top level:
noip2.c:888: warning: ‘struct shmid_ds’ declared inside parameter list
noip2.c:889: error: conflicting types for ‘dump_shm’
noip2.c:457: error: previous declaration of ‘dump_shm’ was here
noip2.c: In function ‘dump_shm’:
noip2.c:891: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:891: error: ‘stderr’ undeclared (first use in this function)
noip2.c:892: error: invalid application of ‘sizeof’ to incomplete type ‘struct shmid_ds’
noip2.c:893: error: dereferencing pointer to incomplete type
noip2.c:895: error: dereferencing pointer to incomplete type
noip2.c:895: error: dereferencing pointer to incomplete type
noip2.c:897: error: dereferencing pointer to incomplete type
noip2.c:897: error: dereferencing pointer to incomplete type
noip2.c:898: error: dereferencing pointer to incomplete type
noip2.c:899: warning: implicit declaration of function ‘ctime’
noip2.c:899: error: dereferencing pointer to incomplete type
noip2.c:899: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
noip2.c:900: error: dereferencing pointer to incomplete type
noip2.c:900: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
noip2.c:901: error: dereferencing pointer to incomplete type
noip2.c:901: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
noip2.c:902: error: dereferencing pointer to incomplete type
noip2.c:903: error: dereferencing pointer to incomplete type
noip2.c:904: error: dereferencing pointer to incomplete type
noip2.c: In function ‘get_shm_info’:
noip2.c:911: error: storage size of ‘ds’ isn’t known
noip2.c:914: error: ‘IPC_CREAT’ undeclared (first use in this function)
noip2.c:916: warning: implicit declaration of function ‘strerror’
noip2.c:916: error: ‘errno’ undeclared (first use in this function)
noip2.c:919: warning: implicit declaration of function ‘shmctl’
noip2.c:919: error: ‘IPC_STAT’ undeclared (first use in this function)
noip2.c:934: warning: assignment makes pointer from integer without a cast
noip2.c:952: error: ‘ESRCH’ undeclared (first use in this function)
noip2.c:959: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:973: warning: implicit declaration of function ‘getpid’
noip2.c:977: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:911: warning: unused variable ‘ds’
noip2.c: In function ‘run_as_background’:
noip2.c:989: warning: implicit declaration of function ‘fork’
noip2.c:992: error: ‘errno’ undeclared (first use in this function)
noip2.c:992: warning: assignment makes pointer from integer without a cast
noip2.c:996: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:998: warning: implicit declaration of function ‘setsid’
noip2.c:1002: warning: implicit declaration of function ‘fclose’
noip2.c:1002: error: ‘stderr’ undeclared (first use in this function)
noip2.c:1003: error: ‘stdout’ undeclared (first use in this function)
noip2.c:1004: error: ‘stdin’ undeclared (first use in this function)
noip2.c:1005: warning: implicit declaration of function ‘syslog’
noip2.c:1005: error: ‘LOG_INFO’ undeclared (first use in this function)
noip2.c:1030: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c: In function ‘Sleep’:
noip2.c:1056: error: storage size of ‘timeout’ isn’t known
noip2.c:1060: warning: implicit declaration of function ‘select’
noip2.c:1056: warning: unused variable ‘timeout’
noip2.c: At top level:
noip2.c:1064: error: expected declaration specifiers or ‘...’ before ‘size_t’
noip2.c: In function ‘Read’:
noip2.c:1066: error: ‘size_t’ undeclared (first use in this function)
noip2.c:1066: error: expected ‘;’ before ‘bytes_read’
noip2.c:1070: error: ‘bytes_read’ undeclared (first use in this function)
noip2.c:1070: error: ‘count’ undeclared (first use in this function)
noip2.c:1071: warning: implicit declaration of function ‘alarm’
noip2.c:1072: warning: implicit declaration of function ‘read’
noip2.c:1076: error: ‘LOG_WARNING’ undeclared (first use in this function)
noip2.c: At top level:
noip2.c:1091: error: expected declaration specifiers or ‘...’ before ‘size_t’
noip2.c: In function ‘Write’:
noip2.c:1093: error: ‘size_t’ undeclared (first use in this function)
noip2.c:1093: error: expected ‘;’ before ‘bytes_sent’
noip2.c:1097: error: ‘bytes_sent’ undeclared (first use in this function)
noip2.c:1097: error: ‘count’ undeclared (first use in this function)
noip2.c: In function ‘Connect’:
noip2.c:1114: error: storage size of ‘saddr’ isn’t known
noip2.c:1115: error: storage size of ‘addr’ isn’t known
noip2.c:1118: warning: implicit declaration of function ‘gethostbyname’
noip2.c:1118: warning: assignment makes pointer from integer without a cast
noip2.c:1121: warning: implicit declaration of function ‘memcpy’
noip2.c:1121: warning: incompatible implicit declaration of built-in function ‘memcpy’
noip2.c:1121: error: dereferencing pointer to incomplete type
noip2.c:1122: warning: implicit declaration of function ‘memset’
noip2.c:1122: warning: incompatible implicit declaration of built-in function ‘memset’
noip2.c:1123: error: ‘AF_INET’ undeclared (first use in this function)
noip2.c:1124: warning: implicit declaration of function ‘htons’
noip2.c:1126: error: ‘SOCK_STREAM’ undeclared (first use in this function)
noip2.c:1131: warning: implicit declaration of function ‘connect’
noip2.c:1115: warning: unused variable ‘addr’
noip2.c:1114: warning: unused variable ‘saddr’
noip2.c: In function ‘converse_with_web_server’:
noip2.c:1155: warning: implicit declaration of function ‘strchr’
noip2.c:1155: warning: incompatible implicit declaration of built-in function ‘strchr’
noip2.c:1157: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1157: error: ‘stderr’ undeclared (first use in this function)
noip2.c:1162: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1165: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:1165: error: too many arguments to function ‘Write’
noip2.c:1169: error: too many arguments to function ‘Read’
noip2.c:1178: warning: incompatible implicit declaration of built-in function ‘strchr’
noip2.c:1180: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1185: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c: At top level:
noip2.c:1198: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘chksum’
noip2.c: In function ‘url_decode’:
noip2.c:1219: warning: implicit declaration of function ‘isdigit’
noip2.c: In function ‘get_one_config’:
noip2.c:1234: warning: implicit declaration of function ‘open’
noip2.c:1234: error: ‘O_RDONLY’ undeclared (first use in this function)
noip2.c:1238: error: ‘struct CONFIG’ has no member named ‘rlength’
noip2.c:1239: error: ‘struct CONFIG’ has no member named ‘interval’
noip2.c:1240: error: ‘struct CONFIG’ has no member named ‘nat’
noip2.c:1241: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:1241: error: ‘struct CONFIG’ has no member named ‘device’
noip2.c:1245: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c: In function ‘display_one_config’:
noip2.c:1264: warning: incompatible implicit declaration of built-in function ‘strcat’
noip2.c:1266: warning: incompatible implicit declaration of built-in function ‘strchr’
noip2.c: In function ‘display_current_config’:
noip2.c:1317: error: ‘SHM_RDONLY’ undeclared (first use in this function)
noip2.c:1318: warning: assignment makes pointer from integer without a cast
noip2.c:1325: error: ‘SIGTERM’ undeclared (first use in this function)
noip2.c:1326: error: ‘errno’ undeclared (first use in this function)
noip2.c:1326: error: ‘ESRCH’ undeclared (first use in this function)
noip2.c:1354: error: ‘SIGUSR1’ undeclared (first use in this function)
noip2.c:1372: error: ‘SEEK_SET’ undeclared (first use in this function)
noip2.c:1417: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c: In function ‘parse_config’:
noip2.c:1425: error: ‘O_RDWR’ undeclared (first use in this function)
noip2.c:1427: error: ‘errno’ undeclared (first use in this function)
noip2.c:1427: error: ‘EACCES’ undeclared (first use in this function)
noip2.c:1428: error: ‘O_RDONLY’ undeclared (first use in this function)
noip2.c:1444: error: ‘struct CONFIG’ has no member named ‘magic’
noip2.c:1446: error: ‘struct CONFIG’ has no member named ‘rlength’
noip2.c:1451: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c:1458: warning: implicit declaration of function ‘chksum’
noip2.c:1458: error: ‘struct CONFIG’ has no member named ‘rlength’
noip2.c:1459: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c:1460: error: ‘struct CONFIG’ has no member named ‘magic’
noip2.c:1461: error: ‘ushort’ undeclared (first use in this function)
noip2.c:1462: error: ‘struct CONFIG’ has no member named ‘chksum’
noip2.c:1465: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:1467: error: ‘struct CONFIG’ has no member named ‘device’
noip2.c:1468: error: ‘struct CONFIG’ has no member named ‘interval’
noip2.c:1469: error: ‘struct CONFIG’ has no member named ‘nat’
noip2.c:1470: error: ‘struct CONFIG’ has no member named ‘count’
noip2.c:1475: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:1477: error: ‘struct CONFIG’ has no member named ‘count’
noip2.c: In function ‘get_our_visible_IPaddr’:
noip2.c:1493: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:1499: warning: incompatible implicit declaration of built-in function ‘strrchr’
noip2.c:1500: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:1503: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1503: error: ‘stderr’ undeclared (first use in this function)
noip2.c: In function ‘dump_buffer’:
noip2.c:1517: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:1518: warning: implicit declaration of function ‘mkstemp’
noip2.c: In function ‘dynamic_update’:
noip2.c:1536: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:1537: warning: incompatible implicit declaration of built-in function ‘strcat’
noip2.c:1594: error: ‘errno’ undeclared (first use in this function)
noip2.c:1595: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:1598: warning: incompatible implicit declaration of built-in function ‘strrchr’
noip2.c:1607: warning: implicit declaration of function ‘execl’
noip2.c:1607: warning: incompatible implicit declaration of built-in function ‘execl’
noip2.c: In function ‘handle_dynup_error’:
noip2.c:1622: error: ‘LOG_INFO’ undeclared (first use in this function)
noip2.c:1625: error: ‘errno’ undeclared (first use in this function)
noip2.c:1625: warning: assignment makes pointer from integer without a cast
noip2.c:1672: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:1673: error: ‘SIGTERM’ undeclared (first use in this function)
noip2.c: In function ‘Malloc’:
noip2.c:1743: warning: implicit declaration of function ‘malloc’
noip2.c:1743: warning: incompatible implicit declaration of built-in function ‘malloc’
noip2.c:1746: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1746: error: ‘stderr’ undeclared (first use in this function)
noip2.c:1747: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c: In function ‘hosts’:
noip2.c:1779: warning: incompatible implicit declaration of built-in function ‘memcpy’
noip2.c:1781: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:1782: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:1788: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1788: error: ‘stderr’ undeclared (first use in this function)
noip2.c: In function ‘xmlerr’:
noip2.c:1795: warning: implicit declaration of function ‘strncmp’
noip2.c:1807: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1807: error: ‘stderr’ undeclared (first use in this function)
noip2.c: In function ‘get_xml_field’:
noip2.c:1821: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:1825: warning: incompatible implicit declaration of built-in function ‘strchr’
noip2.c:1829: warning: implicit declaration of function ‘strncasecmp’
noip2.c:1840: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1840: error: ‘stderr’ undeclared (first use in this function)
noip2.c: In function ‘add_to_list’:
noip2.c:1851: warning: implicit declaration of function ‘assert’
noip2.c:1862: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:1863: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c: In function ‘yesno’:
noip2.c:1891: warning: implicit declaration of function ‘vsnprintf’
noip2.c:1894: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1894: error: ‘stderr’ undeclared (first use in this function)
noip2.c:1895: warning: implicit declaration of function ‘tcgetattr’
noip2.c:1896: error: ‘argout’ has an incomplete type
noip2.c:1897: error: invalid use of undefined type ‘struct termios’
noip2.c:1897: error: ‘ICANON’ undeclared (first use in this function)
noip2.c:1898: error: invalid use of undefined type ‘struct termios’
noip2.c:1898: error: ‘ICRNL’ undeclared (first use in this function)
noip2.c:1899: error: invalid use of undefined type ‘struct termios’
noip2.c:1899: error: ‘OPOST’ undeclared (first use in this function)
noip2.c:1900: error: invalid use of undefined type ‘struct termios’
noip2.c:1900: error: ‘VMIN’ undeclared (first use in this function)
noip2.c:1901: error: invalid use of undefined type ‘struct termios’
noip2.c:1901: error: ‘VTIME’ undeclared (first use in this function)
noip2.c:1902: warning: implicit declaration of function ‘tcsetattr’
noip2.c:1902: error: ‘TCSADRAIN’ undeclared (first use in this function)
noip2.c:1905: warning: implicit declaration of function ‘puts’
noip2.c: In function ‘add_to_request’:
noip2.c:1916: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:1917: warning: incompatible implicit declaration of built-in function ‘strcat’
noip2.c:1919: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c: In function ‘get_update_selection’:
noip2.c:1929: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:1947: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1947: error: ‘stderr’ undeclared (first use in this function)
noip2.c: In function ‘url_encode’:
noip2.c:2043: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c: In function ‘get_credentials’:
noip2.c:2069: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:2069: error: ‘stderr’ undeclared (first use in this function)
noip2.c:2070: warning: implicit declaration of function ‘fgets’
noip2.c:2070: error: ‘stdin’ undeclared (first use in this function)
noip2.c:2071: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:2077: error: ‘argout’ has an incomplete type
noip2.c:2078: error: invalid use of undefined type ‘struct termios’
noip2.c:2078: error: ‘ICANON’ undeclared (first use in this function)
noip2.c:2078: error: ‘ECHO’ undeclared (first use in this function)
noip2.c:2079: error: invalid use of undefined type ‘struct termios’
noip2.c:2079: error: ‘ICRNL’ undeclared (first use in this function)
noip2.c:2080: error: invalid use of undefined type ‘struct termios’
noip2.c:2080: error: ‘OPOST’ undeclared (first use in this function)
noip2.c:2081: error: invalid use of undefined type ‘struct termios’
noip2.c:2081: error: ‘VMIN’ undeclared (first use in this function)
noip2.c:2082: error: invalid use of undefined type ‘struct termios’
noip2.c:2082: error: ‘VTIME’ undeclared (first use in this function)
noip2.c:2083: error: ‘TCSADRAIN’ undeclared (first use in this function)
noip2.c:2090: warning: implicit declaration of function ‘putchar’
noip2.c:2098: warning: implicit declaration of function ‘fflush’
noip2.c:2098: error: ‘stdout’ undeclared (first use in this function)
noip2.c: In function ‘get_all_device_names’:
noip2.c:2195: error: storage size of ‘Ifc’ isn’t known
noip2.c:2196: error: array type has incomplete element type
noip2.c:2201: error: ‘AF_INET’ undeclared (first use in this function)
noip2.c:2201: error: ‘SOCK_DGRAM’ undeclared (first use in this function)
noip2.c:2202: warning: implicit declaration of function ‘perror’
noip2.c:2203: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:2205: error: ‘SIOCGIFCONF’ undeclared (first use in this function)
noip2.c:2207: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:2209: error: invalid application of ‘sizeof’ to incomplete type ‘struct ifreq’
noip2.c:2211: warning: left-hand operand of comma expression has no effect
noip2.c:2211: error: increment of pointer to unknown structure
noip2.c:2211: error: arithmetic on pointer to an incomplete type
noip2.c:2213: error: dereferencing pointer to incomplete type
noip2.c:2216: warning: incompatible implicit declaration of built-in function ‘strchr’
noip2.c:2224: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:2196: warning: unused variable ‘IfcBuf’
noip2.c:2195: warning: unused variable ‘Ifc’
noip2.c: In function ‘get_device_name’:
noip2.c:2243: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:2245: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:2254: error: ‘stdin’ undeclared (first use in this function)
noip2.c: In function ‘autoconf’:
noip2.c:2266: error: ‘FILE’ undeclared (first use in this function)
noip2.c:2266: error: ‘fd’ undeclared (first use in this function)
noip2.c:2274: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:2277: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:2278: warning: incompatible implicit declaration of built-in function ‘strrchr’
noip2.c:2288: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:2290: warning: implicit declaration of function ‘fdopen’
noip2.c:2292: error: ‘struct CONFIG’ has no member named ‘magic’
noip2.c:2293: warning: incompatible implicit declaration of built-in function ‘memset’
noip2.c:2294: warning: incompatible implicit declaration of built-in function ‘memcpy’
noip2.c:2307: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:2321: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:2321: error: ‘stderr’ undeclared (first use in this function)
noip2.c:2369: error: ‘struct CONFIG’ has no member named ‘rlength’
noip2.c:2370: error: ‘struct CONFIG’ has no member named ‘nat’
noip2.c:2371: error: ‘struct CONFIG’ has no member named ‘device’
noip2.c:2375: error: ‘stdin’ undeclared (first use in this function)
noip2.c:2383: error: ‘struct CONFIG’ has no member named ‘interval’
noip2.c:2389: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c:2389: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:2394: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:2397: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c:2399: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c:2402: error: ‘struct CONFIG’ has no member named ‘encrypt’
noip2.c:2403: error: ‘struct CONFIG’ has no member named ‘count’
noip2.c:2404: error: ‘struct CONFIG’ has no member named ‘magic’
noip2.c:2404: error: ‘ushort’ undeclared (first use in this function)
noip2.c:2405: error: ‘struct CONFIG’ has no member named ‘rlength’
noip2.c:2406: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c:2407: error: ‘struct CONFIG’ has no member named ‘chksum’
noip2.c:2408: warning: implicit declaration of function ‘fwrite’
noip2.c:2408: warning: incompatible implicit declaration of built-in function ‘fwrite’
noip2.c:2409: error: ‘struct CONFIG’ has no member named ‘rlength’
noip2.c:2411: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c:2414: warning: implicit declaration of function ‘rename’
noip2.c:2418: warning: implicit declaration of function ‘unlink’
noip2.c:2419: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c: In function ‘bencode’:
noip2.c:2433: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c: In function ‘bdecode’:
noip2.c:2478: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c: In function ‘Msg’:
noip2.c:2517: error: ‘LOG_ERR’ undeclared (first use in this function)
noip2.c:2519: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:2519: error: ‘stderr’ undeclared (first use in this function)
make: ** [noip2] Erro 1




O que pode ser??????


4. Re: Resolvido - NO-IP no DEBIAN - ajuda

Marcelo Corręa
exercitobr

(usa Debian)

Enviado em 21/02/2008 - 22:21h

apt-get install gcc+ make


5. resolvido

wellington
welllinux

(usa Debian)

Enviado em 22/02/2008 - 17:07h

beleza galera, instalei o gcc e deu certo, obrigado memso


6. psssssssssss

wellington
welllinux

(usa Debian)

Enviado em 23/02/2008 - 13:34h

alem do gcc instalei o libc6-dev, dentro do diretorio descompactado do no-ip dei make e make install e boaaaaa, valeu e obrigado galera






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts