Powered by ufo. Your IP: 18.97.14.85 | sniffit d30aa294-b2a2-4483-8f01-b7a89acac696Toc:- error 1
sn_logfile.c:32:1: error: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
- error 2
sn_logfile.c:33:4: error: implicit declaration of function ‘ctime’ [-Wimplicit-function-declaration]
- error 3
sn_logfile.c:33:3: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 4
sn_logfile.c:88:25: error: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
- error 5
sn_logfile.c:91:69: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
- error 6
sn_config.h:28:25: error: implicit declaration of function ‘atexit’ [-Wimplicit-function-declaration]
- error 7
sn_logfile.c:93:8: error: passing argument 1 of ‘fchmod’ makes integer from pointer without a cast [-Wint-conversion]
- error 8
sn_packets.c:53:9: error: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
- error 9
sn_packets.c:67:32: error: passing argument 1 of ‘in_cksum’ from incompatible pointer type [-Wincompatible-pointer-types]
- error 10
sn_cfgfile.c:43:51: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
- error 11
sn_cfgfile.c:46:51: error: implicit declaration of function ‘realloc’ [-Wimplicit-function-declaration]
- error 12
sn_cfgfile.c:50:60: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
- error 13
sn_cfgfile.c:120:11: error: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
- error 14
sn_cfgfile.c:122:14: error: implicit declaration of function ‘isalnum’ [-Wimplicit-function-declaration]
- error 15
sn_cfgfile.c:129:1: error: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
- error 16
sn_cfgfile.c:141:15: error: implicit declaration of function ‘iscntrl’ [-Wimplicit-function-declaration]
- error 17
sn_cfgfile.c:141:40: error: implicit declaration of function ‘isspace’ [-Wimplicit-function-declaration]
- error 18
sn_cfgfile.c:172:7: error: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration]
- error 19
sn_cfgfile.c:183:10: error: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
- error 20
sn_cfgfile.c:185:1: error: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
- error 21
sn_cfgfile.c:202:7: error: implicit declaration of function ‘strtok’ [-Wimplicit-function-declaration]
- error 22
sn_cfgfile.c:202:6: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 23
sn_cfgfile.c:209:9: error: implicit declaration of function ‘strlower’ [-Wimplicit-function-declaration]
- error 24
sn_cfgfile.c:210:12: error: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
- error 25
sn_cfgfile.c:210:19: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 26
sn_cfgfile.c:212:32: error: passing argument 1 of ‘clean_filename’ makes pointer from integer without a cast [-Wint-conversion]
- error 27
sn_cfgfile.c:215:24: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 28
sn_cfgfile.c:217:16: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 29
sn_cfgfile.c:218:21: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 30
sn_cfgfile.c:220:18: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 31
sn_cfgfile.c:221:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 32
sn_cfgfile.c:224:27: error: passing argument 1 of ‘make_nr_dot’ makes pointer from integer without a cast [-Wint-conversion]
- error 33
sn_cfgfile.c:226:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 34
sn_cfgfile.c:231:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 35
sn_cfgfile.c:234:39: error: passing argument 1 of ‘make_portno’ makes pointer from integer without a cast [-Wint-conversion]
- error 36
sn_cfgfile.c:238:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 37
sn_cfgfile.c:241:47: error: passing argument 1 of ‘clean_string’ makes pointer from integer without a cast [-Wint-conversion]
- error 38
sn_cfgfile.c:242:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 39
sn_cfgfile.c:249:21: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 40
sn_cfgfile.c:251:18: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 41
sn_cfgfile.c:252:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 42
sn_cfgfile.c:255:27: error: passing argument 1 of ‘make_nr_dot’ makes pointer from integer without a cast [-Wint-conversion]
- error 43
sn_cfgfile.c:257:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 44
sn_cfgfile.c:262:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 45
sn_cfgfile.c:265:39: error: passing argument 1 of ‘make_portno’ makes pointer from integer without a cast [-Wint-conversion]
- error 46
sn_cfgfile.c:269:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 47
sn_cfgfile.c:272:47: error: passing argument 1 of ‘clean_string’ makes pointer from integer without a cast [-Wint-conversion]
- error 48
sn_cfgfile.c:273:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 49
sn_cfgfile.c:280:21: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 50
sn_cfgfile.c:282:18: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 51
sn_cfgfile.c:283:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 52
sn_cfgfile.c:287:27: error: passing argument 1 of ‘make_nr_dot’ makes pointer from integer without a cast [-Wint-conversion]
- error 53
sn_cfgfile.c:290:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 54
sn_cfgfile.c:296:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 55
sn_cfgfile.c:300:20: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 56
sn_cfgfile.c:307:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 57
sn_cfgfile.c:311:34: error: passing argument 1 of ‘clean_string’ makes pointer from integer without a cast [-Wint-conversion]
- error 58
sn_cfgfile.c:314:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 59
sn_cfgfile.c:324:19: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 60
sn_cfgfile.c:326:16: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 61
sn_cfgfile.c:327:21: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 62
sn_cfgfile.c:329:18: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 63
sn_cfgfile.c:330:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 64
sn_cfgfile.c:333:27: error: passing argument 1 of ‘make_nr_dot’ makes pointer from integer without a cast [-Wint-conversion]
- error 65
sn_cfgfile.c:335:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 66
sn_cfgfile.c:340:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 67
sn_cfgfile.c:343:38: error: passing argument 1 of ‘make_portno’ makes pointer from integer without a cast [-Wint-conversion]
- error 68
sn_cfgfile.c:347:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 69
sn_cfgfile.c:350:47: error: passing argument 1 of ‘clean_string’ makes pointer from integer without a cast [-Wint-conversion]
- error 70
sn_cfgfile.c:351:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 71
sn_cfgfile.c:358:21: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 72
sn_cfgfile.c:360:18: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 73
sn_cfgfile.c:361:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 74
sn_cfgfile.c:364:27: error: passing argument 1 of ‘make_nr_dot’ makes pointer from integer without a cast [-Wint-conversion]
- error 75
sn_cfgfile.c:366:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 76
sn_cfgfile.c:371:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 77
sn_cfgfile.c:374:38: error: passing argument 1 of ‘make_portno’ makes pointer from integer without a cast [-Wint-conversion]
- error 78
sn_cfgfile.c:378:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 79
sn_cfgfile.c:381:47: error: passing argument 1 of ‘clean_string’ makes pointer from integer without a cast [-Wint-conversion]
- error 80
sn_cfgfile.c:382:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 81
sn_cfgfile.c:389:21: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 82
sn_cfgfile.c:391:18: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 83
sn_cfgfile.c:392:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 84
sn_cfgfile.c:396:27: error: passing argument 1 of ‘make_nr_dot’ makes pointer from integer without a cast [-Wint-conversion]
- error 85
sn_cfgfile.c:399:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 86
sn_cfgfile.c:405:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 87
sn_cfgfile.c:409:20: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 88
sn_cfgfile.c:415:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- error 89
sn_cfgfile.c:419:34: error: passing argument 1 of ‘clean_string’ makes pointer from integer without a cast [-Wint-conversion]
- error 90
sn_cfgfile.c:422:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- error 91
error: Bad exit status from /tmp/B.5zbcadof/BUILD/tmp/rpm-tmp.xCtnvH (%build)
- error 92
RPM build errors:
- error 93
error: No files produced.
Content:+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (sniffit-fixes.patch):'
Patch #0 (sniffit-fixes.patch):
+ </tmp/B.5zbcadof/sniffit-fixes.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ echo 'Patch #1 (sniffit-gcc33.patch):'
Patch #1 (sniffit-gcc33.patch):
+ </tmp/B.5zbcadof/sniffit-gcc33.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ echo 'Patch #2 (sniffit-am18.patch):'
Patch #2 (sniffit-am18.patch):
+ </tmp/B.5zbcadof/sniffit-am18.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ echo 'Patch #3 (system-libpcap.patch):'
Patch #3 (system-libpcap.patch):
+ </tmp/B.5zbcadof/system-libpcap.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ /bin/sed -i -e /strip/d Makefile.in
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /tmp/B.5zbcadof/BUILD/tmp/rpm-tmp.xCtnvH
HOME=/home/users/builder
PATH=/home/users/builder/GNUstep/Tools:/bin:/usr/bin:/usr/local/bin
TMPDIR=/tmp/B.5zbcadof/BUILD/tmp
+ umask 022
+ cd /tmp/B.5zbcadof/BUILD/sniffit-0.3.7-build
+ cd sniffit.0.3.7.beta
+ cp -f /usr/share/automake/config.sub .
+ aclocal
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
+ autoconf
configure.in:59: warning: The macro 'AC_CANONICAL_SYSTEM' is obsolete.
configure.in:59: You should run autoupdate.
./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from...
configure.in:59: the top level
configure.in:108: warning: AC_OUTPUT should be used without arguments.
configure.in:108: You should run autoupdate.
+ '[' -n '' ']'
+ LC_ALL=C.UTF-8
+ CC=/usr/bin/x86_64-pld-linux-gnux32-gcc
+ export CC
+ CXX=/usr/bin/x86_64-pld-linux-gnux32-g++
+ export CXX
+ CPP=/usr/bin/cpp
+ export CPP
+ CFLAGS='-O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security '
+ export CFLAGS
+ CXXFLAGS='-O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security '
+ export CXXFLAGS
+ FFLAGS='-O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Werror=line-truncation '
+ export FFLAGS
+ FCFLAGS='-O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Werror=line-truncation '
+ export FCFLAGS
+ CPPFLAGS='-DNDEBUG -DQT_NO_DEBUG '
+ export CPPFLAGS
+ LDFLAGS='-Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc '
+ export LDFLAGS
+ RUSTC=/usr/bin/rustc
+ export RUSTC
+ RUSTFLAGS='-C debuginfo=2 -C strip=none '
+ export RUSTFLAGS
+ ./configure '--host=x86_64-pld-linux-gnux32' '--build=x86_64-pld-linux-gnux32' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/libx32' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--x-libraries=/usr/libx32'
checking for x86_64-pld-linux-gnux32-gcc... /usr/bin/x86_64-pld-linux-gnux32-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether /usr/bin/x86_64-pld-linux-gnux32-gcc accepts -g... yes
checking for /usr/bin/x86_64-pld-linux-gnux32-gcc option to enable C11 features... none needed
checking for main in -lncurses... yes
checking for ncurses.h... no
configure: WARNING: Interactive mode (-i/-I) will NOT be supported.!
configure: WARNING: Install ncurses!
checking for shmget... yes
checking for atexit... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking size of unsigned short int... 2
checking size of unsigned long int... 4
checking build system type... x86_64-pld-linux-gnux32
checking host system type... x86_64-pld-linux-gnux32
checking target system type... x86_64-pld-linux-gnux32
configure: creating ./config.status
config.status: creating Makefile
+ /usr/bin/make -Otarget -j28
/usr/bin/x86_64-pld-linux-gnux32-gcc -w -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -c sn_generation.c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DUSE_32_LONG_INT=1 -DLINUX=1
/usr/bin/x86_64-pld-linux-gnux32-gcc -w -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -c sn_interface.c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DUSE_32_LONG_INT=1 -DLINUX=1
/usr/bin/x86_64-pld-linux-gnux32-gcc -w -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -c sn_logfile.c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DUSE_32_LONG_INT=1 -DLINUX=1
sn_logfile.c: In function ‘gettime’:
sn_logfile.c:32:1: error: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
32 | time(&t);
| ^~~~
sn_logfile.c:12:1: note: ‘time’ is defined in header ‘<time.h>’; this is probably fixable by adding ‘#include <time.h>’
11 | #include "sn_logfile.h"
+++ |+#include <time.h>
12 |
sn_logfile.c:33:4: error: implicit declaration of function ‘ctime’ [-Wimplicit-function-declaration]
33 | tm=ctime(&t);
| ^~~~~
sn_logfile.c:33:4: note: ‘ctime’ is defined in header ‘<time.h>’; this is probably fixable by adding ‘#include <time.h>’
sn_logfile.c:33:3: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
33 | tm=ctime(&t);
| ^
sn_logfile.c: In function ‘open_logfile’:
sn_logfile.c:88:25: error: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
88 | if(Logfile[0]==0) strcpy(Logfile,"sniffit.log");
| ^~~~~~
sn_logfile.c:12:1: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
11 | #include "sn_logfile.h"
+++ |+#include <string.h>
12 |
sn_logfile.c:91:69: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
91 | printf("Sniffit hardattack.. couldn't create/open logfile...\n"), exit(1);
| ^~~~
sn_logfile.c:12:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
11 | #include "sn_logfile.h"
+++ |+#include <stdlib.h>
12 |
In file included from sn_defines.h:3,
from sn_logfile.c:9:
sn_config.h:28:25: error: implicit declaration of function ‘atexit’ [-Wimplicit-function-declaration]
28 | #define exit_func(x) atexit(x)
| ^~~~~~
sn_logfile.c:92:1: note: in expansion of macro ‘exit_func’
92 | exit_func(logfile_exit);
| ^~~~~~~~~
sn_config.h:28:25: note: ‘atexit’ is defined in header ‘<stdlib.h>’; this is probably fixable by adding ‘#include <stdlib.h>’
28 | #define exit_func(x) atexit(x)
| ^~~~~~
sn_logfile.c:92:1: note: in expansion of macro ‘exit_func’
92 | exit_func(logfile_exit);
| ^~~~~~~~~
sn_logfile.c:93:8: error: passing argument 1 of ‘fchmod’ makes integer from pointer without a cast [-Wint-conversion]
93 | fchmod(LogFILE, S_IWUSR|S_IRUSR);
| ^~~~~~~
| |
| FILE *
In file included from sn_logfile.c:7:
/usr/include/sys/stat.h:365:24: note: expected ‘int’ but argument is of type ‘FILE *’
365 | extern int fchmod (int __fd, __mode_t __mode) __THROW;
| ~~~~^~~~
make: *** [Makefile:35: sn_logfile.o] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/x86_64-pld-linux-gnux32-gcc -w -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -c sn_packets.c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DUSE_32_LONG_INT=1 -DLINUX=1
sn_packets.c: In function ‘unwrap_packet’:
sn_packets.c:53:9: error: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
53 | memcpy(&IPhead,(sp+PROTO_HEAD),sizeof(struct IP_header));
| ^~~~~~
sn_packets.c:8:1: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
7 | #include <netinet/in.h>
+++ |+#include <string.h>
8 |
sn_packets.c:67:32: error: passing argument 1 of ‘in_cksum’ from incompatible pointer type [-Wincompatible-pointer-types]
67 | if(in_cksum((sp+PROTO_HEAD),unwrapped->IP_len) != IPhead.checksum)
| ~~~^~~~~~~~~~~~
| |
| unsigned char *
sn_packets.c:13:41: note: expected ‘short unsigned int *’ but argument is of type ‘unsigned char *’
13 | unsigned short in_cksum(unsigned short *addr,int len)
| ~~~~~~~~~~~~~~~~^~~~
make: *** [Makefile:38: sn_packets.o] Error 1
/usr/bin/x86_64-pld-linux-gnux32-gcc -w -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -c sn_resolv.c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DUSE_32_LONG_INT=1 -DLINUX=1
/usr/bin/x86_64-pld-linux-gnux32-gcc -w -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -c sn_cfgfile.c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DUSE_32_LONG_INT=1 -DLINUX=1
sn_cfgfile.c: In function ‘adjust_select_from_list’:
sn_cfgfile.c:43:51: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
43 | select_from_list=(struct cfg_file_contense *)malloc(sizeof(struct cfg_file_contense));
| ^~~~~~
sn_cfgfile.c:13:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
12 | #include "sn_resolv.h"
+++ |+#include <stdlib.h>
13 | /* #include "sn_generation.h" */
sn_cfgfile.c:46:51: error: implicit declaration of function ‘realloc’ [-Wimplicit-function-declaration]
46 | select_from_list=(struct cfg_file_contense *)realloc(select_from_list,
| ^~~~~~~
sn_cfgfile.c:46:51: note: include ‘<stdlib.h>’ or provide a declaration of ‘realloc’
sn_cfgfile.c:50:60: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
50 | {printf("Sniffit hartattack... out of memory!\n"); exit(1);}
| ^~~~
sn_cfgfile.c:50:60: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
sn_cfgfile.c: In function ‘clean_string’:
sn_cfgfile.c:120:11: error: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
120 | for(i=0;i<strlen(string);i++)
| ^~~~~~
sn_cfgfile.c:13:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
12 | #include "sn_resolv.h"
+++ |+#include <string.h>
13 | /* #include "sn_generation.h" */
sn_cfgfile.c:122:14: error: implicit declaration of function ‘isalnum’ [-Wimplicit-function-declaration]
122 | if( (isalnum(string[i]))||(string[i]=='.') )
| ^~~~~~~
sn_cfgfile.c:13:1: note: include ‘<ctype.h>’ or provide a declaration of ‘isalnum’
12 | #include "sn_resolv.h"
+++ |+#include <ctype.h>
13 | /* #include "sn_generation.h" */
sn_cfgfile.c:129:1: error: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
129 | strcpy(string, help);
| ^~~~~~
sn_cfgfile.c:129:1: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
sn_cfgfile.c: In function ‘clean_filename’:
sn_cfgfile.c:141:15: error: implicit declaration of function ‘iscntrl’ [-Wimplicit-function-declaration]
141 | if( !(iscntrl(string[i])) && !(isspace(string[i])) )
| ^~~~~~~
sn_cfgfile.c:141:15: note: include ‘<ctype.h>’ or provide a declaration of ‘iscntrl’
sn_cfgfile.c:141:40: error: implicit declaration of function ‘isspace’ [-Wimplicit-function-declaration]
141 | if( !(iscntrl(string[i])) && !(isspace(string[i])) )
| ^~~~~~~
sn_cfgfile.c:141:40: note: include ‘<ctype.h>’ or provide a declaration of ‘isspace’
sn_cfgfile.c: In function ‘make_portno’:
sn_cfgfile.c:172:7: error: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration]
172 | buf = strdup(servname);
| ^~~~~~
sn_cfgfile.c:183:10: error: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
183 | {ret = atoi(buf);}
| ^~~~
sn_cfgfile.c:185:1: error: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
185 | free(buf);
| ^~~~
sn_cfgfile.c:185:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
sn_cfgfile.c: In function ‘interprete_line’:
sn_cfgfile.c:202:7: error: implicit declaration of function ‘strtok’ [-Wimplicit-function-declaration]
202 | field=strtok(line," ");
| ^~~~~~
sn_cfgfile.c:202:6: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
202 | field=strtok(line," ");
| ^
sn_cfgfile.c:209:9: error: implicit declaration of function ‘strlower’ [-Wimplicit-function-declaration]
209 | strlower(field);
| ^~~~~~~~
sn_cfgfile.c:210:12: error: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
210 | if(strcmp(strlower(field),"logfile")==0)
| ^~~~~~
sn_cfgfile.c:210:12: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
sn_cfgfile.c:210:19: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
210 | if(strcmp(strlower(field),"logfile")==0)
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:210:19: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:212:32: error: passing argument 1 of ‘clean_filename’ makes pointer from integer without a cast [-Wint-conversion]
212 | field=clean_filename(strtok(NULL," "));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:133:29: note: expected ‘char *’ but argument is of type ‘int’
133 | char *clean_filename (char *string)
| ~~~~~~^~~~~~
sn_cfgfile.c:215:24: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
215 | else if(strcmp(strlower(field),"select")==0)
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:215:24: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:217:16: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
217 | field=strtok(NULL," ");
| ^
sn_cfgfile.c:218:21: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
218 | if(strcmp(strlower(field),"from")==0)
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:218:21: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:220:18: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
220 | field=strtok(NULL," ");
| ^
sn_cfgfile.c:221:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
221 | if(strcmp(strlower(field),"host")==0) /* select from host */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:221:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:224:27: error: passing argument 1 of ‘make_nr_dot’ makes pointer from integer without a cast [-Wint-conversion]
224 | make_nr_dot(strtok(NULL," "));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:152:25: note: expected ‘char *’ but argument is of type ‘int’
152 | void make_nr_dot (char *host)
| ~~~~~~^~~~
sn_cfgfile.c:226:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
226 | if( (field=strtok(NULL," "))!=NULL)
| ^
sn_cfgfile.c:231:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
231 | if(strcmp(strlower(field),"port")==0) /* select from port */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:231:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:234:39: error: passing argument 1 of ‘make_portno’ makes pointer from integer without a cast [-Wint-conversion]
234 | help->port=make_portno( strtok(NULL," ") );
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:165:30: note: expected ‘char *’ but argument is of type ‘int’
165 | static int make_portno(char *servname) /* by Shudoh Kazuyuki */
| ~~~~~~^~~~~~~~
sn_cfgfile.c:238:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
238 | if(strcmp(strlower(field),"mhosts")==0) /* select from mhosts */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:238:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:241:47: error: passing argument 1 of ‘clean_string’ makes pointer from integer without a cast [-Wint-conversion]
241 | strcpy(help->host, clean_string(strtok(NULL," ")));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:114:27: note: expected ‘char *’ but argument is of type ‘int’
114 | char *clean_string (char *string)
| ~~~~~~^~~~~~
sn_cfgfile.c:242:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
242 | if( (field=strtok(NULL," "))!=NULL)
| ^
sn_cfgfile.c:249:21: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
249 | if(strcmp(strlower(field),"to")==0)
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:249:21: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:251:18: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
251 | field=strtok(NULL," ");
| ^
sn_cfgfile.c:252:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
252 | if(strcmp(strlower(field),"host")==0) /* select to host */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:252:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:255:27: error: passing argument 1 of ‘make_nr_dot’ makes pointer from integer without a cast [-Wint-conversion]
255 | make_nr_dot(strtok(NULL," "));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:152:25: note: expected ‘char *’ but argument is of type ‘int’
152 | void make_nr_dot (char *host)
| ~~~~~~^~~~
sn_cfgfile.c:257:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
257 | if( (field=strtok(NULL," "))!=NULL)
| ^
sn_cfgfile.c:262:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
262 | if(strcmp(strlower(field),"port")==0) /* select to port */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:262:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:265:39: error: passing argument 1 of ‘make_portno’ makes pointer from integer without a cast [-Wint-conversion]
265 | help->port=make_portno( strtok(NULL," ") );
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:165:30: note: expected ‘char *’ but argument is of type ‘int’
165 | static int make_portno(char *servname) /* by Shudoh Kazuyuki */
| ~~~~~~^~~~~~~~
sn_cfgfile.c:269:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
269 | if(strcmp(strlower(field),"mhosts")==0) /* select to mhosts */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:269:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:272:47: error: passing argument 1 of ‘clean_string’ makes pointer from integer without a cast [-Wint-conversion]
272 | strcpy(help->host, clean_string(strtok(NULL," ")));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:114:27: note: expected ‘char *’ but argument is of type ‘int’
114 | char *clean_string (char *string)
| ~~~~~~^~~~~~
sn_cfgfile.c:273:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
273 | if( (field=strtok(NULL," "))!=NULL)
| ^
sn_cfgfile.c:280:21: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
280 | if(strcmp(strlower(field),"both")==0)
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:280:21: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:282:18: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
282 | field=strtok(NULL," ");
| ^
sn_cfgfile.c:283:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
283 | if(strcmp(strlower(field),"host")==0) /* select both host */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:283:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:287:27: error: passing argument 1 of ‘make_nr_dot’ makes pointer from integer without a cast [-Wint-conversion]
287 | make_nr_dot(strtok(NULL," "));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:152:25: note: expected ‘char *’ but argument is of type ‘int’
152 | void make_nr_dot (char *host)
| ~~~~~~^~~~
sn_cfgfile.c:290:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
290 | if( (field=strtok(NULL," "))!=NULL)
| ^
sn_cfgfile.c:296:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
296 | if(strcmp(strlower(field),"port")==0) /* select both port */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:296:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:300:20: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
300 | field=strtok(NULL," ");
| ^
sn_cfgfile.c:307:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
307 | if(strcmp(strlower(field),"mhosts")==0) /* select both mhosts */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:307:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:311:34: error: passing argument 1 of ‘clean_string’ makes pointer from integer without a cast [-Wint-conversion]
311 | field=clean_string(strtok(NULL," "));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:114:27: note: expected ‘char *’ but argument is of type ‘int’
114 | char *clean_string (char *string)
| ~~~~~~^~~~~~
sn_cfgfile.c:314:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
314 | if( (field=strtok(NULL," "))!=NULL)
| ^
sn_cfgfile.c:324:19: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
324 | if(strcmp(strlower(field),"deselect")==0)
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:324:19: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:326:16: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
326 | field=strtok(NULL," ");
| ^
sn_cfgfile.c:327:21: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
327 | if(strcmp(strlower(field),"from")==0)
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:327:21: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:329:18: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
329 | field=strtok(NULL," ");
| ^
sn_cfgfile.c:330:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
330 | if(strcmp(strlower(field),"host")==0) /* select from host */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:330:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:333:27: error: passing argument 1 of ‘make_nr_dot’ makes pointer from integer without a cast [-Wint-conversion]
333 | make_nr_dot(strtok(NULL," "));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:152:25: note: expected ‘char *’ but argument is of type ‘int’
152 | void make_nr_dot (char *host)
| ~~~~~~^~~~
sn_cfgfile.c:335:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
335 | if( (field=strtok(NULL," "))!=NULL)
| ^
sn_cfgfile.c:340:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
340 | if(strcmp(strlower(field),"port")==0) /* select from port */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:340:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:343:38: error: passing argument 1 of ‘make_portno’ makes pointer from integer without a cast [-Wint-conversion]
343 | help->port=make_portno(strtok(NULL," "));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:165:30: note: expected ‘char *’ but argument is of type ‘int’
165 | static int make_portno(char *servname) /* by Shudoh Kazuyuki */
| ~~~~~~^~~~~~~~
sn_cfgfile.c:347:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
347 | if(strcmp(strlower(field),"mhosts")==0) /* select from mhosts */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:347:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:350:47: error: passing argument 1 of ‘clean_string’ makes pointer from integer without a cast [-Wint-conversion]
350 | strcpy(help->host, clean_string(strtok(NULL," ")));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:114:27: note: expected ‘char *’ but argument is of type ‘int’
114 | char *clean_string (char *string)
| ~~~~~~^~~~~~
sn_cfgfile.c:351:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
351 | if( (field=strtok(NULL," "))!=NULL)
| ^
sn_cfgfile.c:358:21: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
358 | if(strcmp(strlower(field),"to")==0)
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:358:21: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:360:18: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
360 | field=strtok(NULL," ");
| ^
sn_cfgfile.c:361:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
361 | if(strcmp(strlower(field),"host")==0) /* deselect to host */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:361:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:364:27: error: passing argument 1 of ‘make_nr_dot’ makes pointer from integer without a cast [-Wint-conversion]
364 | make_nr_dot(strtok(NULL," "));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:152:25: note: expected ‘char *’ but argument is of type ‘int’
152 | void make_nr_dot (char *host)
| ~~~~~~^~~~
sn_cfgfile.c:366:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
366 | if( (field=strtok(NULL," "))!=NULL)
| ^
sn_cfgfile.c:371:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
371 | if(strcmp(strlower(field),"port")==0) /* deselect to port */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:371:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:374:38: error: passing argument 1 of ‘make_portno’ makes pointer from integer without a cast [-Wint-conversion]
374 | help->port=make_portno(strtok(NULL," "));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:165:30: note: expected ‘char *’ but argument is of type ‘int’
165 | static int make_portno(char *servname) /* by Shudoh Kazuyuki */
| ~~~~~~^~~~~~~~
sn_cfgfile.c:378:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
378 | if(strcmp(strlower(field),"mhosts")==0) /* deselect to mhosts */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:378:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:381:47: error: passing argument 1 of ‘clean_string’ makes pointer from integer without a cast [-Wint-conversion]
381 | strcpy(help->host, clean_string(strtok(NULL," ")));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:114:27: note: expected ‘char *’ but argument is of type ‘int’
114 | char *clean_string (char *string)
| ~~~~~~^~~~~~
sn_cfgfile.c:382:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
382 | if( (field=strtok(NULL," "))!=NULL)
| ^
sn_cfgfile.c:389:21: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
389 | if(strcmp(strlower(field),"both")==0)
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:389:21: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:391:18: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
391 | field=strtok(NULL," ");
| ^
sn_cfgfile.c:392:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
392 | if(strcmp(strlower(field),"host")==0) /* deselect both host */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:392:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:396:27: error: passing argument 1 of ‘make_nr_dot’ makes pointer from integer without a cast [-Wint-conversion]
396 | make_nr_dot(strtok(NULL," "));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:152:25: note: expected ‘char *’ but argument is of type ‘int’
152 | void make_nr_dot (char *host)
| ~~~~~~^~~~
sn_cfgfile.c:399:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
399 | if( (field=strtok(NULL," "))!=NULL)
| ^
sn_cfgfile.c:405:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
405 | if(strcmp(strlower(field),"port")==0) /* deselect both port */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:405:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:409:20: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
409 | field=strtok(NULL," ");
| ^
sn_cfgfile.c:415:23: error: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
415 | if(strcmp(strlower(field),"mhosts")==0) /* deselect both mhosts */
| ^~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:415:23: note: expected ‘const char *’ but argument is of type ‘int’
sn_cfgfile.c:419:34: error: passing argument 1 of ‘clean_string’ makes pointer from integer without a cast [-Wint-conversion]
419 | field=clean_string(strtok(NULL," "));
| ^~~~~~~~~~~~~~~~
| |
| int
sn_cfgfile.c:114:27: note: expected ‘char *’ but argument is of type ‘int’
114 | char *clean_string (char *string)
| ~~~~~~^~~~~~
sn_cfgfile.c:422:25: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
422 | if( (field=strtok(NULL," "))!=NULL)
| ^
make: *** [Makefile:32: sn_cfgfile.o] Error 1
error: Bad exit status from /tmp/B.5zbcadof/BUILD/tmp/rpm-tmp.xCtnvH (%build)
RPM build errors:
Bad exit status from /tmp/B.5zbcadof/BUILD/tmp/rpm-tmp.xCtnvH (%build)
ended at: Tue Mar 3 00:06:49 2026, done in 0:00:03.043383
error: No files produced.
+ chmod -R u+rwX /tmp/B.5zbcadof/BUILD
+ rm -rf /tmp/B.5zbcadof/tmp /tmp/B.5zbcadof/BUILD
+ rm -rf /tmp/B.5zbcadof
Begin-PLD-Builder-Info
Build-Time: user:3.33s sys:1.65s real:4.91s (faults io:0 non-io:273225)
End-PLD-Builder-Info
|
|