Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make install fails on Alpine Linux-- install: can't stat './libtrickle.so': No such file or directory #21

Open
BlinkyStitt opened this issue Apr 28, 2018 · 5 comments

Comments

@BlinkyStitt
Copy link

BlinkyStitt commented Apr 28, 2018

Has anyone been able to build this on Alpine?

I'm trying to build it with this Dockerfile:

FROM alpine:latest

ENV TRICKLE_VERSION=596bb13f2bc323fc8e7783b8dcba627de4969e07
ENV TRICKLE_SHA256SUM=a4111063d67a3330025eea2f29ebd8c8605e43cc1be0bf384b48f0eab8daf508
RUN { set -eux; \
    \
    cd /tmp; \
    apk add --no-cache \
        autoconf \
        automake \
        build-base \
        ca-certificates \
        curl \
        file \
        libevent-dev \
        libtirpc-dev \
        libtool \
    ; \
    curl -L -o trickle.tgz https://github.com/mariusae/trickle/archive/${TRICKLE_VERSION}.tar.gz; \
    echo "$TRICKLE_SHA256SUM  trickle.tgz" | sha256sum -c -; \
    tar xvzf trickle.tgz; \
    cd "trickle-${TRICKLE_VERSION}"; \
    export CFLAGS=-I/usr/include/tirpc; \
    export LDFLAGS=-ltirpc; \
    autoreconf -if; \
    ./configure; \
    make; \
    ls -la | grep so; \
    make install; \
    rm -rf /tmp/*; \
}

But the make install step fails because libtrickle.so doesn't get created (trickle-overload.so does exist):

Sending build context to Docker daemon   2.56kB
Step 1/4 : FROM alpine:latest
 ---> 3fd9065eaf02
Step 2/4 : ENV TRICKLE_VERSION=596bb13f2bc323fc8e7783b8dcba627de4969e07
 ---> Using cache
 ---> 78a51e373108
Step 3/4 : ENV TRICKLE_SHA256SUM=a4111063d67a3330025eea2f29ebd8c8605e43cc1be0bf384b48f0eab8daf508
 ---> Using cache
 ---> 668a881a41f1
Step 4/4 : RUN { set -eux;         cd /tmp;     apk add --no-cache         autoconf         automake         build-base         ca-certificates         curl         file         libevent-dev         libtirpc-dev         libtool     ;     curl -L -o trickle.tgz https://github.com/mariusae/trickle/archive/${TRICKLE_VERSION}.tar.gz;     echo "$TRICKLE_SHA256SUM  trickle.tgz" | sha256sum -c -;     tar xvzf trickle.tgz;     cd "trickle-${TRICKLE_VERSION}";     export CFLAGS=-I/usr/include/tirpc;     export LDFLAGS=-ltirpc;     autoreconf -if;     ./configure;     make;     ls -la | grep so;     make install;     rm -rf /tmp/*; }
 ---> Running in 67401ef0b47d
+ cd /tmp
+ apk add --no-cache autoconf automake build-base ca-certificates curl file libevent-dev libtirpc-dev libtool
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
(1/66) Upgrading musl (1.1.18-r2 -> 1.1.18-r3)
(2/66) Installing m4 (1.4.18-r0)
(3/66) Installing libbz2 (1.0.6-r6)
(4/66) Installing perl (5.26.2-r0)
(5/66) Installing autoconf (2.69-r0)
(6/66) Installing automake (1.15.1-r0)
(7/66) Installing binutils-libs (2.28-r3)
(8/66) Installing binutils (2.28-r3)
(9/66) Installing gmp (6.1.2-r1)
(10/66) Installing isl (0.18-r0)
(11/66) Installing libgomp (6.4.0-r5)
(12/66) Installing libatomic (6.4.0-r5)
(13/66) Installing pkgconf (1.3.10-r0)
(14/66) Installing libgcc (6.4.0-r5)
(15/66) Installing mpfr3 (3.1.5-r1)
(16/66) Installing mpc1 (1.0.3-r1)
(17/66) Installing libstdc++ (6.4.0-r5)
(18/66) Installing gcc (6.4.0-r5)
(19/66) Installing musl-dev (1.1.18-r3)
(20/66) Installing libc-dev (0.7.1-r0)
(21/66) Installing g++ (6.4.0-r5)
(22/66) Installing make (4.2.1-r0)
(23/66) Installing fortify-headers (0.9-r0)
(24/66) Installing build-base (0.5-r0)
(25/66) Installing ca-certificates (20171114-r0)
(26/66) Installing libssh2 (1.8.0-r2)
(27/66) Installing libcurl (7.59.0-r0)
(28/66) Installing curl (7.59.0-r0)
(29/66) Installing libmagic (5.32-r0)
(30/66) Installing file (5.32-r0)
(31/66) Upgrading musl-utils (1.1.18-r2 -> 1.1.18-r3)
(32/66) Installing expat (2.2.5-r0)
(33/66) Installing libffi (3.2.1-r4)
(34/66) Installing gdbm (1.13-r1)
(35/66) Installing ncurses-terminfo-base (6.0_p20171125-r0)
(36/66) Installing ncurses-terminfo (6.0_p20171125-r0)
(37/66) Installing ncurses-libs (6.0_p20171125-r0)
(38/66) Installing readline (7.0.003-r0)
(39/66) Installing sqlite-libs (3.21.0-r0)
(40/66) Installing python2 (2.7.14-r2)
(41/66) Installing libevent (2.1.8-r2)
(42/66) Installing libevent-dev (2.1.8-r2)
(43/66) Installing libuuid (2.31-r0)
(44/66) Installing libblkid (2.31-r0)
(45/66) Installing libfdisk (2.31-r0)
(46/66) Installing libmount (2.31-r0)
(47/66) Installing libsmartcols (2.31-r0)
(48/66) Installing util-linux-dev (2.31-r0)
(49/66) Installing libcom_err (1.43.7-r0)
(50/66) Installing e2fsprogs-libs (1.43.7-r0)
(51/66) Installing e2fsprogs-dev (1.43.7-r0)
(52/66) Installing krb5-conf (1.0-r1)
(53/66) Installing keyutils-libs (1.5.10-r0)
(54/66) Installing libverto (0.3.0-r0)
(55/66) Installing krb5-libs (1.15.2-r1)
(56/66) Installing db (5.3.28-r0)
(57/66) Installing libsasl (2.1.26-r11)
(58/66) Installing libldap (2.4.45-r3)
(59/66) Installing krb5-server-ldap (1.15.2-r1)
(60/66) Installing krb5-dev (1.15.2-r1)
(61/66) Installing bsd-compat-headers (0.7.1-r0)
(62/66) Installing libtirpc (1.0.1-r2)
(63/66) Installing libtirpc-dev (1.0.1-r2)
(64/66) Installing bash (4.4.19-r1)
Executing bash-4.4.19-r1.post-install
(65/66) Installing libltdl (2.4.6-r4)
(66/66) Installing libtool (2.4.6-r4)
Executing busybox-1.27.2-r7.trigger
Executing ca-certificates-20171114-r0.trigger
OK: 269 MiB in 75 packages
+ curl -L -o trickle.tgz https://github.com/mariusae/trickle/archive/596bb13f2bc323fc8e7783b8dcba627de4969e07.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   158    0   158    0     0    672      0 --:--:-- --:--:-- --:--:--   672
100 48788  100 48788    0     0   124k      0 --:--:-- --:--:-- --:--:--  124k
+ echo a4111063d67a3330025eea2f29ebd8c8605e43cc1be0bf384b48f0eab8daf508  trickle.tgz
+ sha256sum -c -
trickle.tgz: OK
+ tar xvzf trickle.tgz
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/.gitignore
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/.travis.yml
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/LICENSE
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/Makefile.am
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/Makefile.am.inc
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/README.md
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/TODO
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/acconfig.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/atomicio.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/bwstat.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/bwstat.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/cleanup.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/cleanup.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/client.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/client.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/compat/
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/compat/sys/
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/compat/sys/queue.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/compat/sys/tree.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/conf.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/conf.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/config.h.in
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/configure.in
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/daemon.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/err.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/getopt.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/m4/
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/m4/ax_pthread.m4
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/message.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/print.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/print.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/setenv.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/stamp-h.in
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/strlcat.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/strlcpy.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/strsep.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickle-overload.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickle.1
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickle.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickle.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/tricklectl.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickled.8
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickled.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickled.conf.5
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickledu.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickledu.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/util.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/util.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/xdr.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/xdr.h
+ cd trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07
+ export CFLAGS=-I/usr/include/tirpc
+ export LDFLAGS=-ltirpc
+ autoreconf -if
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
libtoolize: 'AC_PROG_RANLIB' is rendered obsolete by 'LT_INIT'
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader: 
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader: WARNING: `acconfig.h':
autoheader: 
autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: 		[Define if a function `main' is needed.])
autoheader: 
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:13: installing './compile'
configure.in:5: installing './config.guess'
configure.in:5: installing './config.sub'
configure.in:8: installing './install-sh'
configure.in:8: installing './missing'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
+ ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/x86_64-alpine-linux-musl/bin/ld
checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... (cached) ranlib
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking for dlopen in -ldl... yes
checking for err in -lc... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking if libc defines __progname... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking asm/poll.h usability... no
checking asm/poll.h presence... no
checking for asm/poll.h... no
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for u_int64_t... yes
checking for u_int32_t... yes
checking for u_int16_t... yes
checking for u_int8_t... yes
checking for in_addr_t... yes
checking whether gcc needs -traditional... no
checking return type of signal handlers... void
checking for socket... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for daemon... yes
checking for setenv... yes
checking for strsep... yes
checking for sendfile... yes
checking for libevent... yes
checking if underscores are needed for symbols... no
checking if we can access libc without dlopen... yes
checking for sendfile... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
+ make
make  all-am
make[1]: Entering directory '/tmp/trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07'
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o trickle.o trickle.c
trickle.c: In function 'main':
trickle.c:47:7: warning: variable 'latency' set but not used [-Wunused-but-set-variable]
      *latency = "0";
       ^~~~~~~
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o util.o util.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o getopt.o getopt.c
/bin/bash ./libtool  --tag=CC   --mode=link gcc -Wall -Icompat  -I/usr/include/tirpc  -ltirpc -o trickle trickle.o util.o getopt.o  -ldl
libtool: link: gcc -Wall -Icompat -I/usr/include/tirpc -o trickle trickle.o util.o getopt.o  -ltirpc -ldl
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o trickled.o trickled.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o atomicio.o atomicio.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o print.o print.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o bwstat.o bwstat.c
bwstat.c: In function 'bwstat_getdelay':
bwstat.c:153:7: warning: variable 'initent' set but not used [-Wunused-but-set-variable]
  uint initent;
       ^~~~~~~
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o client.o client.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o conf.o conf.c
conf.c: In function 'conf_decode_base64':
conf.c:548:17: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign]
    if (!strcmp (buf, "=="))
                 ^~~
In file included from /usr/include/fortify/string.h:20:0,
                 from conf.c:55:
/usr/include/string.h:37:5: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}'
 int strcmp (const char *, const char *);
     ^~~~~~
conf.c:564:17: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign]
     if (strcmp (buf, "="))
                 ^~~
In file included from /usr/include/fortify/string.h:20:0,
                 from conf.c:55:
/usr/include/string.h:37:5: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}'
 int strcmp (const char *, const char *);
     ^~~~~~
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o cleanup.o cleanup.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o xdr.o xdr.c
xdr.c: In function 'xdr_msg':
xdr.c:106:25: warning: passing argument 5 of 'xdr_union' from incompatible pointer type [-Wincompatible-pointer-types]
        xdr_msg_discrim, _xdr_void));
                         ^
xdr.c:15:7: note: in definition of macro 'X'
  if (!x)     \
       ^
In file included from /usr/include/tirpc/rpc/rpc.h:43:0,
                 from xdr.c:10:
/usr/include/tirpc/rpc/xdr.h:315:15: note: expected 'xdrproc_t {aka int (*)(struct __rpc_xdr *)}' but argument is of type 'bool_t (*)(void) {aka int (*)(void)}'
 extern bool_t xdr_union(XDR *, enum_t *, char *, const struct xdr_discrim *, xdrproc_t);
               ^~~~~~~~~
xdr.c: In function 'msg2xdr':
xdr.c:116:23: warning: pointer targets in passing argument 2 of 'xdrmem_create' differ in signedness [-Wpointer-sign]
  xdrmem_create(&xdrs, buf, *buflen, XDR_ENCODE);
                       ^~~
In file included from /usr/include/tirpc/rpc/rpc.h:43:0,
                 from xdr.c:10:
/usr/include/tirpc/rpc/xdr.h:355:15: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}'
 extern void   xdrmem_create(XDR *, char *, u_int, enum xdr_op);
               ^~~~~~~~~~~~~
xdr.c: In function 'xdr2msg':
xdr.c:136:23: warning: pointer targets in passing argument 2 of 'xdrmem_create' differ in signedness [-Wpointer-sign]
  xdrmem_create(&xdrs, buf, buflen, XDR_DECODE);
                       ^~~
In file included from /usr/include/tirpc/rpc/rpc.h:43:0,
                 from xdr.c:10:
/usr/include/tirpc/rpc/xdr.h:355:15: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}'
 extern void   xdrmem_create(XDR *, char *, u_int, enum xdr_op);
               ^~~~~~~~~~~~~
/bin/bash ./libtool  --tag=CC   --mode=link gcc -Wall -Icompat  -I/usr/include/tirpc  -ltirpc -o trickled trickled.o atomicio.o print.o bwstat.o client.o conf.o util.o cleanup.o getopt.o xdr.o -levent  -ldl
libtool: link: gcc -Wall -Icompat -I/usr/include/tirpc -o trickled trickled.o atomicio.o print.o bwstat.o client.o conf.o util.o cleanup.o getopt.o xdr.o  -ltirpc -levent -ldl
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o tricklectl.o tricklectl.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o trickledu.o trickledu.c
/bin/bash ./libtool  --tag=CC   --mode=link gcc -Wall -Icompat  -I/usr/include/tirpc  -ltirpc -o tricklectl tricklectl.o trickledu.o atomicio.o xdr.o  -ldl
libtool: link: gcc -Wall -Icompat -I/usr/include/tirpc -o tricklectl tricklectl.o trickledu.o atomicio.o xdr.o  -ltirpc -ldl
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o trickle-overload.lo trickle-overload.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c trickle-overload.c  -fPIC -DPIC -o .libs/trickle-overload.o
trickle-overload.c: In function 'read':
trickle-overload.c:688:27: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(fd, &xnbytes, TRICKLE_RECV) == TRICKLE_WOULDBLOCK)) {
                           ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'readv':
trickle-overload.c:726:27: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(fd, &len, TRICKLE_RECV) == TRICKLE_WOULDBLOCK)) {
                           ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'recv':
trickle-overload.c:759:29: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(sock, &xlen, TRICKLE_RECV) == TRICKLE_WOULDBLOCK)) {
                             ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'recvfrom':
trickle-overload.c:800:29: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(sock, &xlen, TRICKLE_RECV) == TRICKLE_WOULDBLOCK)) {
                             ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'write':
trickle-overload.c:834:27: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(fd, &xlen, TRICKLE_SEND) == TRICKLE_WOULDBLOCK)) {
                           ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'writev':
trickle-overload.c:872:27: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(fd, &len, TRICKLE_SEND) == TRICKLE_WOULDBLOCK)) {
                           ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'send':
trickle-overload.c:906:29: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(sock, &xlen, TRICKLE_SEND) == TRICKLE_WOULDBLOCK)) {
                             ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'sendto':
trickle-overload.c:942:29: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(sock, &xlen, TRICKLE_SEND) == TRICKLE_WOULDBLOCK)) {
                             ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'sendfile':
trickle-overload.c:1101:15: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  delay(in_fd, &inbytes, TRICKLE_RECV);
               ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c:1102:16: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  delay(out_fd, &outbytes, TRICKLE_SEND);
                ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'getdelay':
trickle-overload.c:1161:50: warning: pointer targets in passing argument 2 of 'trickled_getdelay' differ in signedness [-Wpointer-sign]
  if (trickled && (xtv = trickled_getdelay(which, len)) != NULL)
                                                  ^~~
In file included from trickle-overload.c:58:0:
trickledu.h:20:17: note: expected 'size_t * {aka long unsigned int *}' but argument is of type 'ssize_t * {aka long int *}'
 struct timeval *trickled_getdelay(short, size_t *);
                 ^~~~~~~~~~~~~~~~~
trickle-overload.c:1167:36: warning: pointer targets in passing argument 2 of 'bwstat_getdelay' differ in signedness [-Wpointer-sign]
  return (bwstat_getdelay(sd->stat, len, xlim, which));
                                    ^~~
In file included from trickle-overload.c:54:0:
bwstat.h:38:17: note: expected 'size_t * {aka long unsigned int *}' but argument is of type 'ssize_t * {aka long int *}'
 struct timeval *bwstat_getdelay(struct bwstat *, size_t *, uint, short);
                 ^~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c trickle-overload.c -o trickle-overload.o >/dev/null 2>&1
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o bwstat.lo bwstat.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c bwstat.c  -fPIC -DPIC -o .libs/bwstat.o
bwstat.c: In function 'bwstat_getdelay':
bwstat.c:153:7: warning: variable 'initent' set but not used [-Wunused-but-set-variable]
  uint initent;
       ^~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c bwstat.c -o bwstat.o >/dev/null 2>&1
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o trickledu.lo trickledu.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c trickledu.c  -fPIC -DPIC -o .libs/trickledu.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c trickledu.c -o trickledu.o >/dev/null 2>&1
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o atomicio.lo atomicio.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c atomicio.c  -fPIC -DPIC -o .libs/atomicio.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c atomicio.c -o atomicio.o >/dev/null 2>&1
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o xdr.lo xdr.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c xdr.c  -fPIC -DPIC -o .libs/xdr.o
xdr.c: In function 'xdr_msg':
xdr.c:106:25: warning: passing argument 5 of 'xdr_union' from incompatible pointer type [-Wincompatible-pointer-types]
        xdr_msg_discrim, _xdr_void));
                         ^
xdr.c:15:7: note: in definition of macro 'X'
  if (!x)     \
       ^
In file included from /usr/include/tirpc/rpc/rpc.h:43:0,
                 from xdr.c:10:
/usr/include/tirpc/rpc/xdr.h:315:15: note: expected 'xdrproc_t {aka int (*)(struct __rpc_xdr *)}' but argument is of type 'bool_t (*)(void) {aka int (*)(void)}'
 extern bool_t xdr_union(XDR *, enum_t *, char *, const struct xdr_discrim *, xdrproc_t);
               ^~~~~~~~~
xdr.c: In function 'msg2xdr':
xdr.c:116:23: warning: pointer targets in passing argument 2 of 'xdrmem_create' differ in signedness [-Wpointer-sign]
  xdrmem_create(&xdrs, buf, *buflen, XDR_ENCODE);
                       ^~~
In file included from /usr/include/tirpc/rpc/rpc.h:43:0,
                 from xdr.c:10:
/usr/include/tirpc/rpc/xdr.h:355:15: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}'
 extern void   xdrmem_create(XDR *, char *, u_int, enum xdr_op);
               ^~~~~~~~~~~~~
xdr.c: In function 'xdr2msg':
xdr.c:136:23: warning: pointer targets in passing argument 2 of 'xdrmem_create' differ in signedness [-Wpointer-sign]
  xdrmem_create(&xdrs, buf, buflen, XDR_DECODE);
                       ^~~
In file included from /usr/include/tirpc/rpc/rpc.h:43:0,
                 from xdr.c:10:
/usr/include/tirpc/rpc/xdr.h:355:15: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}'
 extern void   xdrmem_create(XDR *, char *, u_int, enum xdr_op);
               ^~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c xdr.c -o xdr.o >/dev/null 2>&1
/bin/bash ./libtool --mode=link gcc -I/usr/include/tirpc -o libtmptrickle-overload.so.la                \
	-rpath /usr/local/lib/trickle trickle-overload.lo bwstat.lo trickledu.lo atomicio.lo xdr.lo -ldl     \
	-ltirpc -module -avoid-version -nostdlib -ldl
libtool: link: gcc -shared  -fPIC -DPIC  .libs/trickle-overload.o .libs/bwstat.o .libs/trickledu.o .libs/atomicio.o .libs/xdr.o   -ltirpc -ldl    -Wl,-soname -Wl,libtmptrickle-overload.so.so -o .libs/libtmptrickle-overload.so.so
libtool: link: ar cru .libs/libtmptrickle-overload.so.a  trickle-overload.o bwstat.o trickledu.o atomicio.o xdr.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libtmptrickle-overload.so.a
libtool: link: ( cd ".libs" && rm -f "libtmptrickle-overload.so.la" && ln -s "../libtmptrickle-overload.so.la" "libtmptrickle-overload.so.la" )
make[1]: Leaving directory '/tmp/trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07'
+ ls -la
+ grep so
-rwxr-xr-x    1 root     root         42416 Apr 28 23:00 trickle-overload.so
+ make install
/bin/bash ./libtool  --tag=CC   --mode=link gcc -Wall -Icompat  -I/usr/include/tirpc  -ltirpc -o trickled trickled.o atomicio.o print.o bwstat.o client.o conf.o util.o cleanup.o getopt.o xdr.o -levent  -ldl
libtool: link: gcc -Wall -Icompat -I/usr/include/tirpc -o trickled trickled.o atomicio.o print.o bwstat.o client.o conf.o util.o cleanup.o getopt.o xdr.o  -ltirpc -levent -ldl
/bin/bash ./libtool  --tag=CC   --mode=link gcc -Wall -Icompat  -I/usr/include/tirpc  -ltirpc -o tricklectl tricklectl.o trickledu.o atomicio.o xdr.o  -ldl
libtool: link: gcc -Wall -Icompat -I/usr/include/tirpc -o tricklectl tricklectl.o trickledu.o atomicio.o xdr.o  -ltirpc -ldl
make[1]: Entering directory '/tmp/trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07'
 ./install-sh -c -d '/usr/local/bin'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c trickle trickled tricklectl '/usr/local/bin'
libtool: install: /usr/bin/install -c trickle /usr/local/bin/trickle
libtool: install: /usr/bin/install -c trickled /usr/local/bin/trickled
libtool: install: /usr/bin/install -c tricklectl /usr/local/bin/tricklectl
 ./install-sh -c -d '/usr/local/share/man/man1'
 /usr/bin/install -c -m 644 trickle.1 '/usr/local/share/man/man1'
 ./install-sh -c -d '/usr/local/share/man/man5'
 /usr/bin/install -c -m 644 trickled.conf.5 '/usr/local/share/man/man5'
 ./install-sh -c -d '/usr/local/share/man/man8'
 /usr/bin/install -c -m 644 trickled.8 '/usr/local/share/man/man8'
 ./install-sh -c -d '/usr/local/lib'
 /usr/bin/install -c -m 644 ./libtrickle.so '/usr/local/lib'
install: can't stat './libtrickle.so': No such file or directory
make[1]: *** [Makefile:672: install-overloadDATA] Error 1
make[1]: Leaving directory '/tmp/trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07'
make: *** [Makefile:948: install-am] Error 2
The command '/bin/sh -c { set -eux;         cd /tmp;     apk add --no-cache         autoconf         automake         build-base         ca-certificates         curl         file         libevent-dev         libtirpc-dev         libtool     ;     curl -L -o trickle.tgz https://github.com/mariusae/trickle/archive/${TRICKLE_VERSION}.tar.gz;     echo "$TRICKLE_SHA256SUM  trickle.tgz" | sha256sum -c -;     tar xvzf trickle.tgz;     cd "trickle-${TRICKLE_VERSION}";     export CFLAGS=-I/usr/include/tirpc;     export LDFLAGS=-ltirpc;     autoreconf -if;     ./configure;     make;     ls -la | grep so;     make install;     rm -rf /tmp/*; }' returned a non-zero code: 2
[mgmt@tank:~/mgmt/dockerfiles/99/trickle] [pyenv] master(+840/-779)* 25s 2 ± 
[mgmt@tank:~/mgmt/dockerfiles/99/trickle] [pyenv] master(+840/-779)* 2 ± docker build . --build-arg HTTP_PROXY=http://10.11.12.26:8000
Sending build context to Docker daemon   2.56kB
Step 1/5 : FROM alpine:latest
 ---> 3fd9065eaf02
Step 2/5 : RUN apk add --no-cache     autoconf     automake     build-base     ca-certificates     curl     file     libevent-dev     libtirpc-dev     libtool ;
 ---> Using cache
 ---> 582e7fb9e355
Step 3/5 : ENV TRICKLE_VERSION=596bb13f2bc323fc8e7783b8dcba627de4969e07
 ---> Using cache
 ---> 589fc5725d84
Step 4/5 : ENV TRICKLE_SHA256SUM=a4111063d67a3330025eea2f29ebd8c8605e43cc1be0bf384b48f0eab8daf508
 ---> Using cache
 ---> 36250d040bf7
Step 5/5 : RUN { set -eux;         cd /tmp;     curl -L -o trickle.tgz https://github.com/mariusae/trickle/archive/${TRICKLE_VERSION}.tar.gz;     echo "$TRICKLE_SHA256SUM  trickle.tgz" | sha256sum -c -;     tar xvzf trickle.tgz;     cd "trickle-${TRICKLE_VERSION}";     export CFLAGS=-I/usr/include/tirpc;     export LDFLAGS=-ltirpc;     autoreconf -if;     ./configure;     make;     ls -la | grep so;     make install;     rm -rf /tmp/*; }
 ---> Running in 8940d21bd099
+ cd /tmp
+ curl -L -o trickle.tgz https://github.com/mariusae/trickle/archive/596bb13f2bc323fc8e7783b8dcba627de4969e07.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   158    0   158    0     0    632      0 --:--:-- --:--:-- --:--:--   632
100 48788  100 48788    0     0  98164      0 --:--:-- --:--:-- --:--:-- 1066k
+ echo a4111063d67a3330025eea2f29ebd8c8605e43cc1be0bf384b48f0eab8daf508  trickle.tgz
+ sha256sum -c -
trickle.tgz: OK
+ tar xvzf trickle.tgz
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/.gitignore
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/.travis.yml
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/LICENSE
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/Makefile.am
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/Makefile.am.inc
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/README.md
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/TODO
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/acconfig.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/atomicio.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/bwstat.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/bwstat.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/cleanup.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/cleanup.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/client.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/client.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/compat/
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/compat/sys/
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/compat/sys/queue.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/compat/sys/tree.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/conf.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/conf.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/config.h.in
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/configure.in
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/daemon.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/err.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/getopt.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/m4/
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/m4/ax_pthread.m4
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/message.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/print.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/print.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/setenv.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/stamp-h.in
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/strlcat.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/strlcpy.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/strsep.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickle-overload.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickle.1
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickle.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickle.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/tricklectl.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickled.8
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickled.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickled.conf.5
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickledu.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/trickledu.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/util.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/util.h
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/xdr.c
trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07/xdr.h
+ cd trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07
+ export CFLAGS=-I/usr/include/tirpc
+ export LDFLAGS=-ltirpc
+ autoreconf -if
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
libtoolize: 'AC_PROG_RANLIB' is rendered obsolete by 'LT_INIT'
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader: 
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader: WARNING: `acconfig.h':
autoheader: 
autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: 		[Define if a function `main' is needed.])
autoheader: 
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:13: installing './compile'
configure.in:5: installing './config.guess'
configure.in:5: installing './config.sub'
configure.in:8: installing './install-sh'
configure.in:8: installing './missing'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
+ ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/x86_64-alpine-linux-musl/bin/ld
checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... (cached) ranlib
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking for dlopen in -ldl... yes
checking for err in -lc... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking if libc defines __progname... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking asm/poll.h usability... no
checking asm/poll.h presence... no
checking for asm/poll.h... no
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for u_int64_t... yes
checking for u_int32_t... yes
checking for u_int16_t... yes
checking for u_int8_t... yes
checking for in_addr_t... yes
checking whether gcc needs -traditional... no
checking return type of signal handlers... void
checking for socket... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for daemon... yes
checking for setenv... yes
checking for strsep... yes
checking for sendfile... yes
checking for libevent... yes
checking if underscores are needed for symbols... no
checking if we can access libc without dlopen... yes
checking for sendfile... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
+ make
make  all-am
make[1]: Entering directory '/tmp/trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07'
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o trickle.o trickle.c
trickle.c: In function 'main':
trickle.c:47:7: warning: variable 'latency' set but not used [-Wunused-but-set-variable]
      *latency = "0";
       ^~~~~~~
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o util.o util.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o getopt.o getopt.c
/bin/bash ./libtool  --tag=CC   --mode=link gcc -Wall -Icompat  -I/usr/include/tirpc  -ltirpc -o trickle trickle.o util.o getopt.o  -ldl
libtool: link: gcc -Wall -Icompat -I/usr/include/tirpc -o trickle trickle.o util.o getopt.o  -ltirpc -ldl
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o trickled.o trickled.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o atomicio.o atomicio.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o print.o print.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o bwstat.o bwstat.c
bwstat.c: In function 'bwstat_getdelay':
bwstat.c:153:7: warning: variable 'initent' set but not used [-Wunused-but-set-variable]
  uint initent;
       ^~~~~~~
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o client.o client.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o conf.o conf.c
conf.c: In function 'conf_decode_base64':
conf.c:548:17: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign]
    if (!strcmp (buf, "=="))
                 ^~~
In file included from /usr/include/fortify/string.h:20:0,
                 from conf.c:55:
/usr/include/string.h:37:5: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}'
 int strcmp (const char *, const char *);
     ^~~~~~
conf.c:564:17: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign]
     if (strcmp (buf, "="))
                 ^~~
In file included from /usr/include/fortify/string.h:20:0,
                 from conf.c:55:
/usr/include/string.h:37:5: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}'
 int strcmp (const char *, const char *);
     ^~~~~~
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o cleanup.o cleanup.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o xdr.o xdr.c
xdr.c: In function 'xdr_msg':
xdr.c:106:25: warning: passing argument 5 of 'xdr_union' from incompatible pointer type [-Wincompatible-pointer-types]
        xdr_msg_discrim, _xdr_void));
                         ^
xdr.c:15:7: note: in definition of macro 'X'
  if (!x)     \
       ^
In file included from /usr/include/tirpc/rpc/rpc.h:43:0,
                 from xdr.c:10:
/usr/include/tirpc/rpc/xdr.h:315:15: note: expected 'xdrproc_t {aka int (*)(struct __rpc_xdr *)}' but argument is of type 'bool_t (*)(void) {aka int (*)(void)}'
 extern bool_t xdr_union(XDR *, enum_t *, char *, const struct xdr_discrim *, xdrproc_t);
               ^~~~~~~~~
xdr.c: In function 'msg2xdr':
xdr.c:116:23: warning: pointer targets in passing argument 2 of 'xdrmem_create' differ in signedness [-Wpointer-sign]
  xdrmem_create(&xdrs, buf, *buflen, XDR_ENCODE);
                       ^~~
In file included from /usr/include/tirpc/rpc/rpc.h:43:0,
                 from xdr.c:10:
/usr/include/tirpc/rpc/xdr.h:355:15: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}'
 extern void   xdrmem_create(XDR *, char *, u_int, enum xdr_op);
               ^~~~~~~~~~~~~
xdr.c: In function 'xdr2msg':
xdr.c:136:23: warning: pointer targets in passing argument 2 of 'xdrmem_create' differ in signedness [-Wpointer-sign]
  xdrmem_create(&xdrs, buf, buflen, XDR_DECODE);
                       ^~~
In file included from /usr/include/tirpc/rpc/rpc.h:43:0,
                 from xdr.c:10:
/usr/include/tirpc/rpc/xdr.h:355:15: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}'
 extern void   xdrmem_create(XDR *, char *, u_int, enum xdr_op);
               ^~~~~~~~~~~~~
/bin/bash ./libtool  --tag=CC   --mode=link gcc -Wall -Icompat  -I/usr/include/tirpc  -ltirpc -o trickled trickled.o atomicio.o print.o bwstat.o client.o conf.o util.o cleanup.o getopt.o xdr.o -levent  -ldl
libtool: link: gcc -Wall -Icompat -I/usr/include/tirpc -o trickled trickled.o atomicio.o print.o bwstat.o client.o conf.o util.o cleanup.o getopt.o xdr.o  -ltirpc -levent -ldl
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o tricklectl.o tricklectl.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o trickledu.o trickledu.c
/bin/bash ./libtool  --tag=CC   --mode=link gcc -Wall -Icompat  -I/usr/include/tirpc  -ltirpc -o tricklectl tricklectl.o trickledu.o atomicio.o xdr.o  -ldl
libtool: link: gcc -Wall -Icompat -I/usr/include/tirpc -o tricklectl tricklectl.o trickledu.o atomicio.o xdr.o  -ltirpc -ldl
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o trickle-overload.lo trickle-overload.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c trickle-overload.c  -fPIC -DPIC -o .libs/trickle-overload.o
trickle-overload.c: In function 'read':
trickle-overload.c:688:27: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(fd, &xnbytes, TRICKLE_RECV) == TRICKLE_WOULDBLOCK)) {
                           ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'readv':
trickle-overload.c:726:27: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(fd, &len, TRICKLE_RECV) == TRICKLE_WOULDBLOCK)) {
                           ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'recv':
trickle-overload.c:759:29: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(sock, &xlen, TRICKLE_RECV) == TRICKLE_WOULDBLOCK)) {
                             ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'recvfrom':
trickle-overload.c:800:29: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(sock, &xlen, TRICKLE_RECV) == TRICKLE_WOULDBLOCK)) {
                             ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'write':
trickle-overload.c:834:27: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(fd, &xlen, TRICKLE_SEND) == TRICKLE_WOULDBLOCK)) {
                           ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'writev':
trickle-overload.c:872:27: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(fd, &len, TRICKLE_SEND) == TRICKLE_WOULDBLOCK)) {
                           ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'send':
trickle-overload.c:906:29: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(sock, &xlen, TRICKLE_SEND) == TRICKLE_WOULDBLOCK)) {
                             ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'sendto':
trickle-overload.c:942:29: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  if (!(eagain = delay(sock, &xlen, TRICKLE_SEND) == TRICKLE_WOULDBLOCK)) {
                             ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'sendfile':
trickle-overload.c:1101:15: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  delay(in_fd, &inbytes, TRICKLE_RECV);
               ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c:1102:16: warning: pointer targets in passing argument 2 of 'delay' differ in signedness [-Wpointer-sign]
  delay(out_fd, &outbytes, TRICKLE_SEND);
                ^
trickle-overload.c:169:24: note: expected 'ssize_t * {aka long int *}' but argument is of type 'size_t * {aka long unsigned int *}'
 static int             delay(int, ssize_t *, short);
                        ^~~~~
trickle-overload.c: In function 'getdelay':
trickle-overload.c:1161:50: warning: pointer targets in passing argument 2 of 'trickled_getdelay' differ in signedness [-Wpointer-sign]
  if (trickled && (xtv = trickled_getdelay(which, len)) != NULL)
                                                  ^~~
In file included from trickle-overload.c:58:0:
trickledu.h:20:17: note: expected 'size_t * {aka long unsigned int *}' but argument is of type 'ssize_t * {aka long int *}'
 struct timeval *trickled_getdelay(short, size_t *);
                 ^~~~~~~~~~~~~~~~~
trickle-overload.c:1167:36: warning: pointer targets in passing argument 2 of 'bwstat_getdelay' differ in signedness [-Wpointer-sign]
  return (bwstat_getdelay(sd->stat, len, xlim, which));
                                    ^~~
In file included from trickle-overload.c:54:0:
bwstat.h:38:17: note: expected 'size_t * {aka long unsigned int *}' but argument is of type 'ssize_t * {aka long int *}'
 struct timeval *bwstat_getdelay(struct bwstat *, size_t *, uint, short);
                 ^~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c trickle-overload.c -o trickle-overload.o >/dev/null 2>&1
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o bwstat.lo bwstat.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c bwstat.c  -fPIC -DPIC -o .libs/bwstat.o
bwstat.c: In function 'bwstat_getdelay':
bwstat.c:153:7: warning: variable 'initent' set but not used [-Wunused-but-set-variable]
  uint initent;
       ^~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c bwstat.c -o bwstat.o >/dev/null 2>&1
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o trickledu.lo trickledu.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c trickledu.c  -fPIC -DPIC -o .libs/trickledu.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c trickledu.c -o trickledu.o >/dev/null 2>&1
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o atomicio.lo atomicio.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c atomicio.c  -fPIC -DPIC -o .libs/atomicio.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c atomicio.c -o atomicio.o >/dev/null 2>&1
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o xdr.lo xdr.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c xdr.c  -fPIC -DPIC -o .libs/xdr.o
xdr.c: In function 'xdr_msg':
xdr.c:106:25: warning: passing argument 5 of 'xdr_union' from incompatible pointer type [-Wincompatible-pointer-types]
        xdr_msg_discrim, _xdr_void));
                         ^
xdr.c:15:7: note: in definition of macro 'X'
  if (!x)     \
       ^
In file included from /usr/include/tirpc/rpc/rpc.h:43:0,
                 from xdr.c:10:
/usr/include/tirpc/rpc/xdr.h:315:15: note: expected 'xdrproc_t {aka int (*)(struct __rpc_xdr *)}' but argument is of type 'bool_t (*)(void) {aka int (*)(void)}'
 extern bool_t xdr_union(XDR *, enum_t *, char *, const struct xdr_discrim *, xdrproc_t);
               ^~~~~~~~~
xdr.c: In function 'msg2xdr':
xdr.c:116:23: warning: pointer targets in passing argument 2 of 'xdrmem_create' differ in signedness [-Wpointer-sign]
  xdrmem_create(&xdrs, buf, *buflen, XDR_ENCODE);
                       ^~~
In file included from /usr/include/tirpc/rpc/rpc.h:43:0,
                 from xdr.c:10:
/usr/include/tirpc/rpc/xdr.h:355:15: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}'
 extern void   xdrmem_create(XDR *, char *, u_int, enum xdr_op);
               ^~~~~~~~~~~~~
xdr.c: In function 'xdr2msg':
xdr.c:136:23: warning: pointer targets in passing argument 2 of 'xdrmem_create' differ in signedness [-Wpointer-sign]
  xdrmem_create(&xdrs, buf, buflen, XDR_DECODE);
                       ^~~
In file included from /usr/include/tirpc/rpc/rpc.h:43:0,
                 from xdr.c:10:
/usr/include/tirpc/rpc/xdr.h:355:15: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}'
 extern void   xdrmem_create(XDR *, char *, u_int, enum xdr_op);
               ^~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c xdr.c -o xdr.o >/dev/null 2>&1
/bin/bash ./libtool --mode=link gcc -I/usr/include/tirpc -o libtmptrickle-overload.so.la                \
	-rpath /usr/local/lib/trickle trickle-overload.lo bwstat.lo trickledu.lo atomicio.lo xdr.lo -ldl     \
	-ltirpc -module -avoid-version -nostdlib -ldl
libtool: link: gcc -shared  -fPIC -DPIC  .libs/trickle-overload.o .libs/bwstat.o .libs/trickledu.o .libs/atomicio.o .libs/xdr.o   -ltirpc -ldl    -Wl,-soname -Wl,libtmptrickle-overload.so.so -o .libs/libtmptrickle-overload.so.so
libtool: link: ar cru .libs/libtmptrickle-overload.so.a  trickle-overload.o bwstat.o trickledu.o atomicio.o xdr.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libtmptrickle-overload.so.a
libtool: link: ( cd ".libs" && rm -f "libtmptrickle-overload.so.la" && ln -s "../libtmptrickle-overload.so.la" "libtmptrickle-overload.so.la" )
make[1]: Leaving directory '/tmp/trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07'
+ + grepls so -la

-rwxr-xr-x    1 root     root         42416 Apr 28 23:02 trickle-overload.so
+ make install
/bin/bash ./libtool  --tag=CC   --mode=link gcc -Wall -Icompat  -I/usr/include/tirpc  -ltirpc -o trickled trickled.o atomicio.o print.o bwstat.o client.o conf.o util.o cleanup.o getopt.o xdr.o -levent  -ldl
libtool: link: gcc -Wall -Icompat -I/usr/include/tirpc -o trickled trickled.o atomicio.o print.o bwstat.o client.o conf.o util.o cleanup.o getopt.o xdr.o  -ltirpc -levent -ldl
/bin/bash ./libtool  --tag=CC   --mode=link gcc -Wall -Icompat  -I/usr/include/tirpc  -ltirpc -o tricklectl tricklectl.o trickledu.o atomicio.o xdr.o  -ldl
libtool: link: gcc -Wall -Icompat -I/usr/include/tirpc -o tricklectl tricklectl.o trickledu.o atomicio.o xdr.o  -ltirpc -ldl
make[1]: Entering directory '/tmp/trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07'
 ./install-sh -c -d '/usr/local/bin'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c trickle trickled tricklectl '/usr/local/bin'
libtool: install: /usr/bin/install -c trickle /usr/local/bin/trickle
libtool: install: /usr/bin/install -c trickled /usr/local/bin/trickled
libtool: install: /usr/bin/install -c tricklectl /usr/local/bin/tricklectl
 ./install-sh -c -d '/usr/local/share/man/man1'
 /usr/bin/install -c -m 644 trickle.1 '/usr/local/share/man/man1'
 ./install-sh -c -d '/usr/local/share/man/man5'
 /usr/bin/install -c -m 644 trickled.conf.5 '/usr/local/share/man/man5'
 ./install-sh -c -d '/usr/local/share/man/man8'
 /usr/bin/install -c -m 644 trickled.8 '/usr/local/share/man/man8'
 ./install-sh -c -d '/usr/local/lib'
 /usr/bin/install -c -m 644 ./libtrickle.so '/usr/local/lib'
install: can't stat './libtrickle.so': No such file or directory
make[1]: *** [Makefile:672: install-overloadDATA] Error 1
make[1]: Leaving directory '/tmp/trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07'
make: *** [Makefile:948: install-am] Error 2
The command '/bin/sh -c { set -eux;         cd /tmp;     curl -L -o trickle.tgz https://github.com/mariusae/trickle/archive/${TRICKLE_VERSION}.tar.gz;     echo "$TRICKLE_SHA256SUM  trickle.tgz" | sha256sum -c -;     tar xvzf trickle.tgz;     cd "trickle-${TRICKLE_VERSION}";     export CFLAGS=-I/usr/include/tirpc;     export LDFLAGS=-ltirpc;     autoreconf -if;     ./configure;     make;     ls -la | grep so;     make install;     rm -rf /tmp/*; }' returned a non-zero code: 2

If I skip the make install and rm -rf /tmp/* steps, trickle looks like it works:

bash-4.4# cd /tmp/trickle-596bb13f2bc323fc8e7783b8dcba627de4969e07
bash-4.4# ./trickle -u 60 -d 30 ping google.com
PING google.com (216.58.194.174): 56 data bytes
64 bytes from 216.58.194.174: seq=0 ttl=51 time=3.411 ms

But trickled doesn't:

bash-4.4# ./trickled 
trickled: Skipping configuration file: ${prefix}/etc/trickled.conf: No such file or directory
@tlhonmey
Copy link

I get the same problem without using Docker.

did the library in question get moved without updating the makefile?

@Zalgo2462
Copy link

I have the same issue on ubuntu 17.10 without docker. The library just isn't being built as a result of make for me.

@DracoBlue
Copy link

FROM alpine:3.9
RUN apk add --update autoconf automake libtool vim bash  alpine-sdk libevent-dev libevent libtirpc-dev
RUN  cd /tmp/ \
  && wget https://github.com/mariusae/trickle/archive/09a1d955c6554eb7e625c99bf96b2d99ec7db3dc.zip \
  && unzip *.zip \
  && cd trickle-* \
  &&  autoreconf -i \
  && CFLAGS="-I/usr/include/tirpc -ltirpc" ./configure \
  && make  install-exec-am
ENTRYPOINT /usr/local/bin/trickle

works for me

@jonathonf
Copy link

This seems to be a duplicate of #16 ?

@clunietp
Copy link

DracoBlue's answer allowed compilation but trickle still had a runtime error. I needed to change make install-exec-am to make install-exec-am install-trickleoverloadDATA to solve the problem; now trickle can run in foreground mode (-s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants