* Package: net-misc/htun-0.9.6 * Repository: gentoo * Maintainer: maintainer-needed@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking htun-0.9.6.tar.gz to /var/tmp/portage/net-misc/htun-0.9.6/work >>> Source unpacked in /var/tmp/portage/net-misc/htun-0.9.6/work >>> Preparing source in /var/tmp/portage/net-misc/htun-0.9.6/work/htun-0.9.6 ... * Applying htun-0.9.6-glibc.patch ... [ ok ] * Applying htun-0.9.6-makefile.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-misc/htun-0.9.6/work/htun-0.9.6 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/net-misc/htun-0.9.6/work/htun-0.9.6 ... make -j1 -C src CC=x86_64-pc-linux-gnu-gcc make: Entering directory '/var/tmp/portage/net-misc/htun-0.9.6/work/htun-0.9.6/src' yacc -d -v gram.y flex parse.l x86_64-pc-linux-gnu-gcc -I../include -I. -D_REENTRANT -c y.tab.c In file included from gram.y:31:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ gram.y:356:15: warning: return type defaults to ‘int’ [-Wimplicit-int] static inline set_base64_user_pass( void ) ^ y.tab.c: In function ‘yyparse’: y.tab.c:497:23: warning: implicit declaration of function ‘yylex’ [-Wimplicit-function-declaration] if ((yychar = yylex()) < 0) yychar = 0; ^ gram.y:78:3: warning: ‘return’ with no value, in function returning non-void config: emptiness options_decl emptiness specific_decl { return; } ^ gram.y:79:3: warning: ‘return’ with no value, in function returning non-void | emptiness specific_decl emptiness options_decl { return; } ^ gram.y:80:3: warning: ‘return’ with no value, in function returning non-void | emptiness options_decl emptiness { return; /* client/server mode no ^ In file included from gram.y:33:0: y.tab.c: At top level: ../include/util.h:37:12: warning: inline function ‘xstrncasecmp’ declared but never defined inline int xstrncasecmp( const char *s1, const char *s2, int n ); ^ x86_64-pc-linux-gnu-gcc -I../include -I. -D_REENTRANT -c lex.yy.c In file included from parse.l:25:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ parse.l: In function ‘read_config’: parse.l:172:5: warning: implicit declaration of function ‘yyparse’ [-Wimplicit-function-declaration] x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -c -o common.o common.c In file included from common.c:40:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ common.c: In function ‘daemonize’: common.c:245:4: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] chdir("/"); ^ common.c:246:4: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("/dev/null","r",stdin); ^ common.c:247:4: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("/dev/null","w",stdout); ^ common.c:248:4: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("/dev/null","w",stderr); ^ common.c: In function ‘dropprivs’: common.c:284:5: warning: ignoring return value of ‘setreuid’, declared with attribute warn_unused_result [-Wunused-result] setreuid(-1,nonpriv->pw_uid); ^ common.c:285:5: warning: ignoring return value of ‘setregid’, declared with attribute warn_unused_result [-Wunused-result] setregid(-1,nonpriv->pw_gid); ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -c -o server.o server.c In file included from server.c:38:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ server.c: In function ‘dispatcher’: server.c:341:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ In file included from server.c:45:0: server.c: At top level: ../include/util.h:37:12: warning: inline function ‘xstrncasecmp’ declared but never defined inline int xstrncasecmp( const char *s1, const char *s2, int n ); ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -c -o client.o client.c In file included from client.c:43:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ client.c: In function ‘do_negotiate_protocol’: client.c:370:17: warning: variable ‘rv’ set but not used [-Wunused-but-set-variable] int p_sock, rv; ^ client.c: In function ‘open_recieve_channel’: client.c:759:17: warning: variable ‘port’ set but not used [-Wunused-but-set-variable] int i, len, port; ^ client.c:755:17: warning: variable ‘rv’ set but not used [-Wunused-but-set-variable] int p_sock, rv; ^ In file included from client.c:47:0: client.c: At top level: ../include/util.h:37:12: warning: inline function ‘xstrncasecmp’ declared but never defined inline int xstrncasecmp( const char *s1, const char *s2, int n ); ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -c -o queue.o queue.c In file included from queue.c:30:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ queue.c: In function ‘q_add’: queue.c:155:5: warning: null argument where non-null required (argument 1) [-Wnonnull] q_unlock(rc==-1?NULL:&q->reader_cond); ^ queue.c: In function ‘q_remove’: queue.c:186:33: warning: variable ‘ts’ set but not used [-Wunused-but-set-variable] struct timespec ts; ^ queue.c:223:5: warning: null argument where non-null required (argument 1) [-Wnonnull] q_unlock((data?&q->writer_cond:NULL)); ^ queue.c: In function ‘q_timedwait’: queue.c:263:5: warning: null argument where non-null required (argument 1) [-Wnonnull] q_unlock(NULL); ^ queue.c: In function ‘q_add’: queue.c:88:9: warning: variable ‘rc’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered] int rc=0; ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -c -o tpool.o tpool.c In file included from tpool.c:35:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ tpool.c: In function ‘tpool_thread’: tpool.c:297:10: warning: variable ‘soket’ set but not used [-Wunused-but-set-variable] int *soket; ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -c -o log.o log.c In file included from log.c:37:0: ../include/util.h:37:12: warning: inline function ‘xstrncasecmp’ declared but never defined inline int xstrncasecmp( const char *s1, const char *s2, int n ); ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -c -o main.o main.c In file included from main.c:36:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -c -o tun.o tun.c In file included from tun.c:37:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ In file included from tun.c:41:0: ../include/util.h:37:12: warning: inline function ‘xstrncasecmp’ declared but never defined inline int xstrncasecmp( const char *s1, const char *s2, int n ); ^ tun.c: In function ‘store_default_gw’: tun.c:69:5: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(buf,1023,fp); ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -c -o http.o http.c In file included from http.c:36:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ In file included from http.c:38:0: ../include/util.h:37:12: warning: inline function ‘xstrncasecmp’ declared but never defined inline int xstrncasecmp( const char *s1, const char *s2, int n ); ^ http.c: In function ‘proxy_request’: http.c:284:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(s, body, len); ^ http.c:289:5: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(clisock, srvhdrs, strlen(srvhdrs)); ^ http.c:292:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(clisock, body, len); ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -c -o util.o util.c In file included from util.c:37:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -c -o clidata.o clidata.c In file included from clidata.c:30:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ clidata.c: In function ‘free_clidata_list’: clidata.c:167:16: warning: variable ‘c’ set but not used [-Wunused-but-set-variable] clidata_t *c; ^ In file included from clidata.c:29:0: clidata.c: At top level: ../include/util.h:37:12: warning: inline function ‘xstrncasecmp’ declared but never defined inline int xstrncasecmp( const char *s1, const char *s2, int n ); ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -c -o iprange.o iprange.c In file included from iprange.c:30:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ iprange.c: In function ‘make_iprange’: iprange.c:47:25: warning: comparison is always false due to limited range of data type [-Wtype-limits] if( ret->net.s_addr == (unsigned long) -1 ) goto cleanup; ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -c -o srvproto2.o srvproto2.c In file included from srvproto2.c:33:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ In file included from srvproto2.c:36:0: ../include/util.h:37:12: warning: inline function ‘xstrncasecmp’ declared but never defined inline int xstrncasecmp( const char *s1, const char *s2, int n ); ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -c -o srvproto1.o srvproto1.c In file included from srvproto1.c:32:0: ../include/common.h:139:15: warning: built-in function ‘log’ declared as non-function extern log_t *log; ^ In file included from srvproto1.c:35:0: ../include/util.h:37:12: warning: inline function ‘xstrncasecmp’ declared but never defined inline int xstrncasecmp( const char *s1, const char *s2, int n ); ^ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I../include -I. -O -W -Wall -D_REENTRANT -o htund y.tab.o lex.yy.o common.o server.o client.o queue.o tpool.o log.o main.o tun.o http.o util.o clidata.o iprange.o srvproto2.o srvproto1.o -Wl,-O1 -Wl,--as-needed -lfl -lpthread lex.yy.o: In function `ip_ok': lex.yy.c:(.text+0x0): multiple definition of `ip_ok' y.tab.o:y.tab.c:(.text+0x0): first defined here lex.yy.o: In function `ip_used': lex.yy.c:(.text+0x6c): multiple definition of `ip_used' y.tab.o:y.tab.c:(.text+0x6c): first defined here common.o: In function `ip_ok': common.c:(.text+0x0): multiple definition of `ip_ok' y.tab.o:y.tab.c:(.text+0x0): first defined here common.o: In function `ip_used': common.c:(.text+0x24): multiple definition of `ip_used' y.tab.o:y.tab.c:(.text+0x6c): first defined here server.o: In function `ip_ok': server.c:(.text+0x9e7): multiple definition of `ip_ok' y.tab.o:y.tab.c:(.text+0x0): first defined here server.o: In function `ip_used': server.c:(.text+0xa0b): multiple definition of `ip_used' y.tab.o:y.tab.c:(.text+0x6c): first defined here server.o: In function `xstrcasecmp': server.c:(.text+0xa51): multiple definition of `xstrcasecmp' y.tab.o:y.tab.c:(.text+0xc8): first defined here server.o: In function `chomp': server.c:(.text+0xa64): multiple definition of `chomp' y.tab.o:y.tab.c:(.text+0xf2): first defined here client.o: In function `ip_ok': client.c:(.text+0x22c5): multiple definition of `ip_ok' y.tab.o:y.tab.c:(.text+0x0): first defined here client.o: In function `ip_used': client.c:(.text+0x22e9): multiple definition of `ip_used' y.tab.o:y.tab.c:(.text+0x6c): first defined here client.o: In function `xstrcasecmp': client.c:(.text+0x232f): multiple definition of `xstrcasecmp' y.tab.o:y.tab.c:(.text+0xc8): first defined here client.o: In function `chomp': client.c:(.text+0x2342): multiple definition of `chomp' y.tab.o:y.tab.c:(.text+0xf2): first defined here queue.o: In function `ip_ok': queue.c:(.text+0x67): multiple definition of `ip_ok' y.tab.o:y.tab.c:(.text+0x0): first defined here queue.o: In function `ip_used': queue.c:(.text+0x8b): multiple definition of `ip_used' y.tab.o:y.tab.c:(.text+0x6c): first defined here tpool.o: In function `ip_ok': tpool.c:(.text+0x102): multiple definition of `ip_ok' y.tab.o:y.tab.c:(.text+0x0): first defined here tpool.o: In function `ip_used': tpool.c:(.text+0x126): multiple definition of `ip_used' y.tab.o:y.tab.c:(.text+0x6c): first defined here log.o: In function `xstrcasecmp': log.c:(.text+0x0): multiple definition of `xstrcasecmp' y.tab.o:y.tab.c:(.text+0xc8): first defined here log.o: In function `chomp': log.c:(.text+0x13): multiple definition of `chomp' y.tab.o:y.tab.c:(.text+0xf2): first defined here main.o: In function `ip_ok': main.c:(.text+0x3f): multiple definition of `ip_ok' y.tab.o:y.tab.c:(.text+0x0): first defined here main.o: In function `ip_used': main.c:(.text+0x63): multiple definition of `ip_used' y.tab.o:y.tab.c:(.text+0x6c): first defined here tun.o: In function `ip_ok': tun.c:(.text+0x0): multiple definition of `ip_ok' y.tab.o:y.tab.c:(.text+0x0): first defined here tun.o: In function `ip_used': tun.c:(.text+0x24): multiple definition of `ip_used' y.tab.o:y.tab.c:(.text+0x6c): first defined here tun.o: In function `xstrcasecmp': tun.c:(.text+0x6a): multiple definition of `xstrcasecmp' y.tab.o:y.tab.c:(.text+0xc8): first defined here tun.o: In function `chomp': tun.c:(.text+0x7d): multiple definition of `chomp' y.tab.o:y.tab.c:(.text+0xf2): first defined here http.o: In function `ip_ok': http.c:(.text+0x0): multiple definition of `ip_ok' y.tab.o:y.tab.c:(.text+0x0): first defined here http.o: In function `ip_used': http.c:(.text+0x24): multiple definition of `ip_used' y.tab.o:y.tab.c:(.text+0x6c): first defined here http.o: In function `xstrcasecmp': http.c:(.text+0x6a): multiple definition of `xstrcasecmp' y.tab.o:y.tab.c:(.text+0xc8): first defined here http.o: In function `chomp': http.c:(.text+0x7d): multiple definition of `chomp' y.tab.o:y.tab.c:(.text+0xf2): first defined here util.o: In function `xstrcasecmp': util.c:(.text+0x0): multiple definition of `xstrcasecmp' y.tab.o:y.tab.c:(.text+0xc8): first defined here util.o: In function `chomp': util.c:(.text+0x90): multiple definition of `chomp' y.tab.o:y.tab.c:(.text+0xf2): first defined here util.o: In function `ip_ok': util.c:(.text+0xdc): multiple definition of `ip_ok' y.tab.o:y.tab.c:(.text+0x0): first defined here util.o: In function `ip_used': util.c:(.text+0x100): multiple definition of `ip_used' y.tab.o:y.tab.c:(.text+0x6c): first defined here clidata.o: In function `ip_ok': clidata.c:(.text+0x0): multiple definition of `ip_ok' y.tab.o:y.tab.c:(.text+0x0): first defined here clidata.o: In function `ip_used': clidata.c:(.text+0x24): multiple definition of `ip_used' y.tab.o:y.tab.c:(.text+0x6c): first defined here clidata.o: In function `xstrcasecmp': clidata.c:(.text+0x6a): multiple definition of `xstrcasecmp' y.tab.o:y.tab.c:(.text+0xc8): first defined here clidata.o: In function `chomp': clidata.c:(.text+0x7d): multiple definition of `chomp' y.tab.o:y.tab.c:(.text+0xf2): first defined here iprange.o: In function `ip_ok': iprange.c:(.text+0x0): multiple definition of `ip_ok' y.tab.o:y.tab.c:(.text+0x0): first defined here iprange.o: In function `ip_used': iprange.c:(.text+0x24): multiple definition of `ip_used' y.tab.o:y.tab.c:(.text+0x6c): first defined here srvproto2.o: In function `ip_ok': srvproto2.c:(.text+0x0): multiple definition of `ip_ok' y.tab.o:y.tab.c:(.text+0x0): first defined here srvproto2.o: In function `ip_used': srvproto2.c:(.text+0x24): multiple definition of `ip_used' y.tab.o:y.tab.c:(.text+0x6c): first defined here srvproto2.o: In function `xstrcasecmp': srvproto2.c:(.text+0x6a): multiple definition of `xstrcasecmp' y.tab.o:y.tab.c:(.text+0xc8): first defined here srvproto2.o: In function `chomp': srvproto2.c:(.text+0x7d): multiple definition of `chomp' y.tab.o:y.tab.c:(.text+0xf2): first defined here srvproto1.o: In function `ip_ok': srvproto1.c:(.text+0x0): multiple definition of `ip_ok' y.tab.o:y.tab.c:(.text+0x0): first defined here srvproto1.o: In function `ip_used': srvproto1.c:(.text+0x24): multiple definition of `ip_used' y.tab.o:y.tab.c:(.text+0x6c): first defined here srvproto1.o: In function `xstrcasecmp': srvproto1.c:(.text+0x6a): multiple definition of `xstrcasecmp' y.tab.o:y.tab.c:(.text+0xc8): first defined here srvproto1.o: In function `chomp': srvproto1.c:(.text+0x7d): multiple definition of `chomp' y.tab.o:y.tab.c:(.text+0xf2): first defined here collect2: error: ld returned 1 exit status Makefile:48: recipe for target 'htund' failed make: *** [htund] Error 1 make: Leaving directory '/var/tmp/portage/net-misc/htun-0.9.6/work/htun-0.9.6/src' * ERROR: net-misc/htun-0.9.6::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-misc/htun-0.9.6::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-misc/htun-0.9.6::gentoo'`. * The complete build log is located at '/var/log/portage/net-misc:htun-0.9.6:20160110-025826.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-misc/htun-0.9.6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/htun-0.9.6/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/htun-0.9.6/work/htun-0.9.6' * S: '/var/tmp/portage/net-misc/htun-0.9.6/work/htun-0.9.6'