Mock Version: 1.2.17 Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/vtun.spec'], chrootPath='/var/lib/mock/centos7-rutgers-staging-build-5560-8672/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=86400logger=uid=486) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/vtun.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False warning: Could not canonicalize hostname: opus3 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/vtun-3.0.3-1.ru7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/vtun.spec'], chrootPath='/var/lib/mock/centos7-rutgers-staging-build-5560-8672/root'shell=Falseuid=486env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=86400private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/vtun.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.JqklgZ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf vtun-3.0.3 + /usr/bin/gzip -dc /builddir/build/SOURCES/vtun-3.0.3.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd vtun-3.0.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.XuAhWx + umask 022 + cd /builddir/build/BUILD + cd vtun-3.0.3 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + '[' 1 == 1 ']' + '[' x86_64 == ppc64le ']' ++ find . -name config.guess -o -name config.sub + for i in '$(find . -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 . -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' + ./configure --build=x86_64-koji-linux-gnu --host=x86_64-koji-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/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-lzo --disable-socks checking build system type... x86_64-koji-linux-gnu checking host system type... x86_64-koji-linux-gnu checking target system type... x86_64-koji-linux-gnu checking for bison... bison -y checking for x86_64-koji-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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 ANSI C... none needed checking for flex... flex checking for yywrap in -lfl... no checking for yywrap in -ll... no checking lex output file root... lex.yy checking whether yytext is a pointer... no checking for x86_64-koji-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 ANSI C... (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 egrep... 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 configure: checking for ZLIB Library and Header files ... ... checking for deflate in -lz... 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 linux/tun_dev.c to tun_dev.c linking linux/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 configure: creating ./config.status config.status: creating Makefile config.status: creating config.h + /usr/bin/make -j2 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 main.c: In function 'main': main.c:186:15: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(0); dup(fd); ^ main.c:187:15: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(1); dup(fd); ^ main.c:188:22: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(2); dup(fd); ^ main.c:193:7: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir("/"); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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:36: 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:142:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' extern int getpeername (int __fd, __SOCKADDR_ARG __addr, ^ server.c:75:36: 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:128:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' extern int getsockname (int __fd, __SOCKADDR_ARG __addr, ^ server.c: In function 'listener': server.c:159:27: 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:244:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' extern int accept (int __fd, __SOCKADDR_ARG __addr, ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 lib.c: In function 'run_cmd': lib.c:305:8: warning: implicit declaration of function 'nanosleep' [-Wimplicit-function-declaration] nanosleep(&tm, NULL); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 auth.c: In function 'gen_chal': auth.c:67:4: 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:4: 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:7: 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:7: 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:4: 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:7: 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:7: 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, ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 tunnel.c: In function 'tunnel': tunnel.c:171:20: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(0); dup(fd[1]); ^ tunnel.c:172:20: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(1); dup(fd[1]); ^ tunnel.c:176:20: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(2); dup(null_fd); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 lock.c: In function 'lock_host': lock.c:133:15: warning: implicit declaration of function 'nanosleep' [-Wimplicit-function-declaration] nanosleep(&tm, NULL); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 netlib.c: In function 'connect_t': netlib.c:104:9: 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:220:12: note: expected 'socklen_t * __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:32: 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:128:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' extern int getsockname (int __fd, __SOCKADDR_ARG __addr, ^ netlib.c:188:43: 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:142:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' extern int getpeername (int __fd, __SOCKADDR_ARG __addr, ^ netlib.c: In function 'local_addr': netlib.c:228:47: 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:128:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' extern int getsockname (int __fd, __SOCKADDR_ARG __addr, ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 linkfd.c: In function 'linkfd': linkfd.c:380:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(host->flags & VTUN_ENCRYPT) ^ lfd_shaper.c: In function 'shaper_avail': lfd_shaper.c:118:7: warning: implicit declaration of function 'nanosleep' [-Wimplicit-function-declaration] nanosleep(&ts,NULL); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 lfd_encrypt.c: In function 'prep_key': lfd_encrypt.c:121:7: 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:121:7: 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:122:7: 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:122:7: 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:126:7: 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:126:7: 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:166:4: 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:266:4: 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:267:4: 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:306:4: warning: implicit declaration of function 'send_msg' [-Wimplicit-function-declaration] msg_len = send_msg(len, in, out); ^ lfd_encrypt.c:312:4: warning: implicit declaration of function 'send_ib_mesg' [-Wimplicit-function-declaration] send_ib_mesg(&len, &in_ptr); ^ lfd_encrypt.c:320:7: 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:321:4: 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:321:4: 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:335:4: warning: implicit declaration of function 'recv_msg' [-Wimplicit-function-declaration] len = recv_msg(len, in, out); ^ lfd_encrypt.c:341:4: 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:341:4: 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:342:4: warning: implicit declaration of function 'recv_ib_mesg' [-Wimplicit-function-declaration] recv_ib_mesg(&outlen, &out_ptr); ^ lfd_encrypt.c: In function 'cipher_enc_init': lfd_encrypt.c:433:4: 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:434:4: 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:523:4: 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:524:4: 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:545:10: 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:553:10: 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_legacy_encrypt.c: In function 'alloc_legacy_encrypt': lfd_encrypt.c:558:13: warning: pointer targets in passing argument 2 of 'EVP_EncryptUpdate' differ in signedness [-Wpointer-sign] &outlen, in_ptr, blocksize*2); ^ lfd_legacy_encrypt.c:74:4: 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_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, ^ 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_encrypt.c:558:13: 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_legacy_encrypt.c: In function 'legacy_encrypt_buf': lfd_legacy_encrypt.c:97:4: 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_encrypt.c: In function 'recv_msg': lfd_legacy_encrypt.c:97:4: 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_encrypt.c:584:10: 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); ^ lfd_legacy_encrypt.c:102:7: 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_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, ^ 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:7: 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); ^ lfd_encrypt.c:584:10: 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_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': 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_legacy_encrypt.c:113:7: 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:7: 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, ^ lfd_encrypt.c: In function 'send_ib_mesg': lfd_encrypt.c:660:7: warning: implicit declaration of function 'htonl' [-Wimplicit-function-declaration] *((unsigned long *)in_ptr) = htonl(sequence_num); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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:74:4: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] if( (w = read(fd, buf, len)) < 0 ){ ^ lib.h: In function 'write_n': lib.h:93:5: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] if( (w = write(fd, buf, len)) < 0 ){ ^ cfg_file.tab.c: In function 'yyparse': cfg_file.tab.c:2119:9: warning: passing argument 1 of 'yyerror' discards 'const' qualifier from pointer target type [enabled by default] 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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 :1303:17: warning: 'yyunput' defined but not used [-Wunused-function] :1344:16: warning: 'input' defined but not used [-Wunused-function] gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 -lz -lcrypto + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.kEa1Sv + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64 ++ dirname /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64 + cd vtun-3.0.3 + /usr/bin/rm -rf /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64 + /usr/bin/install -D -m 0755 -p /builddir/build/SOURCES/vtund.init /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64//etc/rc.d/init.d/vtund + /usr/bin/install -D -m 0644 -p scripts/vtund.xinetd /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64//etc/xinetd.d/vtun + /usr/bin/sed -i s:/usr/local:/usr: /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64//etc/xinetd.d/vtun + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64 INSTALL_OWNER= 'INSTALL=/usr/bin/install -p' /usr/bin/install -p -d -m 755 /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/etc if [ ! -f /etc/vtund.conf ]; then \ /usr/bin/install -p -m 600 vtund.conf /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/etc; \ fi /usr/bin/install -p -d -m 755 /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/man/man8 /usr/bin/install -p -m 644 vtund.8 /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/man/man8 /usr/bin/install -p -d -m 755 /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/man/man5 /usr/bin/install -p -m 644 vtund.conf.5 /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/man/man5 rm -f /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/man/man8/vtun.8 ln -s vtund.8 /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/man/man8/vtun.8 /usr/bin/install -p -d -m 755 /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/var/run /usr/bin/install -p -d -m 755 /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/var/log/vtund /usr/bin/install -p -d -m 755 /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/var/lock/vtund /usr/bin/install -p -d -m 755 /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/sbin /usr/bin/install -p -m 755 vtund /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/sbin /usr/bin/strip /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/sbin/vtund + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/vtun-3.0.3 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: vtun-3.0.3-1.ru7.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.2ekzcu + umask 022 + cd /builddir/build/BUILD + cd vtun-3.0.3 + DOCDIR=/builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/doc/vtun-3.0.3 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/doc/vtun-3.0.3 + cp -pr ChangeLog /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/doc/vtun-3.0.3 + cp -pr Credits /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/doc/vtun-3.0.3 + cp -pr FAQ /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/doc/vtun-3.0.3 + cp -pr README /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/doc/vtun-3.0.3 + cp -pr README.LZO /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/doc/vtun-3.0.3 + cp -pr README.Setup /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/doc/vtun-3.0.3 + cp -pr README.Shaper /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/doc/vtun-3.0.3 + cp -pr TODO /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/doc/vtun-3.0.3 + cp -pr vtund.conf /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64/usr/share/doc/vtun-3.0.3 + exit 0 Provides: config(vtun) = 3.0.3-1.ru7 vtun = 3.0.3-1.ru7 vtun(x86-64) = 3.0.3-1.ru7 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 /sbin/chkconfig Requires(preun): /bin/sh /sbin/chkconfig /sbin/service Requires(postun): /bin/sh /sbin/service Requires: /bin/sh libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.15)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libcrypto.so.10()(64bit) libcrypto.so.10(libcrypto.so.10)(64bit) libz.so.1()(64bit) rtld(GNU_HASH) Processing files: vtun-debuginfo-3.0.3-1.ru7.x86_64 Provides: vtun-debuginfo = 3.0.3-1.ru7 vtun-debuginfo(x86-64) = 3.0.3-1.ru7 Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64 warning: Could not canonicalize hostname: opus3 Wrote: /builddir/build/RPMS/vtun-3.0.3-1.ru7.x86_64.rpm Wrote: /builddir/build/RPMS/vtun-debuginfo-3.0.3-1.ru7.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.wB9Mar + umask 022 + cd /builddir/build/BUILD + cd vtun-3.0.3 + /usr/bin/rm -rf /builddir/build/BUILDROOT/vtun-3.0.3-1.ru7.x86_64 + exit 0 Child return code was: 0