Build of httptunnel with musl toolchain

The build took 00h 01m 36s and was SUCCESSFUL.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
4,669 ansic
338 sh
66 makefile
5,073 total

The process tree of the build process is here.

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

There were existing files in /sysroot, using those
# /sysroot/lib
# /sysroot/share
# /sysroot/bin
# /sysroot/include
# /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=clang CXX=clang++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: httptunnel 3.3-5 (Tue Apr 4 22:54:21 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# creating cache ./config.cache
# checking for a BSD compatible install... /usr/bin/install -c
# checking whether build environment is sane... yes
# checking whether make sets ${MAKE}... yes
# checking for working aclocal... found
# checking for working autoconf... found
# checking for working automake... found
# checking for working autoheader... found
# checking for working makeinfo... found
# checking for mawk... no
# checking for gawk... gawk
# checking for gcc... clang
# checking whether the C compiler (clang -O2 -Wall -fomit-frame-pointer ) works... yes
# checking whether the C compiler (clang -O2 -Wall -fomit-frame-pointer ) is a cross-compiler... yes
# checking whether we are using GNU C... yes
# checking whether clang accepts -g... yes
# checking for a BSD compatible install... /usr/bin/install -c
# checking whether ln -s works... yes
# checking for ranlib... ranlib
# checking for gethostent... yes
# checking for setsockopt... yes
# checking how to run the C preprocessor... clang -E
# checking for ANSI C header files... yes
# checking for fcntl.h... yes
# checking for syslog.h... yes
# checking for unistd.h... yes
# checking for sys/poll.h... no
# checking for working const... yes
# checking for inline... inline
# checking for size_t... yes
# checking for socklen_t... yes
# checking whether INADDR_NONE is defined... yes
# checking size of char... 1
# checking size of short... 2
# checking size of int... 4
# checking size of long... 4
# checking size of long long... 8
# checking for 8-bit clean memcmp... no
# checking return type of signal handlers... void
# checking for vprintf... yes
# checking for socket... yes
# checking for strdup... yes
# checking for strerror... yes
# checking for daemon... yes
# checking for vsyslog... yes
# checking for poll... yes
# checking for select... yes
# checking for endprotoent... yes
# checking for vsnprintf... yes
# checking for syslog... yes
# updating cache ./config.cache
# creating ./config.status
# creating Makefile
# creating port/Makefile
# creating port/sys/Makefile
# creating config.h
# make all-recursive
# make[1]: Entering directory '/tmp/httptunnel/src/httptunnel-3.3'
# Making all in port
# make[2]: Entering directory '/tmp/httptunnel/src/httptunnel-3.3/port'
# Making all in sys
# make[3]: Entering directory '/tmp/httptunnel/src/httptunnel-3.3/port/sys'
# make[3]: Nothing to be done for 'all'.
# make[3]: Leaving directory '/tmp/httptunnel/src/httptunnel-3.3/port/sys'
# make[3]: Entering directory '/tmp/httptunnel/src/httptunnel-3.3/port'
# clang -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -fomit-frame-pointer -c poll.c
# clang -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -fomit-frame-pointer -c daemon.c
# clang -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -fomit-frame-pointer -c vsyslog.c
# clang -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -fomit-frame-pointer -c endprotoent.c
# clang -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -fomit-frame-pointer -c getopt.c
# clang -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -fomit-frame-pointer -c getopt1.c
# clang -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -fomit-frame-pointer -c vsnprintf.c
# rm -f libport.a
# ar cru libport.a poll.o daemon.o vsyslog.o endprotoent.o getopt.o getopt1.o vsnprintf.o
# /r: `u' modifier ignored since `D' is the default (see `U')
# ranlib libport.a
# make[3]: Leaving directory '/tmp/httptunnel/src/httptunnel-3.3/port'
# make[2]: Leaving directory '/tmp/httptunnel/src/httptunnel-3.3/port'
# make[2]: Entering directory '/tmp/httptunnel/src/httptunnel-3.3'
# clang -DHAVE_CONFIG_H -I. -I. -I. -Iport -O2 -Wall -fomit-frame-pointer -c htc.c
# clang -DHAVE_CONFIG_H -I. -I. -I. -Iport -O2 -Wall -fomit-frame-pointer -c common.c
# clang -DHAVE_CONFIG_H -I. -I. -I. -Iport -O2 -Wall -fomit-frame-pointer -c tunnel.c
# clang -DHAVE_CONFIG_H -I. -I. -I. -Iport -O2 -Wall -fomit-frame-pointer -c http.c
# In file included from htc.c:18:
# ./common.h:81:67: warning: too many arguments in call to 'log_annoying'
# log_annoying ("read (%d, %p, %d) ...", fd, rbuf + n, len - n);
# ~~~~~~~~~~~~ ^
# ./common.h:83:34: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", m);
# ~~~~~~~~~~~~ ^
# ./common.h:113:69: warning: too many arguments in call to 'log_annoying'
# log_annoying ("write (%d, %p, %d) ...", fd, wdata + n, len - n);
# ~~~~~~~~~~~~ ^
# ./common.h:115:34: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", m);
# ~~~~~~~~~~~~ ^
# ./common.h:162:34: warning: too many arguments in call to 'log_debug'
# log_debug ("%s closed", type);
# ~~~~~~~~~ ^
# In file included from tunnel.c:21:
# ./common.h:81:67: warning: too many arguments in call to 'log_annoying'
# log_annoying ("read (%d, %p, %d) ...", fd, rbuf + n, len - n);
# ~~~~~~~~~~~~ ^
# ./common.h:83:34: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", m);
# ~~~~~~~~~~~~ ^
# ./common.h:113:69: warning: too many arguments in call to 'log_annoying'
# log_annoying ("write (%d, %p, %d) ...", fd, wdata + n, len - n);
# ~~~~~~~~~~~~ ^
# ./common.h:115:34: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", m);
# ~~~~~~~~~~~~ ^
# ./common.h:162:34: warning: too many arguments in call to 'log_debug'
# log_debug ("%s closed", type);
# ~~~~~~~~~ ^
# tunnel.c:157:24: warning: too many arguments in call to 'log_debug'
# htc.c strerror (errno));
# : ^446
# :64: warning: too many arguments in call to 'log_debug'
# log_debug ("server_socket (%d) = %d", arg.forward_port, s);
# ~~~~~~~~~ ^
# tunnel.c:164:5: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
# &n);
# ^~
# /sysroot/include/sys/socket.h:314:71: note: passing argument to parameter here
# htc.cint getsockopt (int, int, int, void *__restrict, socklen_t *__restrict);
# : ^467
# :58: warning: too many arguments in call to 'log_debug'
# tunnel.c: log_debug ("open_device (\"%s\") = %d", arg.device, fd);165
# : ~~~~~~~~~ ^62
# : warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_out_setsockopts: SO_RCVLOWAT: %d", i);
# ~~~~~~~~~ ^
# htc.c:487:68: warning: too many arguments in call to 'log_debug'
# log_debug ("waiting for connection on port %d", arg.forward_port);
# ~~~~~~~~~ ^
# htc.c:489:63: warning: too many arguments in call to 'log_debug'
# tunnel.c:191:26: warning log_debug ("wait_for_connection_on_socket (%d) = %d", s, fd);:
# too many arguments in call to 'log_debug' ~~~~~~~~~ ^
#
# strerror (errno));
# ^
# tunnel.c:198:7: warning: htc.cpassing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
# :507:34 &n);:
# ^~warning
# : too many arguments in call to 'log_debug'/sysroot/include/sys/socket.h
# :314:71: note: passing argument to parameter here
# log_debug ("using stdin as fd");
# ~~~~~~~~~ ^
# int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict);
# ^
# tunnel.c:199:67: warning: too many arguments in call to 'log_debug'
# htc.c: log_debug ("tunnel_out_setsockopts: non-fatal SO_SNDLOWAT: %d", i);518
# : ~~~~~~~~~ ^41
# : warning: too many arguments in call to 'log_debug'
# log_debug ("creating a new tunnel");
# ~~~~~~~~~ ^
# tunnel.chtc.c::218531::2222:: warningwarning: : too many arguments in call to 'log_debug'too many arguments in call to 'log_debug'
#
# strerror (errno)); strerror (errno));
#
# ^ ^
#
# htc.c:535:67: warning: too many arguments in call to 'log_debug'tunnel.c
# :225:3: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
# &n); log_debug ("tunnel_setopt keep_alive error: %s", strerror (errno));
#
# ^~ ~~~~~~~~~ ^
#
# /sysroot/include/sys/socket.h:314:71: note: passing argument to parameter here
# int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict);
# ^htc.c
# :540:22: warning: too many arguments in call to 'log_debug'
# In file included from strerror (errno));
# tunnel.c ^http.c:
# 227::1530:
# : ./common.hwarning:: too many arguments in call to 'log_debug'81
# :67: warning: l.l_onoff, l.l_linger);too many arguments in call to 'log_annoying'
#
# ^
# log_annoying ("read (%d, %p, %d) ...", fd, rbuf + n, len - n);
# ~~~~~~~~~~~~ ^
# tunnel.c:247:26: warning: too many arguments in call to 'log_debug'
# strerror (errno));
# ^
# ./common.h:83:34: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", m);
# ~~~~~~~~~~~~ ^
# tunnel.c:254:7: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
# &n);
# ^~
# /sysroot/include/sys/socket.h:314:71: note: passing argument to parameter here
# int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict);
# ^
# tunnel.c:255:67: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_out_setsockopts: non-fatal TCP_NODELAY: %d", i);
# ~~~~~~~~~ ^
# htc.c:597:7: warning: implicit declaration of function 'time' is invalid in C99 [-Wimplicit-function-declaration]
# time (&last_tunnel_write);
# ^
# tunnel.c:296:22: warning: too many arguments in call to 'log_debug'
# strerror (errno));
# ^
# tunnel.c:303:3: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
# &n);
# ^~
# /sysroot/include/sys/socket.h:314:71: note: passing argument to parameter here
# int getsockopt (int, int, int, void *__restrict, socklen_t *__restrict);./common.h
# ^
# :113:69: warning: too many arguments in call to 'log_annoying'tunnel.c
# :304:htc.c61:: 623warning:: 31too many arguments in call to 'log_debug':
# warning: too many arguments in call to 'log_annoying'
# log_annoying ("write (%d, %p, %d) ...", fd, wdata + n, len - n); log_debug ("tunnel_out_setsockopts: SO_KEEPALIVE: %d", i);
#
# ~~~~~~~~~ ^ ~~~~~~~~~~~~ ^
#
# log_annoying ("poll () ...");
# ~~~~~~~~~~~~ ^
# htc.c:625:31: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", n);
# ./common.h ~~~~~~~~~~~~ ^
# :115:34: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", m);
# ~~~~~~~~~~~~ ^
# htc.c:633:39: warning: too many arguments in call to 'log_verbose'
# log_verbose ("poll() timed out");
# ~~~~~~~~~~~ ^
# tunnel.c:331:58: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_out_disconnect: output disconnected");
# ~~~~~~~~~ ^
# htc.c:tunnel.c656::37343:: 56warning:: too many arguments in call to 'log_debug'warning
# : too many arguments in call to 'log_debug'
# log_debug ("destroying tunnel");
# ~~~~~~~~~ ^
# log_debug ("tunnel_in_disconnect: input disconnected");
# ~~~~~~~~~ ^
# htc.ctunnel.c::670353::3757:: warningwarning: : too many arguments in call to 'log_debug'too many arguments in call to 'log_debug'
#
# log_debug ("closing server socket");
# ~~~~~~~~~ ^
# log_debug ("tunnel_out_connect: already connected");
# ~~~~~~~~~ ^
# tunnel.c:394:52: ./common.hwarning: too many arguments in call to 'log_debug'
# :162:34: warning: too many arguments in call to 'log_debug' log_debug ("tunnel_out_connect: output connected");
#
# ~~~~~~~~~ ^
# log_debug ("%s closed", type);
# ~~~~~~~~~ ^
# tunnel.c:405:37: warning: too many arguments in call to 'log_verbose'
# log_verbose ("tunnel_in_connect()");
# ~~~~~~~~~~~ ^
# tunnel.c:476:50: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_in_connect: input connected");
# ~~~~~~~~~ ^
# http.c:45:27: warning: format specifies type 'int' but the argument has type 'ssize_t' (aka 'long') [-Wformat]
# sprintf (str, "%d", length);
# ~~ ^~~~~~
# %zd
# tunnel.c:512:32: warning: too many arguments in call to 'log_debug'
# tunnel->max_connection_age);
# ^
# tunnel.c:519:52: warning: too many arguments in call to 'log_debug'
# tunnel->content_length - tunnel->bytes - 1);
# ^
# tunnel.c:547:59: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_write_request: closing old connection");
# ~~~~~~~~~ ^
# tunnel.c:624:39: warning: too many arguments in call to 'log_verbose'
# REQ_TO_STRING (request), length);
# ^
# tunnel.c:627:39: warning: too many arguments in call to 'log_debug'
# REQ_TO_STRING (request), length);
# ^
# tunnel.c:632:69: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_write_request: %s", REQ_TO_STRING (request));
# ~~~~~~~~~ ^
# tunnel.c:636:24: warning: too many arguments in call to 'log_annoying'
# tunnel->out_total_raw);
# ^
# tunnel.c:662:34: warning: too many arguments in call to 'log_verbose'
# log_verbose ("tunnel_connect()");
# ~~~~~~~~~~~ ^
# tunnel.c:727:75: warning: too many arguments in call to 'log_verbose'
# log_verbose ("tunnel_write: out_total_data = %u", tunnel->out_total_data);
# ~~~~~~~~~~~ ^
# tunnel.c:756:46: warning: too many arguments in call to 'log_debug'
# tunnel->content_length - tunnel->bytes - 1);
# ^
# tunnel.c:760:56: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_close: write TUNNEL_CLOSE request");
# ~~~~~~~~~ ^
# tunnel.c:765:66: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_close: reading trailing data from input ...");
# ~~~~~~~~~ ^
# tunnel.c:776:41: warning: too many arguments in call to 'log_annoying'
# tunnel->in_fd, buf, sizeof buf, n);
# ^
# tunnel.c:782:64: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_close: ... error: %s", strerror (errno));
# ~~~~~~~~~ ^
# tunnel.c:784:57: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_close: ... done (tunnel closed)");
# ~~~~~~~~~ ^
# tunnel.c:787:22: warning: too many arguments in call to 'log_debug'
# log_debug ("POLLHUP");
# ~~~~~~~~~ ^
# tunnel.c:789:22: warning: too many arguments in call to 'log_debug'
# log_debug ("POLLERR");
# ~~~~~~~~~ ^
# tunnel.c:791:23: warning: too many arguments in call to 'log_debug'
# log_debug ("POLLNVAL");
# ~~~~~~~~~ ^
# http.c:329:11: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# h->name = data;
# ^ ~~~~
# http.c:336:12: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# h->value = data;
# ^ ~~~~
# http.c:350:56: warning: too many arguments in call to 'log_verbose'
# log_verbose ("parse_header: %s:%s", h->name, h->value);
# ~~~~~~~~~~~ ^
# tunnel.c:814:64: warning: too many arguments in call to 'log_annoying'
# log_annoying ("read (%d, %p, %d) ...", tunnel->in_fd, &req, 1);
# ~~~~~~~~~~~~ ^
# tunnel.c:816:30: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", n);
# ~~~~~~~~~~~~ ^
# tunnel.c:826:66: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_read_request: connection closed by peer");
# ~~~~~~~~~ ^
# tunnel.c:838:64: warning: too many arguments in call to 'log_annoying'
# log_annoying ("request = 0x%x (%s)", req, REQ_TO_STRING (req));
# ~~~~~~~~~~~~ ^
# tunnel.c:843:27: warning: too many arguments in call to 'log_annoying'
# tunnel->in_total_raw);
# ^
# tunnel.c:844:65: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_read_request: %s", REQ_TO_STRING (req));
# ~~~~~~~~~ ^
# tunnel.c:861:35: warning: too many arguments in call to 'log_annoying'
# log_annoying ("length = %d", len);
# ~~~~~~~~~~~~ ^
# tunnel.c:876:27: warning: too many arguments in call to 'log_annoying'
# tunnel->in_total_raw);
# ^
# tunnel.c:881:28: warning: too many arguments in call to 'log_verbose'
# REQ_TO_STRING (req), len);
# ^
# tunnel.c:884:33: warning: too many arguments in call to 'log_debug'
# REQ_TO_STRING (req), len);
# ^
# http.ctunnel.c::506934::3542:: warningwarning: : passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]passing 'char [65536]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
#
# if (tunnel_read_request (tunnel, &req, tunnel->buf, &len) <= 0)
# ^~~~~~~~~~~ response->major_version = atoi (data);
#
# ^~~~tunnel.c
# :808:23: note: passing argument to parameter 'buf' here
# /sysroot/include/stdlib.h: unsigned char *buf, size_t *length)21
# : ^23
# : note: passing argument to parameter here
# int atoi (const char *);
# ^
# tunnel.c:936:64: warning: too many arguments in call to 'log_annoying'
# log_annoying ("tunnel_read_request returned <= 0, returning -1");
# ~~~~~~~~~~~~ ^
# http.c:508:32: warning: too many arguments in call to 'log_verbose'
# response->major_version);
# ^
# tunnel.c:950:76: warning: too many arguments in call to 'log_verbose'
# log_verbose ("tunnel_read: in_total_data = %u", tunnel->in_total_data);
# ~~~~~~~~~~~ ^
# http.c:519:35In file included from : warningcommon.c: :passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]20
# :
# ./common.h:81:67: warning: too many arguments in call to 'log_annoying' response->minor_version = atoi (data);
#
# ^~~~
# /sysroot/include/stdlib.h:21:23: note: passing argument to parameter here
# int atoi (const char *);
# ^
# log_annoying ("read (%d, %p, %d) ...", fd, rbuf + n, len - n);http.c
# : ~~~~~~~~~~~~ ^521
# :32: warning: too many arguments in call to 'log_verbose'
# response->minor_version);
# ^
# ./common.h:83:34: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", m);
# ~~~~~~~~~~~~ ^
# http.c:532:33: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# response->status_code = atoi (data);
# ^~~~
# /sysroot/include/stdlib.h:21:23: note: passing argument to parameter here
# int atoi (const char *);
# ^
# http.c:534:30: warning: too many arguments in call to 'log_verbose'
# response->status_code);
# ^
# http.c:545:28: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# response->status_message = data;
# ^ ~~~~
# http.c:547:33: warning: too many arguments in call to 'log_verbose'
# tunnel.c:998:29: warning: too many arguments in call to 'log_verbose' response->status_message);
#
# ^
# tunnel->server_socket);
# ^
# tunnel.c:1001:./common.h29: warning:: 113too many arguments in call to 'log_verbose':
# 69: warning: tunnel->server_socket);too many arguments in call to 'log_annoying'
#
# ^
# log_annoying ("write (%d, %p, %d) ...", fd, wdata + n, len - n);
# ~~~~~~~~~~~~ ^
# ./common.h:115:34: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", m);
# ~~~~~~~~~~~~ ^
# tunnel.c:1085:61: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_accept: tunnel already established");
# ~~~~~~~~~ ^
# tunnel.c:1115:68: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
# ./common.h s = accept (tunnel->server_socket, (struct sockaddr *)&addr, &len);:
# 162 ^~~~:
# 34/sysroot/include/sys/socket.h:: 301warning:: 68: too many arguments in call to 'log_debug'note
# : passing argument to parameter here
# int accept (int, struct sockaddr *__restrict, socklen_t *__restrict);
# ^
# log_debug ("%s closed", type);
# ~~~~~~~~~ ^
# tunnel.c:1158:51: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_accept: input connected");
# ~~~~~~~~~ ^
# tunnel.c:1191:10: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
# tunnel->content_length + 1);
# ^~~~~~~~~~~~~~~~~~~~~~~~~~
# tunnel.c:1209:49: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_accept: output connected");
# ~~~~~~~~~ ^
# tunnel.c:1222:50: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_accept: closing connection");
# ~~~~~~~~~ ^
# tunnel.c:1237:53: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_accept: input disconnected");
# ~~~~~~~~~ ^
# tunnel.c:1133:27: warning: comparison of constant -1 with expression of type 'Http_method' is always false [-Wtautological-constant-out-of-range-compare]
# if (request->method == -1)
# ~~~~~~~~~~~~~~~ ^ ~~
# http.c:654:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# request->method = http_string_to_method (data, n - 1);
# ^~~~
# http.c:157:36: note: passing argument to parameter 'method' here
# http_string_to_method (const char *method, size_t n)
# ^
# http.c:663:59: warning: too many arguments in call to 'log_verbose'
# log_verbose ("http_parse_request: method = \"%s\"", data);
# ~~~~~~~~~~~ ^
# http.c:674:16: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# request->uri = data;
# ^ ~~~~
# http.c:676:64: warning: too many arguments in call to 'log_verbose'
# log_verbose ("http_parse_request: uri = \"%s\"", request->uri);
# ~~~~~~~~~~~ ^
# http.c:701:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# request->major_version = atoi (data);
# ^~~~
# /sysroot/include/stdlib.h:21:23: note: passing argument to parameter here
# int atoi (const char *);
# ^
# http.c:703:31: warning: too many arguments in call to 'log_verbose'
# request->major_version);
# ^
# http.c:714:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# request->minor_version = atoi (data);
# ^~~~
# /sysroot/include/stdlib.h:21:23: note: passing argument to parameter here
# int atoi (const char *);
# ^
# http.c:716:31: warning: too many arguments in call to 'log_verbose'
# request->minor_version);
# ^
# http.c:655:23: warning: comparison of constant -1 with expression of type 'Http_method' is always false [-Wtautological-constant-out-of-range-compare]
# if (request->method == -1)
# ~~~~~~~~~~~~~~~ ^ ~~
# common.c:173:64: warning: too many arguments in call to 'log_annoying'
# log_annoying ("set_address: gethostbyname (\"%s\")", host);
# ~~~~~~~~~~~~ ^
# http.c:760:45: warning: too many arguments in call to 'log_verbose'
# log_verbose ("http_write_request: %s", str);
# ~~~~~~~~~~~ ^
# common.c:175:49: warning: too many arguments in call to 'log_annoying'
# log_annoying ("set_address: ent = %p", ent);
# ~~~~~~~~~~~~ ^
# tunnel.c:1312:23: warning: too many arguments in call to 'log_verbose'
# content_length);
# ^
# common.c:185:32: warning: too many arguments in call to 'log_annoying'
# ntohl (ip) & 0xff);
# ^
# common.c:272:72: warning: too many arguments in call to 'log_annoying'
# log_annoying ("tunnel_write (%p, %p, %d) = %d", tunnel, buf, n, m);
# ~~~~~~~~~~~~ ^
# common.c:302:61: warning: too many arguments in call to 'log_annoying'
# log_annoying ("handle_tunnel_input: tunnel_read() = %d\n", n);
# ~~~~~~~~~~~~ ^
# common.c:318:74: warning: too many arguments in call to 'log_annoying'
# log_annoying ("write_all (%d, %p, %d) = %d", fd ? fd : 1, buf, n, m);
# ~~~~~~~~~~~~ ^
# 11 warnings generated.
# clang -DHAVE_CONFIG_H -I. -I. -I. -Iport -O2 -Wall -fomit-frame-pointer -c base64.c
# In file included from base64.c:11:
# ./common.h:81:67: warning: too many arguments in call to 'log_annoying'
# log_annoying ("read (%d, %p, %d) ...", fd, rbuf + n, len - n);
# ~~~~~~~~~~~~ ^
# ./common.h:83:34: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", m);
# ~~~~~~~~~~~~ ^
# ./common.h:113:69: warning: too many arguments in call to 'log_annoying'
# log_annoying ("write (%d, %p, %d) ...", fd, wdata + n, len - n);
# ~~~~~~~~~~~~ ^
# ./common.h:115:34: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", m);
# ~~~~~~~~~~~~ ^
# ./common.h:162:34: warning: too many arguments in call to 'log_debug'
# log_debug ("%s closed", type);
# ~~~~~~~~~ ^
# base64.c:44:7: warning: assigning to 'const unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# end = (char *)data + length - 3;
# ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
# base64.c:91:9: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *code = buf - n;
# ^ ~~~~~~~
# 20 warnings generated.
# clang -DHAVE_CONFIG_H -I. -I. -I. -Iport -O2 -Wall -fomit-frame-pointer -c hts.c
# 27 warnings generated.
# 7 warnings generated.
# In file included from hts.c:17:
# ./common.h:81:67: warning: too many arguments in call to 'log_annoying'
# log_annoying ("read (%d, %p, %d) ...", fd, rbuf + n, len - n);
# ~~~~~~~~~~~~ ^
# ./common.h:83:34: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", m);
# ~~~~~~~~~~~~ ^
# ./common.h:113:69: warning: too many arguments in call to 'log_annoying'
# log_annoying ("write (%d, %p, %d) ...", fd, wdata + n, len - n);
# ~~~~~~~~~~~~ ^
# ./common.h:115:34: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", m);
# ~~~~~~~~~~~~ ^
# ./common.h:162:34: warning: too many arguments in call to 'log_debug'
# log_debug ("%s closed", type);
# ~~~~~~~~~ ^
# hts.c:321:25: warning: too many arguments in call to 'log_debug'
# strerror (errno));
# ^
# hts.c:325:70: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_setopt keep_alive error: %s", strerror (errno));
# ~~~~~~~~~ ^
# hts.c:329:78: warning: too many arguments in call to 'log_debug'
# log_debug ("tunnel_setopt max_connection_age error: %s", strerror (errno));
# ~~~~~~~~~ ^
# hts.c:360:49: warning: too many arguments in call to 'log_debug'
# log_debug ("waiting for tunnel connection");
# ~~~~~~~~~ ^
# hts.c:365:58: warning: too many arguments in call to 'log_debug'
# log_debug ("open_device (\"%s\") = %d", arg.device, fd);
# ~~~~~~~~~ ^
# hts.c:383:34: warning: too many arguments in call to 'log_debug'
# log_debug ("using stdin as fd");
# ~~~~~~~~~ ^
# hts.c:413:42: warning: too many arguments in call to 'log_debug'
# arg.forward_host, arg.forward_port, fd);
# ^
# hts.c:433:7: warning: implicit declaration of function 'time' is invalid in C99 [-Wimplicit-function-declaration]
# time (&last_tunnel_write);
# ^
# hts.c:451:31: warning: too many arguments in call to 'log_annoying'
# log_annoying ("poll () ...");
# ~~~~~~~~~~~~ ^
# hts.c:453:31: warning: too many arguments in call to 'log_annoying'
# log_annoying ("... = %d", n);
# ~~~~~~~~~~~~ ^
# hts.c:461:39: warning: too many arguments in call to 'log_verbose'
# log_verbose ("poll() timed out");
# ~~~~~~~~~~~ ^
# hts.c:468:48: warning: too many arguments in call to 'log_annoying'
# pollfd[0].revents, pollfd[1].revents, POLLIN);
# ^
# hts.c:478:34: warning: too many arguments in call to 'log_debug'
# log_debug ("closing tunnel");
# ~~~~~~~~~ ^
# hts.c:487:33: warning: too many arguments in call to 'log_debug'
# log_debug ("destroying tunnel");
# ~~~~~~~~~ ^
# 68 warnings generated.
# clang -O2 -Wall -fomit-frame-pointer -o htc htc.o common.o tunnel.o http.o base64.o -Lport -lport
# 19 warnings generated.
# clang -O2 -Wall -fomit-frame-pointer -o hts hts.o common.o tunnel.o http.o -Lport -lport
# make[2]: Leaving directory '/tmp/httptunnel/src/httptunnel-3.3'
# make[1]: Leaving directory '/tmp/httptunnel/src/httptunnel-3.3'
# ==> Entering fakeroot environment...
# ==> Starting package()...
# Making install in port
# make[1]: Entering directory '/tmp/httptunnel/src/httptunnel-3.3/port'
# Making install in sys
# make[2]: Entering directory '/tmp/httptunnel/src/httptunnel-3.3/port/sys'
# make[3]: Entering directory '/tmp/httptunnel/src/httptunnel-3.3/port/sys'
# make[3]: Nothing to be done for 'install-exec-am'.
# make[3]: Nothing to be done for 'install-data-am'.
# make[3]: Leaving directory '/tmp/httptunnel/src/httptunnel-3.3/port/sys'
# make[2]: Leaving directory '/tmp/httptunnel/src/httptunnel-3.3/port/sys'
# make[2]: Entering directory '/tmp/httptunnel/src/httptunnel-3.3/port'
# make[3]: Entering directory '/tmp/httptunnel/src/httptunnel-3.3/port'
# make[3]: Nothing to be done for 'install-exec-am'.
# make[3]: Nothing to be done for 'install-data-am'.
# make[3]: Leaving directory '/tmp/httptunnel/src/httptunnel-3.3/port'
# make[2]: Leaving directory '/tmp/httptunnel/src/httptunnel-3.3/port'
# make[1]: Leaving directory '/tmp/httptunnel/src/httptunnel-3.3/port'
# make[1]: Entering directory '/tmp/httptunnel/src/httptunnel-3.3'
# make[2]: Entering directory '/tmp/httptunnel/src/httptunnel-3.3'
# make install-man1
# /bin/sh ./mkinstalldirs /tmp/httptunnel/pkg/httptunnel/usr/bin
# make[3]: Entering directory '/tmp/httptunnel/src/httptunnel-3.3'
# /bin/sh ./mkinstalldirs /tmp/httptunnel/pkg/httptunnel/usr/share/man/man1
# mkdir /tmp/httptunnel/pkg/httptunnel/usr
# mkdir /tmp/httptunnel/pkg/httptunnel/usr/bin
# mkdir /tmp/httptunnel/pkg/httptunnel/usr/share
# mkdir /tmp/httptunnel/pkg/httptunnel/usr/share/man
# mkdir /tmp/httptunnel/pkg/httptunnel/usr/share/man/man1
# /usr/bin/install -c htc /tmp/httptunnel/pkg/httptunnel/usr/bin/htc
# /usr/bin/install -c -m 644 ./hts.1 /tmp/httptunnel/pkg/httptunnel/usr/share/man/man1/hts.1
# /usr/bin/install -c hts /tmp/httptunnel/pkg/httptunnel/usr/bin/hts
# /usr/bin/install -c -m 644 ./htc.1 /tmp/httptunnel/pkg/httptunnel/usr/share/man/man1/htc.1
# make[3]: Leaving directory '/tmp/httptunnel/src/httptunnel-3.3'
# make[2]: Leaving directory '/tmp/httptunnel/src/httptunnel-3.3'
# make[1]: Leaving directory '/tmp/httptunnel/src/httptunnel-3.3'
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "httptunnel"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: httptunnel 3.3-5 (Tue Apr 4 22:54:31 UTC 2017)

CMD: pacman --query --file httptunnel-3.3-5-x86_64.pkg.tar.xz
# httptunnel 3.3-5

Creating hybrid package for 'httptunnel'

Trying to find vanilla package 'httptunnel'...

CMD: pacman --query --file /mirror/httptunnel-3.3-5.pkg.tar.xz
# httptunnel 3.3-5

Package file has the following structure:
# /.PKGINFO
# /.BUILDINFO
# /.MTREE
# /usr/share/man/man1/hts.1.gz
# /usr/share/man/man1/htc.1.gz
# /usr/bin/htc
# /usr/bin/hts

Generating .MTREE

CMD: bsdtar -czf .MTREE --format=mtree --options=!all,use-set,type,uid,mode,time,size,md5,sha256,link .PKGINFO .BUILDINFO usr

Tar-ing up files

CMD: bsdtar -cf - .PKGINFO .BUILDINFO usr .MTREE

CMD: xz -c -z

Successfully ran bsdtar -cf - .PKGINFO .BUILDINFO usr .MTREE | xz -c -z

CMD: bsdtar -tqf httptunnel.pkg.tar.xz .PKGINFO
# .PKGINFO

Created package at path /var/cache/pacman/pkg/httptunnel.pkg.tar.xz

Attempting to access local repository, attempt 1

CMD: repo-add /var/cache/pacman/pkg/tuscan.db.tar /var/cache/pacman/pkg/httptunnel.pkg.tar.xz
# ==> Extracting database to a temporary location...
# ==> Extracting database to a temporary location...
# ==> Adding package '/var/cache/pacman/pkg/httptunnel.pkg.tar.xz'
# -> Computing checksums...
# -> Creating 'desc' db entry...
# -> Creating 'files' db entry...
# ==> Creating updated database file '/var/cache/pacman/pkg/tuscan.db.tar'

Printing config logfiles

CMD: config logfiles '/tmp/httptunnel/src/httptunnel-3.3/config.log'
# This file contains any messages produced by compilers while
# running configure, to aid debugging if configure makes a mistake.
#
# configure:558: checking for a BSD compatible install
# configure:611: checking whether build environment is sane
# configure:668: checking whether make sets ${MAKE}
# configure:714: checking for working aclocal
# configure:727: checking for working autoconf
# configure:740: checking for working automake
# configure:753: checking for working autoheader
# configure:766: checking for working makeinfo
# configure:816: checking for mawk
# configure:816: checking for gawk
# configure:848: checking for gcc
# configure:961: checking whether the C compiler (clang -O2 -Wall -fomit-frame-pointer ) works
# configure:977: clang -o conftest -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:974:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(){return(0);}
# ^
# 1 warning generated.
# configure:1003: checking whether the C compiler (clang -O2 -Wall -fomit-frame-pointer ) is a cross-compiler
# configure:1008: checking whether we are using GNU C
# configure:1017: clang -E conftest.c
# configure:1036: checking whether clang accepts -g
# configure:1098: checking for a BSD compatible install
# configure:1151: checking whether ln -s works
# configure:1174: checking for ranlib
# configure:1203: checking for gethostent
# configure:1231: clang -o conftest -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:1298: checking for setsockopt
# configure:1326: clang -o conftest -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:1394: checking how to run the C preprocessor
# configure:1415: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1474: checking for ANSI C header files
# configure:1487: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1581: checking for fcntl.h
# configure:1591: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1581: checking for syslog.h
# configure:1591: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1581: checking for unistd.h
# configure:1591: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1581: checking for sys/poll.h
# configure:1591: clang -E conftest.c >/dev/null 2>conftest.out
# In file included from configure:1587:
# /sysroot/include/sys/poll.h:1:2: warning: redirecting incorrect #include to [-W#warnings]
# #warning redirecting incorrect #include to
# ^
# 1 warning generated.
# configure: failed program was:
# #line 1586 "configure"
# #include "confdefs.h"
# #include
# configure:1619: checking for working const
# configure:1673: clang -c -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:1647:15: warning: unused variable 's' [-Wunused-variable]
# char const *s = 0 ? (char *) 0 : (char const *) 0;
# ^
# configure:1667:13: warning: unused variable 'foo' [-Wunused-variable]
# const int foo = 10;
# ^
# configure:1629:39: warning: unused variable 'x' [-Wunused-variable]
# typedef int charset[2]; const charset x = {0,0};
# ^
# configure:1635:27: warning: unused variable 'zero' [-Wunused-variable]
# static struct point const zero = {0,0};
# ^
# configure:1649:4: warning: variable 't' is uninitialized when used here [-Wuninitialized]
# *t++ = 0;
# ^
# configure:1646:10: note: initialize the variable 't' to silence this warning
# char *t;
# ^
# = 0
# configure:1664:16: warning: variable 'b' is uninitialized when used here [-Wuninitialized]
# struct s *b; b->j = 5;
# ^
# configure:1664:14: note: initialize the variable 'b' to silence this warning
# struct s *b; b->j = 5;
# ^
# = 0
# 6 warnings generated.
# configure:1694: checking for inline
# configure:1708: clang -c -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:1734: checking for size_t
# configure:1768: checking for socklen_t
# configure:1782: clang -c -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:1778:11: warning: unused variable 'len' [-Wunused-variable]
# socklen_t len = 42; return 0;
# ^
# 1 warning generated.
# configure:1804: checking whether INADDR_NONE is defined
# configure:1818: clang -c -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:1840: checking size of char
# configure:1879: checking size of short
# configure:1918: checking size of int
# configure:1957: checking size of long
# configure:1996: checking size of long long
# configure:2036: checking for 8-bit clean memcmp
# configure:2072: checking return type of signal handlers
# configure:2094: clang -c -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:2090:5: warning: unused variable 'i' [-Wunused-variable]
# int i;
# ^
# 1 warning generated.
# configure:2113: checking for vprintf
# configure:2141: clang -o conftest -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:2125:6: warning: incompatible redeclaration of library function 'vprintf' [-Wincompatible-library-redeclaration]
# char vprintf();
# ^
# configure:2125:6: note: 'vprintf' is a builtin with type 'int (const char *, struct __va_list_tag *)'
# 1 warning generated.
# configure:2220: checking for socket
# configure:2248: clang -o conftest -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:2220: checking for strdup
# configure:2248: clang -o conftest -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:2232:6: warning: incompatible redeclaration of library function 'strdup' [-Wincompatible-library-redeclaration]
# char strdup();
# ^
# configure:2232:6: note: 'strdup' is a builtin with type 'char *(const char *)'
# 1 warning generated.
# configure:2220: checking for strerror
# configure:2248: clang -o conftest -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:2232:6: warning: incompatible redeclaration of library function 'strerror' [-Wincompatible-library-redeclaration]
# char strerror();
# ^
# configure:2232:6: note: 'strerror' is a builtin with type 'char *(int)'
# 1 warning generated.
# configure:2220: checking for daemon
# configure:2248: clang -o conftest -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:2220: checking for vsyslog
# configure:2248: clang -o conftest -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:2275: checking for poll
# configure:2303: clang -o conftest -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:2275: checking for select
# configure:2303: clang -o conftest -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:2275: checking for endprotoent
# configure:2303: clang -o conftest -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:2275: checking for vsnprintf
# configure:2303: clang -o conftest -O2 -Wall -fomit-frame-pointer conftest.c 1>&5
# configure:2287:6: warning: incompatible redeclaration of library function 'vsnprintf' [-Wincompatible-library-redeclaration]
# char vsnprintf();
# ^
# configure:2287:6: note: 'vsnprintf' is a builtin with type 'int (char *, unsigned long, const char *, struct __va_list_tag *)'
# 1 warning generated.
# configure:2275: checking for syslog
# configure:2303: clang -o conftest -O2 -Wall -fomit-frame-pointer conftest.c 1>&5