ddos icon indicating copy to clipboard operation
ddos copied to clipboard

Build Error

Open zHadsaw opened this issue 5 years ago • 1 comments

╔╦╗╔╦╗╔═╗╔═╗╔═╗╦═╗ ║║ ║║║ ║╚═╗║╣ ╠╦╝ ═╩╝═╩╝╚═╝╚═╝╚═╝╩╚═ v1.1 builder Building release 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, from /usr/include/arpa/inet.h:22, from socket.h:13, from socket.c:9: /usr/include/x86_64-linux-gnu/sys/socket.h:165:27: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘size_t *’ {aka ‘long unsign ed int *’} socklen_t __restrict __addr_len); ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ 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, from /usr/include/arpa/inet.h:22, from socket.h:13, from socket.c:9: /usr/include/x86_64-linux-gnu/sys/socket.h:165:27: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘size_t *’ {aka ‘long unsign ed int ’} socklen_t __restrict __addr_len); ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ddos.c: In function ‘_ddos_tcp’: ddos.c:73:37: warning: passing argument 1 of ‘getsockopt’ makes integer from pointer without a cast [-Wint-conversion] int retval = getsockopt(socket, SOL_SOCKET, SO_ERROR, &_error, &len); ^~~~~~ In file included from /usr/include/netinet/in.h:23, from /usr/include/arpa/inet.h:22, from socket.h:13, from ddos.h:13, from ddos.c:9: /usr/include/x86_64-linux-gnu/sys/socket.h:208:28: note: expected ‘int’ but argument is of type ‘int ()(int, int, int)’ extern int getsockopt (int __fd, int __level, int __optname, ~~~~^~~~ ddos.c: In function ‘ddos’: ddos.c:164:37: warning: passing argument 3 of ‘pthread_create’ from incompatible pointer type [-Wincompatible-pointer-types] pthread_create(&_ddos[0], NULL, _ddos_stat, NULL); ^~~~~~~~~~ In file included from ddos.h:17, from ddos.c:9: /usr/include/pthread.h:236:15: note: expected ‘void * ()(void )’ but argument is of type ‘void ()()’ void (__start_routine) (void ), ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ ddos.c:166:45: warning: passing argument 3 of ‘pthread_create’ from incompatible pointer type [-Wincompatible-pointer-types] if (pthread_create(&_ddos[i], NULL, __ddos_wrapper, p)) { ^~~~~~~~~~~~~~ In file included from ddos.h:17, from ddos.c:9: /usr/include/pthread.h:236:15: note: expected ‘void * ()(void )’ but argument is of type ‘void ()(_dos_param )’ {aka ‘void ()(struct *)’} void (__start_routine) (void *), ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.c: In function ‘main’: main.c:107: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, from main.c:16: util.h:25:7: note: expected ‘char ’ but argument is of type ‘const char ’ char readfile(char filename); ^~~~~~~~

zHadsaw avatar Oct 23 '20 20:10 zHadsaw

Hello. I can not see any error in build log, only warnings are there

0xf104a avatar Oct 24 '20 15:10 0xf104a