[Xymon] Compiling Xymon.client on Centos7 arm (Pi4)

Tim McCloskey tm at zwizard.com
Sat Mar 27 01:34:11 CET 2021


usr/bin/ld: cannot find -ltirpc
collect2: error: ld returned 1 exit status
make[1]: *** [../client/xymon] Error 1
make: *** [common-client] Error 2

Have you tried adding the missing package?  I saw this somewhere recently
on a centos7 box, though I don't recall what I was building at the time.

Do a yum search for the correct package name - on debian it looks like:

apt-cache search tirpc

libntirpc-dev - new transport-independent RPC library - development files
libntirpc3.0 - new transport-independent RPC library
libtirpc-common - transport-independent RPC library - common files
libtirpc-dev - transport-independent RPC library - development files
libtirpc3 - transport-independent RPC library




On Fri, Mar 26, 2021 at 1:52 PM Josh Luthman <josh at imaginenetworksllc.com>
wrote:

> I'm having issues getting it to compile.  I'm hoping someone can point me
> in the right direction!
>
> [root at dns1 xymon-4.3.30]# make -s
> Checking for socklen_t
> Checking for snprintf
> Checking for vsnprintf
> Checking for rpc/rpcent.h
> Checking for sys/select.h
> Checking for u_int32_t typedef
> Checking for PATH_MAX definition
> Checking for SHUT_RD/WR/RDWR definitions
> Checking for strtoll()
> Checking for uname
> Checking for setenv
> config.h created
> holidays.c: In function    printholidays   :
> holidays.c:601:13: warning: unknown option after    #pragma GCC diagnostic
>    kind [-Wpragmas]
>      #pragma GCC diagnostic ignored "-Wformat-truncation"
>              ^
> stackio.c: In function    addtofnlist   :
> stackio.c:385:11: warning: unknown option after    #pragma GCC diagnostic
>    kind [-Wpragmas]
>    #pragma GCC diagnostic ignored "-Wformat-truncation"
>            ^
> suid.c: In function    drop_root   :
> suid.c:45:3: warning: implicit declaration of function    abort
>  [-Wimplicit-function-declaration]
>    abort();
>    ^
> suid.c:45:3: warning: incompatible implicit declaration of built-in
> function    abort    [enabled by default]
> suid.c: In function    get_root   :
> suid.c:54:3: warning: incompatible implicit declaration of built-in
> function    abort    [enabled by default]
>    abort();
>    ^
> timefunc.c: In function    histlogtime   :
> timefunc.c:398:10: warning: unknown option after    #pragma GCC diagnostic
>    kind [-Wpragmas]
>   #pragma GCC diagnostic ignored "-Wformat-truncation"
>           ^
> /usr/bin/ld: cannot find -ltirpc
> collect2: error: ld returned 1 exit status
> make[1]: *** [../client/xymon] Error 1
> make: *** [common-client] Error 2
>
>
> Josh Luthman
> 24/7 Help Desk: 937-552-2340
> Direct: 937-552-2343
> 1100 Wayne St
> Suite 1337
> Troy, OH 45373
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20210326/ade089ee/attachment.htm>


More information about the Xymon mailing list