-
-
Save kodo-pp/8e53289790cf3f521f9901e0b672291d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gcc --version | |
gcc (GCC) 7.3.0 | |
Copyright (C) 2017 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
$ ./build.sh release | |
╔╦╗╔╦╗╔═╗╔═╗╔═╗╦═╗ | |
║║ ║║║ ║╚═╗║╣ ╠╦╝ | |
═╩╝═╩╝╚═╝╚═╝╚═╝╩╚═ v1.2 builder | |
Building release | |
ping.c: In function 'send_packet': | |
ping.c:92:9: error: unknown type name 'errno_t'; did you mean 'errno'? | |
errno_t err=errno; | |
^~~~~~~ | |
errno | |
In file included from util.c:9:0: | |
util.h:32:5: error: unknown type name 'uint64_t' | |
uint64_t length; | |
^~~~~~~~ | |
util.h:49:32: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'? | |
char* bytes2any(int64_t bcount,uint8_t type); | |
^~~~~~~ | |
u_int8_t | |
util.h:50:19: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'? | |
char* metrics2str(uint8_t type); | |
^~~~~~~ | |
u_int8_t | |
util.h:51:1: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'? | |
uint8_t str2metrics(char* metrics); | |
^~~~~~~ | |
u_int8_t | |
util.h:58:30: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'? | |
_node* nth_slist(slist* this,uint64_t n); | |
^~~~~~~~ | |
u_int64_t | |
util.h:59:16: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'? | |
void init_rand(uint32_t x); | |
^~~~~~~~ | |
u_int32_t | |
util.h:60:1: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'? | |
uint32_t rand_cmwc(void); | |
^~~~~~~~ | |
u_int32_t | |
util.c:17:8: error: unknown type name 'uint32_t' | |
static uint32_t Q[4096], c = 362436; | |
^~~~~~~~ | |
util.c:19:16: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'? | |
void init_rand(uint32_t x)//cwmc | |
^~~~~~~~ | |
u_int32_t | |
util.c:56:1: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'? | |
uint32_t rand_cmwc(void) | |
^~~~~~~~ | |
u_int32_t | |
util.c: In function 'rand_cmwc': | |
util.c:58:5: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'? | |
uint64_t t, a = 18782LL; | |
^~~~~~~~ | |
u_int64_t | |
util.c:59:12: error: unknown type name 'uint32_t' | |
static uint32_t i = 4095; | |
^~~~~~~~ | |
util.c:60:5: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'? | |
uint32_t x, r = 0xfffffffe; | |
^~~~~~~~ | |
u_int32_t | |
util.c:63:12: warning: right shift count >= width of type [-Wshift-count-overflow] | |
c = (t >> 32); | |
^~ | |
util.c:64:10: error: 'uint32_t' undeclared (first use in this function); did you mean 'u_int32_t'? | |
x = (uint32_t)t + c; | |
^~~~~~~~ | |
u_int32_t | |
util.c:64:10: note: each undeclared identifier is reported only once for each function it appears in | |
util.c:64:19: error: expected ';' before 't' | |
x = (uint32_t)t + c; | |
^ | |
util.c: At top level: | |
util.c:161:32: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'? | |
char* bytes2any(int64_t bcount,uint8_t type){ | |
^~~~~~~ | |
u_int8_t | |
util.c:164:19: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'? | |
char* metrics2str(uint8_t type){ | |
^~~~~~~ | |
u_int8_t | |
util.c:177:1: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'? | |
uint8_t str2metrics(char* metrics){ | |
^~~~~~~ | |
u_int8_t | |
util.c:255:30: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'? | |
_node* nth_slist(slist* this,uint64_t n){ | |
^~~~~~~~ | |
u_int64_t | |
socket.c: In function '_dos_udp_send': | |
socket.c:128:70: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] | |
if (recvfrom(sock, buf, 1024, MSG_PEEK, (struct sockaddr*)&addr, &slen) == -1) { | |
^ | |
In file included from /usr/include/netinet/in.h:23:0, | |
from /usr/include/arpa/inet.h:22, | |
from socket.h:13, | |
from socket.c:9: | |
/usr/include/x86_64-linux-gnu/sys/socket.h:174:16: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'size_t * {aka long unsigned int *}' | |
extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, | |
^~~~~~~~ | |
socket.c: In function 'dos_udp_send': | |
socket.c:151:86: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] | |
if (socket_wait&&recvfrom(sock, buf, bufsize, MSG_PEEK, (struct sockaddr*)&addr, &slen) == -1) { | |
^ | |
In file included from /usr/include/netinet/in.h:23:0, | |
from /usr/include/arpa/inet.h:22, | |
from socket.h:13, | |
from socket.c:9: | |
/usr/include/x86_64-linux-gnu/sys/socket.h:174:16: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'size_t * {aka long unsigned int *}' | |
extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, | |
^~~~~~~~ | |
main.c: In function 'main': | |
main.c:114:27: warning: passing argument 1 of 'readfile' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] | |
packet = readfile(getlarg("--packetfile", argv, argc)); | |
^~~~~~~ | |
In file included from ddos.h:14:0, | |
from main.c:18: | |
util.h:44:7: note: expected 'char *' but argument is of type 'const char *' | |
char* readfile(char* filename); | |
^~~~~~~~ | |
main.c:127:29: warning: passing argument 1 of 'str2metrics' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] | |
metrics=str2metrics(getlarg("--metrics", argv, argc)); | |
^~~~~~~ | |
In file included from ddos.h:14:0, | |
from main.c:18: | |
util.h:51:9: note: expected 'char *' but argument is of type 'const char *' | |
uint8_t str2metrics(char* metrics); | |
^~~~~~~~~~~ | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment