einpoklum
einpoklum

Reputation: 132128

How can I tell whether I need the tirpc library for RPC calls or not?

(Partially a followup to this question.)

I've noticed, that on some Linux distributions, one can make RPC-related API calls without linking against a special library; while on others, one needs to depend on libtirpc - its include files and shared library. Example: SLES 11 is of the former kind, and SLES 15 SP 4 is of the latter kind.

My question: How can I reliably tell whether I need to link against tirpc or not? Is there some simple rule I could apply, or do I have no recourse other than some try_compile() with a small RPC program? In the latter case - what would be a minimal appropriate program to try_compile()?

Upvotes: 1

Views: 26

Answers (0)

Related Questions