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

/usr/bin/install: cannot stat './libtrickle.so': No such file or directory #16

Open
ibrokemypie opened this issue Jun 20, 2017 · 5 comments

Comments

@ibrokemypie
Copy link

libtrickle.so is not being built, it does not exist and I can't see how it can. Trickle therefore refuses to install.

@seanbeaton
Copy link

Having the same issue on CentOS 7.3.1611.

@freefengeli
Copy link

me too!

@YuGiOhJCJ
Copy link

YuGiOhJCJ commented Sep 20, 2017

Same error with trickle 66551ad on Slackware64 14.2.
It happens during the "make install" step.
Here is the output:

$ CFLAGS="-I/usr/include/tirpc" LDFLAGS="-ltirpc" ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
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-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/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... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-pc-linux-gnu/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... mt
checking if mt 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... no
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-pc-linux-gnu/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... yes
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... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... 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... yes
checking asm/poll.h presence... yes
checking for asm/poll.h... yes
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... no
checking for strlcpy... no
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/build/trickle/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47'
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
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o strlcat.o strlcat.c
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o strlcpy.o strlcpy.c
/bin/sh ./libtool  --tag=CC   --mode=link gcc -Wall -Icompat  -I/usr/include/tirpc  -ltirpc -o trickle trickle.o util.o getopt.o strlcat.o strlcpy.o -lnsl  -ldl
libtool: link: gcc -Wall -Icompat -I/usr/include/tirpc -o trickle trickle.o util.o getopt.o strlcat.o strlcpy.o  /usr/lib64/libtirpc.so -lpthread -lnsl -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 conf.c:55:0:
/usr/include/string.h:140:12: note: expected ‘const char *’ but argument is of type ‘u_char * {aka unsigned char *}’
 extern int strcmp (const char *__s1, const char *__s2)
            ^~~~~~
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 conf.c:55:0:
/usr/include/string.h:140:12: note: expected ‘const char *’ but argument is of type ‘u_char * {aka unsigned char *}’
 extern int strcmp (const char *__s1, const char *__s2)
            ^~~~~~
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/sh ./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 strlcat.o strlcpy.o -lnsl  -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 strlcat.o strlcpy.o  /usr/lib64/libtirpc.so -lpthread -levent -lnsl -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/sh ./libtool  --tag=CC   --mode=link gcc -Wall -Icompat  -I/usr/include/tirpc  -ltirpc -o tricklectl tricklectl.o trickledu.o atomicio.o xdr.o strlcat.o strlcpy.o -lnsl  -ldl
libtool: link: gcc -Wall -Icompat -I/usr/include/tirpc -o tricklectl tricklectl.o trickledu.o atomicio.o xdr.o strlcat.o strlcpy.o  /usr/lib64/libtirpc.so -lpthread -lnsl -ldl
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o strlcat.lo strlcat.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c strlcat.c  -fPIC -DPIC -o .libs/strlcat.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c strlcat.c -o strlcat.o >/dev/null 2>&1
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -I/usr/include/tirpc -c -o strlcpy.lo strlcpy.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c strlcpy.c  -fPIC -DPIC -o .libs/strlcpy.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Icompat -I/usr/include/tirpc -c strlcpy.c -o strlcpy.o >/dev/null 2>&1
/bin/sh ./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:681: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:719: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:752: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:793: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:827: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:865: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:899: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:935: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:1094: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:1095: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:1154: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:1160: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/sh ./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/sh ./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/sh ./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/sh ./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/sh ./libtool --mode=link gcc -I/usr/include/tirpc -o libtmptrickle-overload.so.la                \
	-rpath /usr/local/lib/trickle strlcat.lo strlcpy.lo trickle-overload.lo bwstat.lo trickledu.lo atomicio.lo xdr.lo -lnsl  -ldl     \
	-ltirpc -module -avoid-version -nostdlib -ldl
libtool: link: gcc -shared  -fPIC -DPIC  .libs/strlcat.o .libs/strlcpy.o .libs/trickle-overload.o .libs/bwstat.o .libs/trickledu.o .libs/atomicio.o .libs/xdr.o   -lnsl /usr/lib64/libtirpc.so -lpthread -ldl    -Wl,-soname -Wl,libtmptrickle-overload.so.so -o .libs/libtmptrickle-overload.so.so
libtool: link: ar cru .libs/libtmptrickle-overload.so.a  strlcat.o strlcpy.o trickle-overload.o bwstat.o trickledu.o atomicio.o xdr.o
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/build/trickle/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47'
$ make install DESTDIR=/tmp/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47
/bin/sh ./libtool  --tag=CC   --mode=link gcc -Wall -Icompat  -I/usr/include/tirpc  -ltirpc -o trickle trickle.o util.o getopt.o strlcat.o strlcpy.o -lnsl  -ldl
libtool: link: gcc -Wall -Icompat -I/usr/include/tirpc -o trickle trickle.o util.o getopt.o strlcat.o strlcpy.o  /usr/lib64/libtirpc.so -lpthread -lnsl -ldl
/bin/sh ./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 strlcat.o strlcpy.o -lnsl  -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 strlcat.o strlcpy.o  /usr/lib64/libtirpc.so -lpthread -levent -lnsl -ldl
/bin/sh ./libtool  --tag=CC   --mode=link gcc -Wall -Icompat  -I/usr/include/tirpc  -ltirpc -o tricklectl tricklectl.o trickledu.o atomicio.o xdr.o strlcat.o strlcpy.o -lnsl  -ldl
libtool: link: gcc -Wall -Icompat -I/usr/include/tirpc -o tricklectl tricklectl.o trickledu.o atomicio.o xdr.o strlcat.o strlcpy.o  /usr/lib64/libtirpc.so -lpthread -lnsl -ldl
make[1]: Entering directory `/tmp/build/trickle/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47'
 /bin/mkdir -p '/tmp/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/usr/local/bin'
  /bin/sh ./libtool   --mode=install /bin/ginstall -c trickle trickled tricklectl '/tmp/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/usr/local/bin'
libtool: install: /bin/ginstall -c trickle /tmp/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/usr/local/bin/trickle
libtool: install: /bin/ginstall -c trickled /tmp/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/usr/local/bin/trickled
libtool: install: /bin/ginstall -c tricklectl /tmp/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/usr/local/bin/tricklectl
 /bin/mkdir -p '/tmp/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/usr/local/share/man/man1'
 /bin/ginstall -c -m 644 trickle.1 '/tmp/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/usr/local/share/man/man1'
 /bin/mkdir -p '/tmp/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/usr/local/share/man/man5'
 /bin/ginstall -c -m 644 trickled.conf.5 '/tmp/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/usr/local/share/man/man5'
 /bin/mkdir -p '/tmp/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/usr/local/share/man/man8'
 /bin/ginstall -c -m 644 trickled.8 '/tmp/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/usr/local/share/man/man8'
 /bin/mkdir -p '/tmp/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/usr/local/lib'
 /bin/ginstall -c -m 644 ./libtrickle.so '/tmp/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/usr/local/lib'
/bin/ginstall: cannot stat './libtrickle.so': No such file or directory
make[1]: *** [install-overloadDATA] Error 1
make[1]: Leaving directory `/tmp/build/trickle/trickle-66551ad94ad3d8af83e1e4422804676ac8762f47'
make: *** [install-am] Error 2

Do you have a fix for that?

@r2938jlfsfsh
Copy link

There's probably a better fix, but updating the Makefile as follows worked for me:
############################################

Commented out:

###libtrickle.so: trickle-overload.c atomicio.c
###########################################

Added:

libtrickle.so: trickle-overload.lo atomicio.lo
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la
-rpath $(libdir)/trickle trickle-overload.lo atomicio.lo $(LIBS)
$(LDFLAGS) -module -avoid-version -nostdlib -ldl
@rm -f [email protected] [email protected]* $@
@cp .libs/[email protected] $@
@rm -f .libs/libtmp$@.*
#############################################

@YuGiOhJCJ
Copy link

Thanks it works.
As the file Makefile is not part of this repository, I guess it is better to apply your patch on the file Makefile.am with the command patch -p0 < trickle-66551ad94ad3d8af83e1e4422804676ac8762f47.patch then run the command autoreconf -fi to generate the file Makefile.
Here is the patch:

$ cat trickle-66551ad94ad3d8af83e1e4422804676ac8762f47.patch 
diff -ruN trickle-66551ad94ad3d8af83e1e4422804676ac8762f47.ori/Makefile.am trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/Makefile.am
--- trickle-66551ad94ad3d8af83e1e4422804676ac8762f47.ori/Makefile.am	2017-10-25 01:20:13.943420040 +0200
+++ trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/Makefile.am	2017-10-25 01:20:30.810419348 +0200
@@ -31,10 +31,14 @@
 AM_CFLAGS = -Wall -Icompat @EVENTINC@
 
 overloaddir = $(libdir)
-overload_DATA = libtrickle.so
 
-libtrickle.so: trickle-overload.c atomicio.c
-$(overload_DATA):
+libtrickle.so: trickle-overload.lo atomicio.lo
+	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o [email protected]
+		-rpath $(libdir)/trickle trickle-overload.lo atomicio.lo $(LIBS)
+		$(LDFLAGS) -module -avoid-version -nostdlib -ldl
+	@rm -f [email protected] [email protected]* $@
+	@cp .libs/[email protected] $@
+	@rm -f .libs/libtmp$@.*
 
 CLEANFILES = *.so
 

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

5 participants