Mock Version: 1.3.4 Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/vtun.spec'], chrootPath='/var/lib/mock/f26-build-10151669-797195/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/vtun.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/vtun-3.0.4-5.fc26.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/vtun.spec'], chrootPath='/var/lib/mock/f26-build-10151669-797195/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/vtun.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.TA8Czs + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf vtun-3.0.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/vtun-3.0.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd vtun-3.0.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (vtun-nostrip.patch):' Patch #0 (vtun-nostrip.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.in + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ahM9VL + umask 022 + cd /builddir/build/BUILD + cd vtun-3.0.4 + autoconf + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=armv7hl-redhat-linux-gnu --host=armv7hl-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89' configure: WARNING: unrecognized options: --disable-dependency-tracking checking build system type... armv7hl-redhat-linux-gnu checking host system type... armv7hl-redhat-linux-gnu checking target system type... armv7hl-redhat-linux-gnu checking for bison... bison -y checking for armv7hl-redhat-linux-gnu-gcc... no checking for gcc... 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 we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for flex... flex checking lex output file root... lex.yy checking lex library... none needed checking whether yytext is a pointer... no checking for armv7hl-redhat-linux-gnu-gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for a BSD-compatible install... /usr/bin/install -c checking for an ANSI C-conforming const... yes checking for inline... inline checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking sched.h usability... yes checking sched.h presence... yes checking for sched.h... yes checking resolv.h usability... yes checking resolv.h presence... yes checking for resolv.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/ip.h usability... yes checking netinet/ip.h presence... yes checking for netinet/ip.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking netinet/tcp.h usability... yes checking netinet/tcp.h presence... yes checking for netinet/tcp.h... yes checking netinet/in_systm.h usability... yes checking netinet/in_systm.h presence... yes checking for netinet/in_systm.h... yes checking libutil.h usability... no checking libutil.h presence... no checking for libutil.h... no checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking for library containing socket... none required checking for library containing inet_ntoa... none required checking for library containing gethostbyname... none required checking for library containing nanosleep... none required checking for library containing setproctitle... no checking for pid_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes configure: checking for ZLIB Library and Header files ... ... checking for deflate in -lz... yes configure: checking for LZO Library and Header files ... ... checking "for lzo_asm.h"... (/usr/include/lzo) yes checking for lzo1x_decompress in -llzo2... yes configure: checking for md5 Library and Header files ... ... checking "for md5.h"... (/usr/include/openssl) yes configure: checking for blowfish Library and Header files ... ... checking "for blowfish.h"... (/usr/include/openssl) yes checking for BF_set_key in -lcrypto... yes configure: checking for AES Library and Header files ... ... checking "for aes.h"... (/usr/include/openssl) yes checking for AES_set_encrypt_key in -lcrypto... yes configure: checking for EVP Library and Header files ... ... checking "for evp.h"... (/usr/include/openssl) yes checking for EVP_EncryptInit in -lcrypto... yes checking for getpt... yes checking for grantpt... yes checking for unlockpt... yes checking for ptsname... yes checking linux/if_tun.h usability... yes checking linux/if_tun.h presence... yes checking for linux/if_tun.h... yes creating driver and protocol links ... linking generic/tun_dev.c to tun_dev.c linking generic/tap_dev.c to tap_dev.c linking generic/pty_dev.c to pty_dev.c linking generic/pipe_dev.c to pipe_dev.c linking generic/tcp_proto.c to tcp_proto.c linking generic/udp_proto.c to udp_proto.c linking linux/tun_dev.c to tun_dev.c linking linux/tap_dev.c to tap_dev.c configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: creating config.h configure: WARNING: unrecognized options: --disable-dependency-tracking + make -j4 gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c main.c bison -y -d -b cfg_file cfg_file.y gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c server.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c client.c server.c: In function 'connection': server.c:70:58: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness [-Wpointer-sign] if( getpeername(sock, (struct sockaddr *) &cl_addr, &opt) ){ ^ In file included from server.c:32:0: /usr/include/sys/socket.h:135:12: note: expected 'socklen_t * __restrict__ {aka unsigned int * __restrict__}' but argument is of type 'int *' extern int getpeername (int __fd, __SOCKADDR_ARG __addr, ^~~~~~~~~~~ server.c:75:58: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness [-Wpointer-sign] if( getsockname(sock, (struct sockaddr *) &my_addr, &opt) < 0 ){ ^ In file included from server.c:32:0: /usr/include/sys/socket.h:121:12: note: expected 'socklen_t * __restrict__ {aka unsigned int * __restrict__}' but argument is of type 'int *' extern int getsockname (int __fd, __SOCKADDR_ARG __addr, ^~~~~~~~~~~ server.c: In function 'listener': server.c:160:47: warning: pointer targets in passing argument 3 of 'accept' differ in signedness [-Wpointer-sign] if( (s1=accept(s,(struct sockaddr *)&cl_addr,&opt)) < 0 ) ^ In file included from server.c:32:0: /usr/include/sys/socket.h:237:12: note: expected 'socklen_t * __restrict__ {aka unsigned int * __restrict__}' but argument is of type 'int *' extern int accept (int __fd, __SOCKADDR_ARG __addr, ^~~~~~ main.c: In function 'main': main.c:208:12: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(0); dup(fd); ^~~~~~~ main.c:209:12: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(1); dup(fd); ^~~~~~~ main.c:210:19: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(2); dup(fd); ^~~~~~~ main.c:215:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir("/"); ^~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c lib.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c llist.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c auth.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c tunnel.c lib.c: In function 'run_cmd': lib.c:309:8: warning: implicit declaration of function 'nanosleep'; did you mean 'usleep'? [-Wimplicit-function-declaration] nanosleep(&tm, NULL); ^~~~~~~~~ usleep gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c lock.c auth.c: In function 'gen_chal': auth.c:67:15: warning: pointer targets in passing argument 1 of 'RAND_bytes' differ in signedness [-Wpointer-sign] RAND_bytes(buf, VTUN_CHAL_SIZE); ^~~ In file included from auth.c:63:0: /usr/include/openssl/rand.h:101:5: note: expected 'unsigned char *' but argument is of type 'char *' int RAND_bytes(unsigned char *buf, int num); ^~~~~~~~~~ auth.c: In function 'encrypt_chal': auth.c:75:29: warning: pointer targets in passing argument 1 of 'MD5' differ in signedness [-Wpointer-sign] BF_set_key(&key, 16, MD5(pwd,strlen(pwd),NULL)); ^~~ In file included from auth.c:61:0: /usr/include/openssl/md5.h:113:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); ^~~ auth.c:78:22: warning: pointer targets in passing argument 1 of 'BF_ecb_encrypt' differ in signedness [-Wpointer-sign] BF_ecb_encrypt(chal + i, chal + i, &key, BF_ENCRYPT); ^~~~ In file included from auth.c:62:0: /usr/include/openssl/blowfish.h:114:6: note: expected 'const unsigned char *' but argument is of type 'char *' void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, ^~~~~~~~~~~~~~ auth.c:78:33: warning: pointer targets in passing argument 2 of 'BF_ecb_encrypt' differ in signedness [-Wpointer-sign] BF_ecb_encrypt(chal + i, chal + i, &key, BF_ENCRYPT); ^~~~ In file included from auth.c:62:0: /usr/include/openssl/blowfish.h:114:6: note: expected 'unsigned char *' but argument is of type 'char *' void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, ^~~~~~~~~~~~~~ auth.c: In function 'decrypt_chal': auth.c:86:29: warning: pointer targets in passing argument 1 of 'MD5' differ in signedness [-Wpointer-sign] BF_set_key(&key, 16, MD5(pwd,strlen(pwd),NULL)); ^~~ In file included from auth.c:61:0: /usr/include/openssl/md5.h:113:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); ^~~ auth.c:89:22: warning: pointer targets in passing argument 1 of 'BF_ecb_encrypt' differ in signedness [-Wpointer-sign] BF_ecb_encrypt(chal + i, chal + i, &key, BF_DECRYPT); ^~~~ In file included from auth.c:62:0: /usr/include/openssl/blowfish.h:114:6: note: expected 'const unsigned char *' but argument is of type 'char *' void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, ^~~~~~~~~~~~~~ auth.c:89:33: warning: pointer targets in passing argument 2 of 'BF_ecb_encrypt' differ in signedness [-Wpointer-sign] BF_ecb_encrypt(chal + i, chal + i, &key, BF_DECRYPT); ^~~~ In file included from auth.c:62:0: /usr/include/openssl/blowfish.h:114:6: note: expected 'unsigned char *' but argument is of type 'char *' void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, ^~~~~~~~~~~~~~ tunnel.c: In function 'tunnel': tunnel.c:172:17: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(0); dup(fd[1]); ^~~~~~~~~~ tunnel.c:173:17: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(1); dup(fd[1]); ^~~~~~~~~~ tunnel.c:177:17: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(2); dup(null_fd); ^~~~~~~~~~~~ lock.c: In function 'lock_host': lock.c:133:15: warning: implicit declaration of function 'nanosleep'; did you mean 'usleep'? [-Wimplicit-function-declaration] nanosleep(&tm, NULL); ^~~~~~~~~ usleep gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c netlib.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c tun_dev.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c tap_dev.c netlib.c: In function 'connect_t': netlib.c:104:49: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(s,SOL_SOCKET,SO_ERROR,&errno,&l); ^ In file included from netlib.c:37:0: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * __restrict__ {aka unsigned int * __restrict__}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ netlib.c: In function 'udp_session': netlib.c:168:50: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness [-Wpointer-sign] if( getsockname(s,(struct sockaddr *)&saddr,&opt) ){ ^ In file included from netlib.c:37:0: /usr/include/sys/socket.h:121:12: note: expected 'socklen_t * __restrict__ {aka unsigned int * __restrict__}' but argument is of type 'int *' extern int getsockname (int __fd, __SOCKADDR_ARG __addr, ^~~~~~~~~~~ netlib.c:188:61: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness [-Wpointer-sign] if( getpeername(host->rmt_fd,(struct sockaddr *)&saddr,&opt) ){ ^ In file included from netlib.c:37:0: /usr/include/sys/socket.h:135:12: note: expected 'socklen_t * __restrict__ {aka unsigned int * __restrict__}' but argument is of type 'int *' extern int getpeername (int __fd, __SOCKADDR_ARG __addr, ^~~~~~~~~~~ netlib.c: In function 'local_addr': netlib.c:228:64: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness [-Wpointer-sign] if( getsockname(host->rmt_fd, (struct sockaddr *)addr, &opt) < 0 ){ ^ In file included from netlib.c:37:0: /usr/include/sys/socket.h:121:12: note: expected 'socklen_t * __restrict__ {aka unsigned int * __restrict__}' but argument is of type 'int *' extern int getsockname (int __fd, __SOCKADDR_ARG __addr, ^~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c pty_dev.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c pipe_dev.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c tcp_proto.c pty_dev.c: In function 'pty_open': pty_dev.c:45:15: warning: implicit declaration of function 'getpt'; did you mean 'getopt'? [-Wimplicit-function-declaration] if((mr_fd=getpt()) < 0) ^~~~~ getopt pty_dev.c:47:8: warning: implicit declaration of function 'grantpt' [-Wimplicit-function-declaration] if(grantpt(mr_fd) != 0) ^~~~~~~ pty_dev.c:49:8: warning: implicit declaration of function 'unlockpt'; did you mean 'unlinkat'? [-Wimplicit-function-declaration] if(unlockpt(mr_fd) != 0) ^~~~~~~~ unlinkat pty_dev.c:51:27: warning: implicit declaration of function 'ptsname'; did you mean 'ptsname_r'? [-Wimplicit-function-declaration] if ((ptyname = (char*)ptsname(mr_fd)) == NULL) ^~~~~~~ ptsname_r gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c udp_proto.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c linkfd.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c lfd_shaper.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c lfd_zlib.c linkfd.c: In function 'sig_alarm': linkfd.c:204:19: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] if ( ka_timer*stat_timer ){ ~~~~~~~~^~~~~~~~~~~ linkfd.c: In function 'linkfd': linkfd.c:380:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] if(host->flags & VTUN_ENCRYPT) ^ lfd_shaper.c: In function 'shaper_avail': lfd_shaper.c:118:7: warning: implicit declaration of function 'nanosleep'; did you mean 'usleep'? [-Wimplicit-function-declaration] nanosleep(&ts,NULL); ^~~~~~~~~ usleep gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c lfd_lzo.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c lfd_encrypt.c lfd_encrypt.c: In function 'prep_key': lfd_encrypt.c:126:11: warning: pointer targets in passing argument 1 of 'MD5' differ in signedness [-Wpointer-sign] MD5(host->passwd, halflen, hashkey); ^~~~ In file included from lfd_encrypt.c:56:0: /usr/include/openssl/md5.h:113:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); ^~~ lfd_encrypt.c:126:34: warning: pointer targets in passing argument 3 of 'MD5' differ in signedness [-Wpointer-sign] MD5(host->passwd, halflen, hashkey); ^~~~~~~ In file included from lfd_encrypt.c:56:0: /usr/include/openssl/md5.h:113:16: note: expected 'unsigned char *' but argument is of type 'char *' unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); ^~~ lfd_encrypt.c:127:11: warning: pointer targets in passing argument 1 of 'MD5' differ in signedness [-Wpointer-sign] MD5((host->passwd)+halflen, tmplen-halflen, hashkey+16); ^ In file included from lfd_encrypt.c:56:0: /usr/include/openssl/md5.h:113:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); ^~~ lfd_encrypt.c:127:51: warning: pointer targets in passing argument 3 of 'MD5' differ in signedness [-Wpointer-sign] MD5((host->passwd)+halflen, tmplen-halflen, hashkey+16); ^~~~~~~ In file included from lfd_encrypt.c:56:0: /usr/include/openssl/md5.h:113:16: note: expected 'unsigned char *' but argument is of type 'char *' unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); ^~~ lfd_encrypt.c:131:11: warning: pointer targets in passing argument 1 of 'MD5' differ in signedness [-Wpointer-sign] MD5(host->passwd,strlen(host->passwd), hashkey); ^~~~ In file included from lfd_encrypt.c:56:0: /usr/include/openssl/md5.h:113:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); ^~~ lfd_encrypt.c:131:46: warning: pointer targets in passing argument 3 of 'MD5' differ in signedness [-Wpointer-sign] MD5(host->passwd,strlen(host->passwd), hashkey); ^~~~~~~ In file included from lfd_encrypt.c:56:0: /usr/include/openssl/md5.h:113:16: note: expected 'unsigned char *' but argument is of type 'char *' unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); ^~~ lfd_encrypt.c: In function 'alloc_encrypt': lfd_encrypt.c:171:15: warning: pointer targets in passing argument 1 of 'RAND_bytes' differ in signedness [-Wpointer-sign] RAND_bytes((char *)&sequence_num, 4); ^ In file included from lfd_encrypt.c:58:0: /usr/include/openssl/rand.h:101:5: note: expected 'unsigned char *' but argument is of type 'char *' int RAND_bytes(unsigned char *buf, int num); ^~~~~~~~~~ lfd_encrypt.c:271:45: warning: pointer targets in passing argument 4 of 'EVP_EncryptInit_ex' differ in signedness [-Wpointer-sign] EVP_EncryptInit_ex(pctx_enc, NULL, NULL, pkey, NULL); ^~~~ In file included from lfd_encrypt.c:55:0: /usr/include/openssl/evp.h:625:5: note: expected 'const unsigned char *' but argument is of type 'char *' int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ^~~~~~~~~~~~~~~~~~ lfd_encrypt.c:272:45: warning: pointer targets in passing argument 4 of 'EVP_DecryptInit_ex' differ in signedness [-Wpointer-sign] EVP_DecryptInit_ex(pctx_dec, NULL, NULL, pkey, NULL); ^~~~ In file included from lfd_encrypt.c:55:0: /usr/include/openssl/evp.h:635:5: note: expected 'const unsigned char *' but argument is of type 'char *' int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ^~~~~~~~~~~~~~~~~~ lfd_encrypt.c: In function 'encrypt_buf': lfd_encrypt.c:325:18: warning: pointer targets in passing argument 1 of 'RAND_bytes' differ in signedness [-Wpointer-sign] RAND_bytes(in_ptr+len, blocksize-1); ^~~~~~ In file included from lfd_encrypt.c:58:0: /usr/include/openssl/rand.h:101:5: note: expected 'unsigned char *' but argument is of type 'char *' int RAND_bytes(unsigned char *buf, int num); ^~~~~~~~~~ lfd_encrypt.c:326:32: warning: pointer targets in passing argument 2 of 'EVP_EncryptUpdate' differ in signedness [-Wpointer-sign] EVP_EncryptUpdate(&ctx_enc, out_ptr, &outlen, in_ptr, len+pad); ^~~~~~~ In file included from lfd_encrypt.c:55:0: /usr/include/openssl/evp.h:628:5: note: expected 'unsigned char *' but argument is of type 'char *' int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, ^~~~~~~~~~~~~~~~~ lfd_encrypt.c:326:50: warning: pointer targets in passing argument 4 of 'EVP_EncryptUpdate' differ in signedness [-Wpointer-sign] EVP_EncryptUpdate(&ctx_enc, out_ptr, &outlen, in_ptr, len+pad); ^~~~~~ In file included from lfd_encrypt.c:55:0: /usr/include/openssl/evp.h:628:5: note: expected 'const unsigned char *' but argument is of type 'char *' int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, ^~~~~~~~~~~~~~~~~ lfd_encrypt.c: In function 'decrypt_buf': lfd_encrypt.c:346:32: warning: pointer targets in passing argument 2 of 'EVP_DecryptUpdate' differ in signedness [-Wpointer-sign] EVP_DecryptUpdate(&ctx_dec, out_ptr, &outlen, in_ptr, len); ^~~~~~~ In file included from lfd_encrypt.c:55:0: /usr/include/openssl/evp.h:638:5: note: expected 'unsigned char *' but argument is of type 'char *' int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, ^~~~~~~~~~~~~~~~~ lfd_encrypt.c:346:50: warning: pointer targets in passing argument 4 of 'EVP_DecryptUpdate' differ in signedness [-Wpointer-sign] EVP_DecryptUpdate(&ctx_dec, out_ptr, &outlen, in_ptr, len); ^~~~~~ In file included from lfd_encrypt.c:55:0: /usr/include/openssl/evp.h:638:5: note: expected 'const unsigned char *' but argument is of type 'char *' int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, ^~~~~~~~~~~~~~~~~ lfd_encrypt.c: In function 'cipher_enc_init': lfd_encrypt.c:438:45: warning: pointer targets in passing argument 4 of 'EVP_EncryptInit_ex' differ in signedness [-Wpointer-sign] EVP_EncryptInit_ex(&ctx_enc, NULL, NULL, pkey, NULL); ^~~~ In file included from lfd_encrypt.c:55:0: /usr/include/openssl/evp.h:625:5: note: expected 'const unsigned char *' but argument is of type 'char *' int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ^~~~~~~~~~~~~~~~~~ lfd_encrypt.c:439:51: warning: pointer targets in passing argument 5 of 'EVP_EncryptInit_ex' differ in signedness [-Wpointer-sign] EVP_EncryptInit_ex(&ctx_enc, NULL, NULL, NULL, iv); ^~ In file included from lfd_encrypt.c:55:0: /usr/include/openssl/evp.h:625:5: note: expected 'const unsigned char *' but argument is of type 'char *' int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ^~~~~~~~~~~~~~~~~~ lfd_encrypt.c: In function 'cipher_dec_init': lfd_encrypt.c:528:45: warning: pointer targets in passing argument 4 of 'EVP_DecryptInit_ex' differ in signedness [-Wpointer-sign] EVP_DecryptInit_ex(&ctx_dec, NULL, NULL, pkey, NULL); ^~~~ In file included from lfd_encrypt.c:55:0: /usr/include/openssl/evp.h:635:5: note: expected 'const unsigned char *' but argument is of type 'char *' int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ^~~~~~~~~~~~~~~~~~ lfd_encrypt.c:529:51: warning: pointer targets in passing argument 5 of 'EVP_DecryptInit_ex' differ in signedness [-Wpointer-sign] EVP_DecryptInit_ex(&ctx_dec, NULL, NULL, NULL, iv); ^~ In file included from lfd_encrypt.c:55:0: /usr/include/openssl/evp.h:635:5: note: expected 'const unsigned char *' but argument is of type 'char *' int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ^~~~~~~~~~~~~~~~~~ lfd_encrypt.c: In function 'send_msg': lfd_encrypt.c:550:21: warning: pointer targets in passing argument 1 of 'RAND_bytes' differ in signedness [-Wpointer-sign] RAND_bytes(iv, blocksize); ^~ In file included from lfd_encrypt.c:58:0: /usr/include/openssl/rand.h:101:5: note: expected 'unsigned char *' but argument is of type 'char *' int RAND_bytes(unsigned char *buf, int num); ^~~~~~~~~~ lfd_encrypt.c:558:21: warning: pointer targets in passing argument 1 of 'RAND_bytes' differ in signedness [-Wpointer-sign] RAND_bytes(in_ptr, in - in_ptr); ^~~~~~ In file included from lfd_encrypt.c:58:0: /usr/include/openssl/rand.h:101:5: note: expected 'unsigned char *' but argument is of type 'char *' int RAND_bytes(unsigned char *buf, int num); ^~~~~~~~~~ lfd_encrypt.c:562:42: warning: pointer targets in passing argument 2 of 'EVP_EncryptUpdate' differ in signedness [-Wpointer-sign] EVP_EncryptUpdate(&ctx_enc_ecb, in_ptr, ^~~~~~ In file included from lfd_encrypt.c:55:0: /usr/include/openssl/evp.h:628:5: note: expected 'unsigned char *' but argument is of type 'char *' int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, ^~~~~~~~~~~~~~~~~ lfd_encrypt.c:563:22: warning: pointer targets in passing argument 4 of 'EVP_EncryptUpdate' differ in signedness [-Wpointer-sign] &outlen, in_ptr, blocksize*2); ^~~~~~ In file included from lfd_encrypt.c:55:0: /usr/include/openssl/evp.h:628:5: note: expected 'const unsigned char *' but argument is of type 'char *' int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, ^~~~~~~~~~~~~~~~~ lfd_encrypt.c: In function 'recv_msg': lfd_encrypt.c:589:42: warning: pointer targets in passing argument 2 of 'EVP_DecryptUpdate' differ in signedness [-Wpointer-sign] EVP_DecryptUpdate(&ctx_dec_ecb, in_ptr, &outlen, in_ptr, blocksize*2); ^~~~~~ In file included from lfd_encrypt.c:55:0: /usr/include/openssl/evp.h:638:5: note: expected 'unsigned char *' but argument is of type 'char *' int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, ^~~~~~~~~~~~~~~~~ lfd_encrypt.c:589:59: warning: pointer targets in passing argument 4 of 'EVP_DecryptUpdate' differ in signedness [-Wpointer-sign] EVP_DecryptUpdate(&ctx_dec_ecb, in_ptr, &outlen, in_ptr, blocksize*2); ^~~~~~ In file included from lfd_encrypt.c:55:0: /usr/include/openssl/evp.h:638:5: note: expected 'const unsigned char *' but argument is of type 'char *' int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, ^~~~~~~~~~~~~~~~~ lfd_encrypt.c: In function 'send_ib_mesg': lfd_encrypt.c:665:36: warning: implicit declaration of function 'htonl'; did you mean 'atoll'? [-Wimplicit-function-declaration] *((unsigned long *)in_ptr) = htonl(sequence_num); ^~~~~ atoll gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c lfd_legacy_encrypt.c At top level: lfd_encrypt.c:96:15: warning: 'iv_buf' defined but not used [-Wunused-variable] static char * iv_buf; ^~~~~~ lfd_encrypt.c:67:15: warning: 'key' defined but not used [-Wunused-variable] static BF_KEY key; ^~~ lfd_legacy_encrypt.c: In function 'alloc_legacy_encrypt': lfd_legacy_encrypt.c:74:39: warning: pointer targets in passing argument 1 of 'MD5' differ in signedness [-Wpointer-sign] BF_set_key(&key, ENC_KEY_SIZE, MD5(host->passwd,strlen(host->passwd),NULL)); ^~~~ In file included from lfd_legacy_encrypt.c:54:0: /usr/include/openssl/md5.h:113:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); ^~~ lfd_legacy_encrypt.c: In function 'legacy_encrypt_buf': lfd_legacy_encrypt.c:97:19: warning: pointer targets in passing argument 1 of 'BF_ecb_encrypt' differ in signedness [-Wpointer-sign] BF_ecb_encrypt(out_ptr, out_ptr, &key, BF_ENCRYPT); ^~~~~~~ In file included from lfd_legacy_encrypt.c:55:0: /usr/include/openssl/blowfish.h:114:6: note: expected 'const unsigned char *' but argument is of type 'char *' void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, ^~~~~~~~~~~~~~ lfd_legacy_encrypt.c:97:28: warning: pointer targets in passing argument 2 of 'BF_ecb_encrypt' differ in signedness [-Wpointer-sign] BF_ecb_encrypt(out_ptr, out_ptr, &key, BF_ENCRYPT); ^~~~~~~ In file included from lfd_legacy_encrypt.c:55:0: /usr/include/openssl/blowfish.h:114:6: note: expected 'unsigned char *' but argument is of type 'char *' void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, ^~~~~~~~~~~~~~ lfd_legacy_encrypt.c:102:22: warning: pointer targets in passing argument 1 of 'BF_ecb_encrypt' differ in signedness [-Wpointer-sign] BF_ecb_encrypt(in_ptr + p, out_ptr + p, &key, BF_ENCRYPT); ^~~~~~ In file included from lfd_legacy_encrypt.c:55:0: /usr/include/openssl/blowfish.h:114:6: note: expected 'const unsigned char *' but argument is of type 'char *' void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, ^~~~~~~~~~~~~~ lfd_legacy_encrypt.c:102:35: warning: pointer targets in passing argument 2 of 'BF_ecb_encrypt' differ in signedness [-Wpointer-sign] BF_ecb_encrypt(in_ptr + p, out_ptr + p, &key, BF_ENCRYPT); ^~~~~~~ In file included from lfd_legacy_encrypt.c:55:0: /usr/include/openssl/blowfish.h:114:6: note: expected 'unsigned char *' but argument is of type 'char *' void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, ^~~~~~~~~~~~~~ lfd_legacy_encrypt.c: In function 'legacy_decrypt_buf': lfd_legacy_encrypt.c:113:22: warning: pointer targets in passing argument 1 of 'BF_ecb_encrypt' differ in signedness [-Wpointer-sign] BF_ecb_encrypt(in + p, in + p, &key, BF_DECRYPT); ^~ In file included from lfd_legacy_encrypt.c:55:0: /usr/include/openssl/blowfish.h:114:6: note: expected 'const unsigned char *' but argument is of type 'char *' void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, ^~~~~~~~~~~~~~ lfd_legacy_encrypt.c:113:30: warning: pointer targets in passing argument 2 of 'BF_ecb_encrypt' differ in signedness [-Wpointer-sign] BF_ecb_encrypt(in + p, in + p, &key, BF_DECRYPT); ^~ In file included from lfd_legacy_encrypt.c:55:0: /usr/include/openssl/blowfish.h:114:6: note: expected 'unsigned char *' but argument is of type 'char *' void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, ^~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c cfg_file.tab.c In file included from cfg_file.y:35:0: lib.h: In function 'read_n': lib.h:76:13: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] if( (w = read(fd, buf, len)) < 0 ){ ^~~~ fread lib.h: In function 'write_n': lib.h:95:14: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if( (w = write(fd, buf, len)) < 0 ){ ^~~~~ fwrite cfg_file.tab.c: In function 'yyparse': cfg_file.tab.c:2120:18: warning: passing argument 1 of 'yyerror' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] yyerror (yymsgp); ^~~~~~ cfg_file.y:61:5: note: expected 'char *' but argument is of type 'const char *' int yyerror(char *s); ^~~~~~~ flex -t cfg_file.l > cfg_file.lex.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lock/vtund\" -c cfg_file.lex.c :1359:16: warning: 'input' defined but not used [-Wunused-function] :1316:17: warning: 'yyunput' defined but not used [-Wunused-function] gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard --std=gnu89 -I/usr/include/lzo -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -o vtund main.o cfg_file.tab.o cfg_file.lex.o server.o client.o lib.o llist.o auth.o tunnel.o lock.o netlib.o tun_dev.o tap_dev.o pty_dev.o pipe_dev.o tcp_proto.o udp_proto.o linkfd.o lfd_shaper.o lfd_zlib.o lfd_lzo.o lfd_encrypt.o lfd_legacy_encrypt.o -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lz -llzo2 -lcrypto + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.QQ80Ds + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm '!=' / ']' + rm -rf /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm ++ dirname /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm + cd vtun-3.0.4 + install -D -m 0644 -p /builddir/build/SOURCES/vtun.socket /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm//usr/lib/systemd/system/vtun.socket + install -D -m 0644 -p /builddir/build/SOURCES/vtun.service /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm//usr/lib/systemd/system/vtun.service + install -D -m 0644 -p /builddir/build/SOURCES/vtun.sysconfig /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm//etc/sysconfig/vtun + make install DESTDIR=/builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm INSTALL_OWNER= 'INSTALL=/usr/bin/install -p' /usr/bin/install -p -d -m 755 /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/etc if [ ! -f /etc/vtund.conf ]; then \ /usr/bin/install -p -m 600 vtund.conf /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/etc; \ fi /usr/bin/install -p -d -m 755 /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/man/man8 /usr/bin/install -p -m 644 vtund.8 /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/man/man8 /usr/bin/install -p -d -m 755 /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/man/man5 /usr/bin/install -p -m 644 vtund.conf.5 /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/man/man5 rm -f /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/man/man8/vtun.8 ln -s vtund.8 /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/man/man8/vtun.8 /usr/bin/install -p -d -m 755 /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/var/run /usr/bin/install -p -d -m 755 /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/var/log/vtund /usr/bin/install -p -d -m 755 /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/var/lock/vtund /usr/bin/install -p -d -m 755 /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/sbin /usr/bin/install -p -m 755 vtund /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/sbin + mkdir -p /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm//usr/lib/tmpfiles.d + cat + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/vtun-3.0.4 extracting debug info from /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/sbin/vtund dwz: Too few files for multifile optimization /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. cpio: vtun-3.0.4/: Cannot stat: No such file or directory 442 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink Processing files: vtun-3.0.4-5.fc26.armv7hl Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.yOKApS + umask 022 + cd /builddir/build/BUILD + cd vtun-3.0.4 + DOCDIR=/builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/doc/vtun + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/doc/vtun + cp -pr ChangeLog /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/doc/vtun + cp -pr Credits /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/doc/vtun + cp -pr FAQ /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/doc/vtun + cp -pr README /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/doc/vtun + cp -pr README.LZO /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/doc/vtun + cp -pr README.Setup /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/doc/vtun + cp -pr README.Shaper /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/doc/vtun + cp -pr TODO /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/doc/vtun + cp -pr vtund.conf /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm/usr/share/doc/vtun + exit 0 Provides: config(vtun) = 3.0.4-5.fc26 vtun = 3.0.4-5.fc26 vtun(armv7hl-32) = 3.0.4-5.fc26 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh systemd-units Requires(preun): /bin/sh systemd-units Requires(postun): /bin/sh systemd-units Requires: ld-linux-armhf.so.3 ld-linux-armhf.so.3(GLIBC_2.4) libc.so.6 libc.so.6(GLIBC_2.15) libc.so.6(GLIBC_2.4) libcrypto.so.10 libcrypto.so.10(libcrypto.so.10) libgcc_s.so.1 libgcc_s.so.1(GCC_3.5) liblzo2.so.2 libz.so.1 rtld(GNU_HASH) Processing files: vtun-debuginfo-3.0.4-5.fc26.armv7hl Provides: vtun-debuginfo = 3.0.4-5.fc26 vtun-debuginfo(armv7hl-32) = 3.0.4-5.fc26 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm Wrote: /builddir/build/RPMS/vtun-3.0.4-5.fc26.armv7hl.rpm Wrote: /builddir/build/RPMS/vtun-debuginfo-3.0.4-5.fc26.armv7hl.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.PIvMPZ + umask 022 + cd /builddir/build/BUILD + cd vtun-3.0.4 + /usr/bin/rm -rf /builddir/build/BUILDROOT/vtun-3.0.4-5.fc26.arm + exit 0 Child return code was: 0