* Package: net-analyzer/iplog-2.2.3-r2 * Repository: gentoo * Maintainer: netmon@gentoo.org * USE: abi_x86_64 amd64 elibc_musl kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking iplog-2.2.3.tar.gz to /var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work >>> Source unpacked in /var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work >>> Preparing source in /var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work/iplog-2.2.3 ... * Applying 2.2.3-DLT_LINUX_SSL.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work/iplog-2.2.3 ... * econf: updating iplog-2.2.3/config.sub with /usr/share/gnuconfig/config.sub * econf: updating iplog-2.2.3/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=x86_64-gentoo-linux-musl --host=x86_64-gentoo-linux-musl --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib loading site script /usr/share/config.site creating cache ./config.cache checking for a BSD compatible install... /usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no checking whether make sets ${MAKE}... (cached) yes checking for gcc... gcc checking whether the C compiler (gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -Wl,-O1 -Wl,--as-needed) works... yes checking whether the C compiler (gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -Wl,-O1 -Wl,--as-needed) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for a BSD compatible install... /usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c checking host system type... x86_64-gentoo-linux-musl checking for __attribute__... no checking for dprintf... yes checking for vasprintf... yes checking for getopt_long... yes checking for localtime_r... yes checking for inet_aton... yes checking for vsnprintf... yes checking for snprintf... yes checking for getpagesize... yes checking how to run the C preprocessor... gcc -E checking for paths.h... yes checking for sys/sockio.h... no checking for ANSI C header files... yes checking for u_int32_t... yes checking for u_int16_t... yes checking for u_int8_t... yes checking for ipaddr_t... no checking for in_port_t... yes checking for pthread_create in -lpthread... yes checking for pthread_cancel in -lpthread... yes checking for getservbyport_r... yes checking whether getservbyport_r takes 6 args... yes checking for gethostbyaddr_r... yes checking whether gethostbyaddr_r takes 8 args... yes checking for getprotobynumber_r... no checking for getprotobynumber_r in -lpthread... no checking for getprotobynumber_r in -lpthread... (cached) no checking for getprotobynumber_r in -lsocket... no checking for getprotobynumber_r in -lnsl... no checking for pcap_open_live in -lpcap... yes checking if sockaddr struct has sa_len member... no checking for pcap.h... yes updating cache ./config.cache creating ./config.status creating Makefile creating src/Makefile creating src/gnu/Makefile creating config.h Please remember to use GNU make to build iplog. iplog will not build with BSD (or any other) make. You can get GNU make from any GNU mirror in /pub/gnu/make >>> Source configured. >>> Compiling source in /var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work/iplog-2.2.3 ... make -j1 'CFLAGS=-O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -D_REENTRANT' all make all-recursive make[1]: Entering directory '/var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work/iplog-2.2.3' Making all in src make[2]: Entering directory '/var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work/iplog-2.2.3/src' Making all in gnu make[3]: Entering directory '/var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work/iplog-2.2.3/src/gnu' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work/iplog-2.2.3/src/gnu' make[3]: Entering directory '/var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work/iplog-2.2.3/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -D_REENTRANT -c getopt.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -D_REENTRANT -c getopt1.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -D_REENTRANT -c iplog_config.c In file included from iplog_config.c:30: ./iplog.h:25:10: error: unknown type name ‘u_int32_t’ 25 | typedef u_int32_t ipaddr_t; | ^~~~~~~~~ In file included from iplog_config.c:30: ./iplog.h:114:14: error: unknown type name ‘u_long’; did you mean ‘n_long’? 114 | void xusleep(u_long usec); | ^~~~~~ | n_long ./iplog.h:117:1: error: unknown type name ‘u_char’; did you mean ‘char’? 117 | u_char *serv_lookup(in_port_t port, const u_char *proto, u_char *buf, size_t len); | ^~~~~~ | char ./iplog.h:117:43: error: unknown type name ‘u_char’ 117 | u_char *serv_lookup(in_port_t port, const u_char *proto, u_char *buf, size_t len); | ^~~~~~ ./iplog.h:117:58: error: unknown type name ‘u_char’; did you mean ‘char’? 117 | u_char *serv_lookup(in_port_t port, const u_char *proto, u_char *buf, size_t len); | ^~~~~~ | char ./iplog.h:118:1: error: unknown type name ‘u_char’; did you mean ‘char’? 118 | u_char *proto_lookup(int proto, u_char *buf, size_t len); | ^~~~~~ | char ./iplog.h:118:33: error: unknown type name ‘u_char’; did you mean ‘char’? 118 | u_char *proto_lookup(int proto, u_char *buf, size_t len); | ^~~~~~ | char ./iplog.h:119:23: error: unknown type name ‘u_char’ 119 | void drop_privs(const u_char *user, const u_char *group); | ^~~~~~ ./iplog.h:119:43: error: unknown type name ‘u_char’ 119 | void drop_privs(const u_char *user, const u_char *group); | ^~~~~~ ./iplog.h:120:18: error: unknown type name ‘u_char’ 120 | void fatal(const u_char *fmt, ...); | ^~~~~~ ./iplog.h:121:24: error: unknown type name ‘u_char’; did you mean ‘char’? 121 | int get_line(FILE *fp, u_char *buf, size_t len); | ^~~~~~ | char ./iplog.h:154:14: error: unknown type name ‘u_short’; did you mean ‘n_short’? 154 | int in_cksum(u_short *addr, int len); | ^~~~~~~ | n_short ./iplog.h:168:27: error: unknown type name ‘u_char’ 168 | void write_lockfile(const u_char *lockfile); | ^~~~~~ ./iplog.h:169:32: error: unknown type name ‘u_char’ 169 | void kill_iplog(int sig, const u_char *lockfile); | ^~~~~~ In file included from ./iplog.h:180, from iplog_config.c:30: ./iplog_inet_header.h:9:2: error: unknown type name ‘u_int16_t’ 9 | u_int16_t uh_sport; | ^~~~~~~~~ ./iplog_inet_header.h:10:2: error: unknown type name ‘u_int16_t’ 10 | u_int16_t uh_dport; | ^~~~~~~~~ ./iplog_inet_header.h:11:2: error: unknown type name ‘u_int16_t’ 11 | u_int16_t uh_ulen; | ^~~~~~~~~ ./iplog_inet_header.h:12:2: error: unknown type name ‘u_int16_t’ 12 | u_int16_t uh_sum; | ^~~~~~~~~ ./iplog_inet_header.h:17:2: error: unknown type name ‘u_int’ 17 | u_int ip_hl:4; | ^~~~~ ./iplog_inet_header.h:18:2: error: unknown type name ‘u_int’ 18 | u_int ip_v:4; | ^~~~~ ./iplog_inet_header.h:25:2: error: unknown type name ‘u_int8_t’ 25 | u_int8_t ip_tos; | ^~~~~~~~ ./iplog_inet_header.h:26:2: error: unknown type name ‘u_int16_t’ 26 | u_int16_t ip_len; | ^~~~~~~~~ ./iplog_inet_header.h:27:2: error: unknown type name ‘u_int16_t’ 27 | u_int16_t ip_id; | ^~~~~~~~~ ./iplog_inet_header.h:28:2: error: unknown type name ‘u_int16_t’ 28 | u_int16_t ip_off; | ^~~~~~~~~ ./iplog_inet_header.h:33:2: error: unknown type name ‘u_int8_t’ 33 | u_int8_t ip_ttl; | ^~~~~~~~ ./iplog_inet_header.h:34:2: error: unknown type name ‘u_int8_t’ 34 | u_int8_t ip_p; | ^~~~~~~~ ./iplog_inet_header.h:35:2: error: unknown type name ‘u_int16_t’ 35 | u_int16_t ip_sum; | ^~~~~~~~~ ./iplog_inet_header.h:41:2: error: unknown type name ‘u_int16_t’ 41 | u_int16_t th_sport; | ^~~~~~~~~ ./iplog_inet_header.h:42:2: error: unknown type name ‘u_int16_t’ 42 | u_int16_t th_dport; | ^~~~~~~~~ ./iplog_inet_header.h:43:2: error: unknown type name ‘u_int32_t’ 43 | u_int32_t th_seq; | ^~~~~~~~~ ./iplog_inet_header.h:44:2: error: unknown type name ‘u_int32_t’ 44 | u_int32_t th_ack; | ^~~~~~~~~ ./iplog_inet_header.h:46:2: error: unknown type name ‘u_int8_t’ 46 | u_int8_t th_x2:4; | ^~~~~~~~ ./iplog_inet_header.h:47:2: error: unknown type name ‘u_int8_t’ 47 | u_int8_t th_off:4; | ^~~~~~~~ ./iplog_inet_header.h:54:2: error: unknown type name ‘u_int8_t’ 54 | u_int8_t th_flags; | ^~~~~~~~ ./iplog_inet_header.h:61:2: error: unknown type name ‘u_int16_t’ 61 | u_int16_t th_win; | ^~~~~~~~~ ./iplog_inet_header.h:62:2: error: unknown type name ‘u_int16_t’ 62 | u_int16_t th_sum; | ^~~~~~~~~ ./iplog_inet_header.h:63:2: error: unknown type name ‘u_int16_t’ 63 | u_int16_t th_urp; | ^~~~~~~~~ ./iplog_inet_header.h:87:2: error: unknown type name ‘u_int8_t’ 87 | u_int8_t icmp_type; | ^~~~~~~~ ./iplog_inet_header.h:88:2: error: unknown type name ‘u_int8_t’ 88 | u_int8_t icmp_code; | ^~~~~~~~ ./iplog_inet_header.h:89:2: error: unknown type name ‘u_int16_t’ 89 | u_int16_t icmp_cksum; | ^~~~~~~~~ ./iplog_inet_header.h:91:3: error: unknown type name ‘u_int8_t’ 91 | u_int8_t ih_pptr; | ^~~~~~~~ ./iplog_inet_header.h:94:4: error: unknown type name ‘u_int16_t’ 94 | u_int16_t icd_id; | ^~~~~~~~~ ./iplog_inet_header.h:95:4: error: unknown type name ‘u_int16_t’ 95 | u_int16_t icd_seq; | ^~~~~~~~~ ./iplog_inet_header.h:97:3: error: unknown type name ‘u_int32_t’ 97 | u_int32_t ih_reserved; | ^~~~~~~~~ ./iplog_inet_header.h:99:4: error: unknown type name ‘u_int8_t’ 99 | u_int8_t num_addr; | ^~~~~~~~ ./iplog_inet_header.h:100:4: error: unknown type name ‘u_int8_t’ 100 | u_int8_t addr_entry_size; | ^~~~~~~~ ./iplog_inet_header.h:101:4: error: unknown type name ‘u_int16_t’ 101 | u_int16_t lifetime; | ^~~~~~~~~ ./iplog_inet_header.h:113:4: error: unknown type name ‘u_int32_t’ 113 | u_int32_t its_otime; | ^~~~~~~~~ ./iplog_inet_header.h:114:4: error: unknown type name ‘u_int32_t’ 114 | u_int32_t its_rtime; | ^~~~~~~~~ ./iplog_inet_header.h:115:4: error: unknown type name ‘u_int32_t’ 115 | u_int32_t its_ttime; | ^~~~~~~~~ ./iplog_inet_header.h:120:3: error: unknown type name ‘u_int32_t’ 120 | u_int32_t id_mask; | ^~~~~~~~~ In file included from iplog_config.c:30: ./iplog.h:186:1: error: unknown type name ‘u_char’; did you mean ‘char’? 186 | u_char *inet_ntoa_r(const struct in_addr *in, u_char *buf, size_t len); | ^~~~~~ | char ./iplog.h:186:47: error: unknown type name ‘u_char’; did you mean ‘char’? 186 | u_char *inet_ntoa_r(const struct in_addr *in, u_char *buf, size_t len); | ^~~~~~ | char ./iplog.h:187:1: error: unknown type name ‘u_char’; did you mean ‘char’? 187 | u_char *host_lookup(const struct in_addr *in, bool resolv, u_char *buf, size_t len); | ^~~~~~ | char ./iplog.h:187:60: error: unknown type name ‘u_char’; did you mean ‘char’? 187 | u_char *host_lookup(const struct in_addr *in, bool resolv, u_char *buf, size_t len); | ^~~~~~ | char ./iplog.h:188:1: error: unknown type name ‘u_char’; did you mean ‘char’? 188 | u_char *_host_lookup(const struct in_addr *in, u_char *buf, size_t len); | ^~~~~~ | char ./iplog.h:188:48: error: unknown type name ‘u_char’; did you mean ‘char’? 188 | u_char *_host_lookup(const struct in_addr *in, u_char *buf, size_t len); | ^~~~~~ | char In file included from iplog_config.c:33: ./iplog_options.h:24:8: error: unknown type name ‘u_int32_t’ 24 | extern u_int32_t flags; | ^~~~~~~~~ ./iplog_options.h:66:24: error: unknown type name ‘u_char’ 66 | int get_facility(const u_char *new_facility); | ^~~~~~ ./iplog_options.h:67:24: error: unknown type name ‘u_char’ 67 | int get_priority(const u_char *new_priority); | ^~~~~~ In file included from iplog_config.c:34: ./iplog_config.h:44:2: error: unknown type name ‘u_int’ 44 | u_int state; | ^~~~~ ./iplog_config.h:74:25: error: unknown type name ‘u_char’ 74 | void parse_config(const u_char *); | ^~~~~~ ./iplog_config.h:75:26: error: unknown type name ‘u_int’; did you mean ‘int’? 75 | void destroy_filter_list(u_int prot); | ^~~~~ | int ./iplog_config.h:76:24: error: expected ‘)’ before ‘const’ 76 | bool icmp_filter(u_int, const struct ip *, u_char); | ^~~~~~ | ) ./iplog_config.h:77:23: error: expected ‘)’ before ‘const’ 77 | bool tcp_filter(u_int, const struct ip *, in_port_t, in_port_t); | ^~~~~~ | ) iplog_config.c:36:32: error: unknown type name ‘u_char’ 36 | static int get_icmp_type(const u_char *, struct port_range *); | ^~~~~~ iplog_config.c:37:27: error: unknown type name ‘u_char’ 37 | static int get_addr(const u_char *, ipaddr_t *, ipaddr_t *, size_t); | ^~~~~~ iplog_config.c:38:32: error: unknown type name ‘u_char’ 38 | static int get_addrrange(const u_char *, struct addr_entry *, ipaddr_t *, size_t); | ^~~~~~ iplog_config.c:39:27: error: unknown type name ‘u_char’ 39 | static int get_port(const u_char *, int, const u_char *); | ^~~~~~ iplog_config.c:39:48: error: unknown type name ‘u_char’ 39 | static int get_port(const u_char *, int, const u_char *); | ^~~~~~ iplog_config.c:40:32: error: unknown type name ‘u_char’ 40 | static int get_portrange(const u_char *, struct port_range *, u_int prot); | ^~~~~~ iplog_config.c:40:63: error: unknown type name ‘u_int’; did you mean ‘int’? 40 | static int get_portrange(const u_char *, struct port_range *, u_int prot); | ^~~~~ | int iplog_config.c:46:25: error: unknown type name ‘u_int’; did you mean ‘int’? 46 | static void enter_state(u_int new_state); | ^~~~~ | int iplog_config.c:49:14: error: unknown type name ‘u_char’ 49 | static const u_char *proto_list[] = { "tcp", "udp", "icmp" }; | ^~~~~~ iplog_config.c:49:39: warning: initialization of ‘const int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 49 | static const u_char *proto_list[] = { "tcp", "udp", "icmp" }; | ^~~~~ iplog_config.c:49:39: note: (near initialization for ‘proto_list[0]’) iplog_config.c:49:46: warning: initialization of ‘const int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 49 | static const u_char *proto_list[] = { "tcp", "udp", "icmp" }; | ^~~~~ iplog_config.c:49:46: note: (near initialization for ‘proto_list[1]’) iplog_config.c:49:53: warning: initialization of ‘const int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 49 | static const u_char *proto_list[] = { "tcp", "udp", "icmp" }; | ^~~~~~ iplog_config.c:49:53: note: (near initialization for ‘proto_list[2]’) iplog_config.c:50:8: error: unknown type name ‘u_char’ 50 | static u_char errbuf[512]; | ^~~~~~ iplog_config.c:53:8: error: unknown type name ‘u_int’ 53 | static u_int current_state = STATE_INITIAL; | ^~~~~ iplog_config.c:61:18: error: unknown type name ‘u_int’; did you mean ‘int’? 61 | bool icmp_filter(u_int prot, const struct ip *ip, u_char type) { | ^~~~~ | int iplog_config.c:61:51: error: unknown type name ‘u_char’; did you mean ‘char’? 61 | bool icmp_filter(u_int prot, const struct ip *ip, u_char type) { | ^~~~~~ | char iplog_config.c:80:17: error: unknown type name ‘u_int’; did you mean ‘int’? 80 | bool tcp_filter(u_int p, const struct ip *ip, in_port_t sprt, in_port_t dprt) { | ^~~~~ | int iplog_config.c:101:25: error: unknown type name ‘u_int’; did you mean ‘int’? 101 | static void enter_state(u_int new_state) { | ^~~~~ | int iplog_config.c: In function ‘exit_state’: iplog_config.c:116:2: error: unknown type name ‘u_int’; did you mean ‘int’? 116 | u_int new_state; | ^~~~~ | int iplog_config.c: At top level: iplog_config.c:197:27: error: unknown type name ‘u_char’ 197 | static int get_addr(const u_char *hostname, ipaddr_t *addr, | ^~~~~~ In file included from iplog_config.c:26: iplog_config.c: In function ‘get_addr’: iplog_config.c:205:30: warning: passing argument 1 of ‘strlen’ from incompatible pointer type [-Wincompatible-pointer-types] 205 | if (isdigit(hostname[strlen(hostname) - 1])) { | ^~~~~~~~ | | | const int * In file included from iplog_config.c:28: /usr/include/string.h:52:16: note: expected ‘const char *’ but argument is of type ‘const int *’ 52 | size_t strlen (const char *); | ^~~~~~~~~~~~ In file included from iplog_config.c:26: iplog_config.c:205:30: warning: passing argument 1 of ‘strlen’ from incompatible pointer type [-Wincompatible-pointer-types] 205 | if (isdigit(hostname[strlen(hostname) - 1])) { | ^~~~~~~~ | | | const int * In file included from iplog_config.c:28: /usr/include/string.h:52:16: note: expected ‘const char *’ but argument is of type ‘const int *’ 52 | size_t strlen (const char *); | ^~~~~~~~~~~~ iplog_config.c:206:3: error: unknown type name ‘u_char’; did you mean ‘char’? 206 | u_char *p = (typeof(p)) hostname, i; | ^~~~~~ | char iplog_config.c:214:4: error: unknown type name ‘u_char’; did you mean ‘char’? 214 | u_char short_host[MAX_IPLEN]; | ^~~~~~ | char iplog_config.c:216:13: warning: passing argument 1 of ‘xstrncpy’ from incompatible pointer type [-Wincompatible-pointer-types] 216 | xstrncpy(short_host, hostname, sizeof(short_host)); | ^~~~~~~~~~ | | | int * In file included from iplog_config.c:30: ./iplog.h:111:7: note: expected ‘char *’ but argument is of type ‘int *’ 111 | char *xstrncpy(char *dest, const char *src, size_t n); | ^~~~~~~~ iplog_config.c:216:25: warning: passing argument 2 of ‘xstrncpy’ from incompatible pointer type [-Wincompatible-pointer-types] 216 | xstrncpy(short_host, hostname, sizeof(short_host)); | ^~~~~~~~ | | | const int * In file included from iplog_config.c:30: ./iplog.h:111:7: note: expected ‘const char *’ but argument is of type ‘const int *’ 111 | char *xstrncpy(char *dest, const char *src, size_t n); | ^~~~~~~~ iplog_config.c:219:15: warning: passing argument 1 of ‘xstrncat’ from incompatible pointer type [-Wincompatible-pointer-types] 219 | xstrncat(short_host, ".0", sizeof(short_host)); | ^~~~~~~~~~ | | | int * In file included from iplog_config.c:30: ./iplog.h:112:7: note: expected ‘char *’ but argument is of type ‘int *’ 112 | char *xstrncat(char *dest, const char *src, size_t n); | ^~~~~~~~ iplog_config.c:221:15: warning: passing argument 1 of ‘xstrncat’ from incompatible pointer type [-Wincompatible-pointer-types] 221 | xstrncat(short_host, ".0", sizeof(short_host)); | ^~~~~~~~~~ | | | int * In file included from iplog_config.c:30: ./iplog.h:112:7: note: expected ‘char *’ but argument is of type ‘int *’ 112 | char *xstrncat(char *dest, const char *src, size_t n); | ^~~~~~~~ iplog_config.c:223:15: warning: passing argument 1 of ‘xstrncat’ from incompatible pointer type [-Wincompatible-pointer-types] 223 | xstrncat(short_host, ".0", sizeof(short_host)); | ^~~~~~~~~~ | | | int * In file included from iplog_config.c:30: ./iplog.h:112:7: note: expected ‘char *’ but argument is of type ‘int *’ 112 | char *xstrncat(char *dest, const char *src, size_t n); | ^~~~~~~~ iplog_config.c:227:14: warning: passing argument 1 of ‘inet_aton’ from incompatible pointer type [-Wincompatible-pointer-types] 227 | inet_aton(short_host, &in); | ^~~~~~~~~~ | | | int * In file included from iplog_config.c:31: /usr/include/arpa/inet.h:22:16: note: expected ‘const char *’ but argument is of type ‘int *’ 22 | int inet_aton (const char *, struct in_addr *); | ^~~~~~~~~~~~ iplog_config.c:236:23: warning: passing argument 1 of ‘gethostbyname’ from incompatible pointer type [-Wincompatible-pointer-types] 236 | host = gethostbyname(hostname); | ^~~~~~~~ | | | const int * In file included from iplog_config.c:29: /usr/include/netdb.h:116:17: note: expected ‘const char *’ but argument is of type ‘const int *’ 116 | struct hostent *gethostbyname (const char *); | ^~~~~~~~~~~~~ iplog_config.c:238:3: error: unknown type name ‘u_char’; did you mean ‘char’? 238 | u_char **p; | ^~~~~~ | char iplog_config.c:255:17: warning: passing argument 1 of ‘inet_aton’ from incompatible pointer type [-Wincompatible-pointer-types] 255 | if (inet_aton(hostname, &in) != 0) | ^~~~~~~~ | | | const int * In file included from iplog_config.c:31: /usr/include/arpa/inet.h:22:16: note: expected ‘const char *’ but argument is of type ‘const int *’ 22 | int inet_aton (const char *, struct in_addr *); | ^~~~~~~~~~~~ iplog_config.c: At top level: iplog_config.c:271:32: error: unknown type name ‘u_char’ 271 | static int get_icmp_type(const u_char *str, struct port_range *dst) { | ^~~~~~ iplog_config.c: In function ‘get_icmp_type’: iplog_config.c:280:16: warning: passing argument 1 of ‘strtol’ from incompatible pointer type [-Wincompatible-pointer-types] 280 | type = strtol(str, &nptr, 10); | ^~~ | | | const int * In file included from iplog_config.c:24: /usr/include/stdlib.h:30:14: note: expected ‘const char * restrict’ but argument is of type ‘const int *’ 30 | long strtol (const char *__restrict, char **__restrict, int); | ^ iplog_config.c:290:19: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 290 | if (!strncasecmp(str, "ICMP_", 5)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:293:19: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 293 | if (!strncasecmp(str, "ECHOREPLY", 5)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:295:24: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 295 | else if (!strncasecmp(str, "ECHO", 2)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:297:24: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 297 | else if (!strncasecmp(str, "UNREACH", 4)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:299:24: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 299 | else if (!strncasecmp(str, "REDIRECT", 3)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:301:24: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 301 | else if (!strncasecmp(str, "ROUTERADVERT", 9)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:303:24: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 303 | else if (!strncasecmp(str, "ROUTERSOLICIT", 9)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:305:24: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 305 | else if (!strncasecmp(str, "TIMXCEED", 5)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:307:24: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 307 | else if (!strncasecmp(str, "TIMESTAMP_REPLY", 10)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:309:24: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 309 | else if (!strncasecmp(str, "TSTAMP", 6)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:311:24: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 311 | else if (!strncasecmp(str, "IREQREPLY", 5)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:313:24: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 313 | else if (!strncasecmp(str, "IREQ", 2)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:315:24: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 315 | else if (!strncasecmp(str, "MASKREPLY", 5)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:317:24: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 317 | else if (!strncasecmp(str, "MASKREQ", 2)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:319:24: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 319 | else if (!strncasecmp(str, "PARAMPROB", 4)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:321:24: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 321 | else if (!strncasecmp(str, "SOURCEQUENCH", 3)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘const int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:324:12: warning: passing argument 1 of ‘snprintf’ from incompatible pointer type [-Wincompatible-pointer-types] 324 | snprintf(errbuf, sizeof(errbuf), "Unknown ICMP type: %s", str); | ^~~~~~ | | | int * In file included from iplog_config.c:25: /usr/include/stdio.h:110:14: note: expected ‘char * restrict’ but argument is of type ‘int *’ 110 | int snprintf(char *__restrict, size_t, const char *__restrict, ...); | ^ iplog_config.c:324:57: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘const int *’ [-Wformat=] 324 | snprintf(errbuf, sizeof(errbuf), "Unknown ICMP type: %s", str); | ~^ ~~~ | | | | | const int * | char * | %ls iplog_config.c: At top level: iplog_config.c:336:27: error: unknown type name ‘u_char’ 336 | static int get_port(const u_char *s, int wildcard, const u_char *proto) { | ^~~~~~ iplog_config.c:336:58: error: unknown type name ‘u_char’ 336 | static int get_port(const u_char *s, int wildcard, const u_char *proto) { | ^~~~~~ iplog_config.c: In function ‘get_port’: iplog_config.c:339:18: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 339 | if (!strcasecmp(s, EVERYTHING)) | ^ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘const int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:344:17: warning: passing argument 1 of ‘strtol’ from incompatible pointer type [-Wincompatible-pointer-types] 344 | port = strtol(s, &nptr, 10); | ^ | | | const int * In file included from iplog_config.c:24: /usr/include/stdlib.h:30:14: note: expected ‘const char * restrict’ but argument is of type ‘const int *’ 30 | long strtol (const char *__restrict, char **__restrict, int); | ^ iplog_config.c:346:39: warning: passing argument 1 of ‘getservbyname’ from incompatible pointer type [-Wincompatible-pointer-types] 346 | struct servent *se = getservbyname(s, proto); | ^ | | | const int * In file included from iplog_config.c:29: /usr/include/netdb.h:104:17: note: expected ‘const char *’ but argument is of type ‘const int *’ 104 | struct servent *getservbyname (const char *, const char *); | ^~~~~~~~~~~~~ iplog_config.c:346:42: warning: passing argument 2 of ‘getservbyname’ from incompatible pointer type [-Wincompatible-pointer-types] 346 | struct servent *se = getservbyname(s, proto); | ^~~~~ | | | const int * In file included from iplog_config.c:29: /usr/include/netdb.h:104:17: note: expected ‘const char *’ but argument is of type ‘const int *’ 104 | struct servent *getservbyname (const char *, const char *); | ^~~~~~~~~~~~~ iplog_config.c:349:14: warning: passing argument 1 of ‘snprintf’ from incompatible pointer type [-Wincompatible-pointer-types] 349 | snprintf(errbuf, sizeof(errbuf), "Invalid port: \"%s\"", s); | ^~~~~~ | | | int * In file included from iplog_config.c:25: /usr/include/stdio.h:110:14: note: expected ‘char * restrict’ but argument is of type ‘int *’ 110 | int snprintf(char *__restrict, size_t, const char *__restrict, ...); | ^ iplog_config.c:349:56: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘const int *’ [-Wformat=] 349 | snprintf(errbuf, sizeof(errbuf), "Invalid port: \"%s\"", s); | ~^ ~ | | | | | const int * | char * | %ls iplog_config.c: At top level: iplog_config.c:365:32: error: unknown type name ‘u_char’ 365 | static int get_addrrange(const u_char *str, | ^~~~~~ iplog_config.c: In function ‘get_addrrange’: iplog_config.c:370:2: error: unknown type name ‘u_char’; did you mean ‘char’? 370 | u_char *p, *q; | ^~~~~~ | char iplog_config.c:378:13: warning: passing argument 1 of ‘strchr’ from incompatible pointer type [-Wincompatible-pointer-types] 378 | p = strchr(str, '/'); | ^~~ | | | const int * In file included from iplog_config.c:28: /usr/include/string.h:43:7: note: expected ‘const char *’ but argument is of type ‘const int *’ 43 | char *strchr (const char *, int); | ^~~~~~ iplog_config.c:378:4: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 378 | p = strchr(str, '/'); | ^ iplog_config.c:390:14: warning: passing argument 1 of ‘snprintf’ from incompatible pointer type [-Wincompatible-pointer-types] 390 | snprintf(errbuf, sizeof(errbuf), "Invalid mask: %s", str); | ^~~~~~ | | | int * In file included from iplog_config.c:25: /usr/include/stdio.h:110:14: note: expected ‘char * restrict’ but argument is of type ‘int *’ 110 | int snprintf(char *__restrict, size_t, const char *__restrict, ...); | ^ iplog_config.c:390:54: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘const int *’ [-Wformat=] 390 | snprintf(errbuf, sizeof(errbuf), "Invalid mask: %s", str); | ~^ ~~~ | | | | | const int * | char * | %ls iplog_config.c:394:20: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 394 | if (!strcasecmp(p, EVERYTHING)) | ^ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:399:17: warning: passing argument 1 of ‘strtoul’ from incompatible pointer type [-Wincompatible-pointer-types] 399 | i = strtoul(p, &nptr, 10); | ^ | | | int * In file included from iplog_config.c:24: /usr/include/stdlib.h:31:24: note: expected ‘const char * restrict’ but argument is of type ‘int *’ 31 | unsigned long strtoul (const char *__restrict, char **__restrict, int); | ^ iplog_config.c:404:16: warning: passing argument 1 of ‘snprintf’ from incompatible pointer type [-Wincompatible-pointer-types] 404 | snprintf(errbuf, sizeof(errbuf), | ^~~~~~ | | | int * In file included from iplog_config.c:25: /usr/include/stdio.h:110:14: note: expected ‘char * restrict’ but argument is of type ‘int *’ 110 | int snprintf(char *__restrict, size_t, const char *__restrict, ...); | ^ iplog_config.c:409:15: warning: passing argument 1 of ‘snprintf’ from incompatible pointer type [-Wincompatible-pointer-types] 409 | snprintf(errbuf, sizeof(errbuf), "Invalid mask: %s", str); | ^~~~~~ | | | int * In file included from iplog_config.c:25: /usr/include/stdio.h:110:14: note: expected ‘char * restrict’ but argument is of type ‘int *’ 110 | int snprintf(char *__restrict, size_t, const char *__restrict, ...); | ^ iplog_config.c:409:55: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘const int *’ [-Wformat=] 409 | snprintf(errbuf, sizeof(errbuf), "Invalid mask: %s", str); | ~^ ~~~ | | | | | const int * | char * | %ls iplog_config.c:417:18: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 417 | if (!strcasecmp(str, EVERYTHING)) | ^~~ | | | const int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘const int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:422:13: warning: passing argument 1 of ‘snprintf’ from incompatible pointer type [-Wincompatible-pointer-types] 422 | snprintf(errbuf, sizeof(errbuf), "Unknown host: %s", str); | ^~~~~~ | | | int * In file included from iplog_config.c:25: /usr/include/stdio.h:110:14: note: expected ‘char * restrict’ but argument is of type ‘int *’ 110 | int snprintf(char *__restrict, size_t, const char *__restrict, ...); | ^ iplog_config.c:422:53: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘const int *’ [-Wformat=] 422 | snprintf(errbuf, sizeof(errbuf), "Unknown host: %s", str); | ~^ ~~~ | | | | | const int * | char * | %ls iplog_config.c: At top level: iplog_config.c:435:32: error: unknown type name ‘u_char’ 435 | static int get_portrange(const u_char *str, struct port_range *port, u_int prot) | ^~~~~~ iplog_config.c:435:70: error: unknown type name ‘u_int’; did you mean ‘int’? 435 | tatic int get_portrange(const u_char *str, struct port_range *port, u_int prot) | ^~~~~ | int iplog_config.c:496:25: error: unknown type name ‘u_char’ 496 | void parse_config(const u_char *filename) { | ^~~~~~ iplog_config.c: In function ‘parse_config’: iplog_config.c:498:2: error: unknown type name ‘u_char’; did you mean ‘char’? 498 | u_char buf[8192], *token; | ^~~~~~ | char iplog_config.c:499:2: error: unknown type name ‘u_int’; did you mean ‘int’? 499 | u_int prot = 0, line_number = 0; | ^~~~~ | int iplog_config.c:501:9: error: unknown type name ‘u_char’ 501 | extern u_char *user, *group, *ifstring, *logfile, *lockfile, *pcap_network; | ^~~~~~ iplog_config.c:509:2: error: unknown type name ‘u_int32_t’; did you mean ‘uint32_t’? 509 | u_int32_t temp_flags = 0; | ^~~~~~~~~ | uint32_t iplog_config.c:511:13: warning: passing argument 1 of ‘fopen’ from incompatible pointer type [-Wincompatible-pointer-types] 511 | fp = fopen(filename, "r"); | ^~~~~~~~ | | | const int * In file included from iplog_config.c:25: /usr/include/stdio.h:68:7: note: expected ‘const char * restrict’ but argument is of type ‘const int *’ 68 | FILE *fopen(const char *__restrict, const char *__restrict); | ^~~~~ iplog_config.c:523:9: warning: implicit declaration of function ‘get_line’; did you mean ‘getline’? [-Wimplicit-function-declaration] 523 | while (get_line(fp, buf, sizeof(buf) - 1) != EOF) { | ^~~~~~~~ | getline iplog_config.c:539:18: warning: passing argument 1 of ‘strtok’ from incompatible pointer type [-Wincompatible-pointer-types] 539 | token = strtok(buf, " \t\n"); | ^~~ | | | int * In file included from iplog_config.c:28: /usr/include/string.h:50:7: note: expected ‘char * restrict’ but argument is of type ‘int *’ 50 | char *strtok (char *__restrict, const char *__restrict); | ^~~~~~ iplog_config.c:539:9: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 539 | token = strtok(buf, " \t\n"); | ^ iplog_config.c:551:17: warning: passing argument 1 of ‘strncmp’ from incompatible pointer type [-Wincompatible-pointer-types] 551 | if (!strncmp(token, "/*", 2)) { | ^~~~~ | | | int * In file included from iplog_config.c:28: /usr/include/string.h:38:14: note: expected ‘const char *’ but argument is of type ‘int *’ 38 | int strncmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:552:5: warning: implicit declaration of function ‘enter_state’; did you mean ‘xenter_state’? [-Wimplicit-function-declaration] 552 | enter_state(STATE_COMMENT); | ^~~~~~~~~~~ | xenter_state iplog_config.c:566:22: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 566 | if (!strcasecmp(token, "set")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:568:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 568 | else if (!strcasecmp(token, "log")) { | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:572:29: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 572 | } else if (!strcasecmp(token, "ignore")) { | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:576:30: warning: passing argument 1 of ‘strncasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 576 | } else if (!strncasecmp(token, "interface", 9)) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:30:18: note: expected ‘const char *’ but argument is of type ‘int *’ 30 | int strncasecmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ iplog_config.c:578:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 578 | else if (!strcasecmp(token, "logfile")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:580:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 580 | else if (!strcasecmp(token, "pid-file")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:582:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 582 | else if (!strcasecmp(token, "user")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:584:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 584 | else if (!strcasecmp(token, "group")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:586:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 586 | else if (!strcasecmp(token, "facility")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:588:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 588 | else if (!strcasecmp(token, "priority")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:590:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 590 | else if (!strcasecmp(token, "promisc")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:617:21: warning: passing argument 1 of ‘xstrdup’ from incompatible pointer type [-Wincompatible-pointer-types] 617 | user = xstrdup(token); | ^~~~~ | | | int * In file included from iplog_config.c:30: ./iplog.h:110:7: note: expected ‘const char *’ but argument is of type ‘int *’ 110 | char *xstrdup(const char *s); | ^~~~~~~ iplog_config.c:617:11: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 617 | user = xstrdup(token); | ^ iplog_config.c:624:22: warning: passing argument 1 of ‘xstrdup’ from incompatible pointer type [-Wincompatible-pointer-types] 624 | group = xstrdup(token); | ^~~~~ | | | int * In file included from iplog_config.c:30: ./iplog.h:110:7: note: expected ‘const char *’ but argument is of type ‘int *’ 110 | char *xstrdup(const char *s); | ^~~~~~~ iplog_config.c:624:12: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 624 | group = xstrdup(token); | ^ iplog_config.c:631:24: warning: passing argument 1 of ‘xstrdup’ from incompatible pointer type [-Wincompatible-pointer-types] 631 | logfile = xstrdup(token); | ^~~~~ | | | int * In file included from iplog_config.c:30: ./iplog.h:110:7: note: expected ‘const char *’ but argument is of type ‘int *’ 110 | char *xstrdup(const char *s); | ^~~~~~~ iplog_config.c:631:14: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 631 | logfile = xstrdup(token); | ^ iplog_config.c:638:25: warning: passing argument 1 of ‘xstrdup’ from incompatible pointer type [-Wincompatible-pointer-types] 638 | lockfile = xstrdup(token); | ^~~~~ | | | int * In file included from iplog_config.c:30: ./iplog.h:110:7: note: expected ‘const char *’ but argument is of type ‘int *’ 110 | char *xstrdup(const char *s); | ^~~~~~~ iplog_config.c:638:15: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 638 | lockfile = xstrdup(token); | ^ iplog_config.c:655:25: warning: passing argument 1 of ‘xstrdup’ from incompatible pointer type [-Wincompatible-pointer-types] 655 | ifstring = xstrdup(token); | ^~~~~ | | | int * In file included from iplog_config.c:30: ./iplog.h:110:7: note: expected ‘const char *’ but argument is of type ‘int *’ 110 | char *xstrdup(const char *s); | ^~~~~~~ iplog_config.c:655:15: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 655 | ifstring = xstrdup(token); | ^ iplog_config.c:663:29: warning: passing argument 1 of ‘xstrdup’ from incompatible pointer type [-Wincompatible-pointer-types] 663 | pcap_network = xstrdup(token); | ^~~~~ | | | int * In file included from iplog_config.c:30: ./iplog.h:110:7: note: expected ‘const char *’ but argument is of type ‘int *’ 110 | char *xstrdup(const char *s); | ^~~~~~~ iplog_config.c:663:19: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 663 | pcap_network = xstrdup(token); | ^ iplog_config.c:668:22: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 668 | if (!strcasecmp(token, "tcp")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:670:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 670 | else if (!strcasecmp(token, "udp")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:672:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 672 | else if (!strcasecmp(token, "icmp")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:674:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 674 | else if (!strcasecmp(token, "frag")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:676:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 676 | else if (!strcasecmp(token, "smurf")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:678:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 678 | else if (!strcasecmp(token, "bogus")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:680:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 680 | else if (!strcasecmp(token, "log_ip")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:682:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 682 | else if (!strcasecmp(token, "log_dest")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:684:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 684 | else if (!strcasecmp(token, "stdout")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:686:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 686 | else if (!strcasecmp(token, "no_fork")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:688:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 688 | else if (!strcasecmp(token, "verbose")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:690:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 690 | else if (!strcasecmp(token, "fin_scan")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:692:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 692 | else if (!strcasecmp(token, "syn_scan")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:694:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 694 | else if (!strcasecmp(token, "udp_scan")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:696:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 696 | else if (!strcasecmp(token, "portscan")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:698:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 698 | else if (!strcasecmp(token, "fool_nmap")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:700:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 700 | else if (!strcasecmp(token, "xmas_scan")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:702:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 702 | else if (!strcasecmp(token, "null_scan")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:704:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 704 | else if (!strcasecmp(token, "get_ident")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:706:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 706 | else if (!strcasecmp(token, "dns_cache")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:708:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 708 | else if (!strcasecmp(token, "syn_flood")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:710:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 710 | else if (!strcasecmp(token, "ignore_dns")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:712:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 712 | else if (!strcasecmp(token, "ping_flood")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:714:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 714 | else if (!strcasecmp(token, "scans_only")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:716:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 716 | else if (!strcasecmp(token, "traceroute")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:718:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 718 | else if (!strcasecmp(token, "udp_resolve")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:720:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 720 | else if (!strcasecmp(token, "tcp_resolve")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:722:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 722 | else if (!strcasecmp(token, "icmp_resolve")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:724:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 724 | else if (!strcasecmp(token, "disable_resolver")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:734:22: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 734 | if (!strcasecmp(token, "true")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:736:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 736 | else if (!strcasecmp(token, "false")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:746:22: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 746 | if (!strcasecmp(token, "tcp")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:748:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 748 | else if (!strcasecmp(token, "udp")) | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:750:27: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 750 | else if (!strcasecmp(token, "icmp")) { | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:764:22: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 764 | if (!strcasecmp(token, "from")) { | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:775:29: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 775 | } else if (!strcasecmp(token, "to")) { | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:787:23: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 787 | if (!strcasecmp(token, "sport")) { | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:798:30: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 798 | } else if (!strcasecmp(token, "dport")) { | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:817:23: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type [-Wincompatible-pointer-types] 817 | if (!strcasecmp(token, "type")) { | ^~~~~ | | | int * In file included from /usr/include/string.h:57, from iplog_config.c:28: /usr/include/strings.h:29:17: note: expected ‘const char *’ but argument is of type ‘int *’ 29 | int strcasecmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:863:12: warning: implicit declaration of function ‘get_portrange’; did you mean ‘get_addrrange’? [-Wimplicit-function-declaration] 863 | res = get_portrange(token, prange, prot); | ^~~~~~~~~~~~~ | get_addrrange iplog_config.c:888:6: error: unknown type name ‘u_char’; did you mean ‘char’? 888 | u_char *ret; | ^~~~~~ | char iplog_config.c:890:19: warning: passing argument 1 of ‘strstr’ from incompatible pointer type [-Wincompatible-pointer-types] 890 | ret = strstr(token, "*/"); | ^~~~~ | | | int * In file included from iplog_config.c:28: /usr/include/string.h:49:7: note: expected ‘const char *’ but argument is of type ‘int *’ 49 | char *strstr (const char *, const char *); | ^~~~~~ iplog_config.c:890:10: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 890 | ret = strstr(token, "*/"); | ^ iplog_config.c:904:10: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 904 | token = strtok(NULL, " \t\n"); | ^ iplog_config.c:906:5: error: unknown type name ‘u_char’; did you mean ‘char’? 906 | u_char *errstr = NULL; | ^~~~~~ | char iplog_config.c:1011:14: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1011 | errstr = "user parameter"; | ^ iplog_config.c:1014:14: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1014 | errstr = "group parameter"; | ^ iplog_config.c:1017:14: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1017 | errstr = "log file parameter"; | ^ iplog_config.c:1020:14: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1020 | errstr = "syslog priority parameter"; | ^ iplog_config.c:1023:14: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1023 | errstr = "syslog facility parameter"; | ^ iplog_config.c:1026:14: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1026 | errstr = "interface parameter"; | ^ iplog_config.c:1029:14: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1029 | errstr = "network parameter"; | ^ iplog_config.c:1032:14: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1032 | errstr = "set target"; | ^ iplog_config.c:1035:14: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1035 | errstr = "protocol parameter"; | ^ iplog_config.c:1038:14: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1038 | errstr = "ICMP type"; | ^ iplog_config.c:1042:14: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1042 | errstr = "address parameter"; | ^ iplog_config.c:1046:14: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1046 | errstr = "port parameter"; | ^ iplog_config.c: In function ‘add_dns_ignore_rules’: iplog_config.c:1088:2: error: unknown type name ‘u_char’; did you mean ‘char’? 1088 | u_char buf[1024], *p; | ^~~~~~ | char iplog_config.c:1111:14: warning: passing argument 1 of ‘strtok’ from incompatible pointer type [-Wincompatible-pointer-types] 1111 | p = strtok(buf, " \t"); | ^~~ | | | int * In file included from iplog_config.c:28: /usr/include/string.h:50:7: note: expected ‘char * restrict’ but argument is of type ‘int *’ 50 | char *strtok (char *__restrict, const char *__restrict); | ^~~~~~ iplog_config.c:1111:5: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1111 | p = strtok(buf, " \t"); | ^ iplog_config.c:1115:14: warning: passing argument 1 of ‘strcmp’ from incompatible pointer type [-Wincompatible-pointer-types] 1115 | if (strcmp(p, "nameserver")) | ^ | | | int * In file included from iplog_config.c:28: /usr/include/string.h:37:13: note: expected ‘const char *’ but argument is of type ‘int *’ 37 | int strcmp (const char *, const char *); | ^~~~~~~~~~~~ iplog_config.c:1118:5: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1118 | p = strtok(NULL, " \t"); | ^ iplog_config.c: At top level: iplog_config.c:1147:26: error: unknown type name ‘u_int’; did you mean ‘int’? 1147 | void destroy_filter_list(u_int prot) { | ^~~~~ | int make[3]: *** [Makefile:305: iplog_config.o] Error 1 make[3]: Leaving directory '/var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work/iplog-2.2.3/src' make[2]: *** [Makefile:183: all-recursive] Error 1 make[2]: Leaving directory '/var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work/iplog-2.2.3/src' make[1]: *** [Makefile:221: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work/iplog-2.2.3' make: *** [Makefile:370: all-recursive-am] Error 2 * ERROR: net-analyzer/iplog-2.2.3-r2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-analyzer/iplog-2.2.3-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-analyzer/iplog-2.2.3-r2::gentoo'`. * The complete build log is located at '/var/log/portage/net-analyzer:iplog-2.2.3-r2:20200315-042533.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-analyzer/iplog-2.2.3-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/iplog-2.2.3-r2/temp/environment'. * Working directory: '/var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work/iplog-2.2.3' * S: '/var/tmp/portage/net-analyzer/iplog-2.2.3-r2/work/iplog-2.2.3'