ExRootAnalysis and deprecated Sun RPC headers

Asked by Hadrien Grasland on 2018-05-30

Hi,

I'm coming from the Belle 2 experiment, where we have some build issues with ExRootAnalysis on recent Linux distributions. Since you are distributing this package, we thought this might be the right place to ask questions about it.

The heart of the issue is that some parts of ExRootAnalysis (in particular the STDHEP reader) rely on Sun RPC headers, such as rpc/types.h and rpc/xdr.h. This functionality was previously provided by glibc but has long been deprecated are is now disabled by default since glibc 2.26. Quoting the release notes...

"Sun RPC is deprecated. The rpcgen program, librpcsvc, and Sun RPC headers
will only be built and installed when the GNU C Library is configured with
--enable-obsolete-rpc. This allows alternative RPC implementations, such
as TIRPC or rpcsvc-proto, to be used."

For more background behind this glibc change, see https://fedoraproject.org/wiki/Changes/SunRPCRemoval .

This raises a number of questions :

- Is this part of the ExRootAnalysis package still used?
- Can the use of Sun RPC be avoided in this case?

If the answer to these questions is "yes" and "no", then you will need to switch to another Sun RPC implementation. I have checked that TIRPC works fine if you add the proper "-ltirpc" flag in the ExRootAnalysis build system.

Cheers,
Hadrien

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
Pavel Demin Edit question
Solved by:
Pavel Demin
Solved:
2018-05-30
Last query:
2018-05-30
Last reply:
2018-05-30
Best Pavel Demin (pavel-demin) said : #1

The answer to these questions is "yes" and "yes".

I've just replaced the Sun RPC code with ExRootXDRReader:

https://bazaar.launchpad.net/~mgtools/mg5amcnlo/MG_MG_v4/revision/32

Hadrien Grasland (hgraslan) said : #2

Thanks a lot !

Hadrien Grasland (hgraslan) said : #3

Thanks Pavel Demin, that solved my question.

Thanks a lot Pavel,

Your changes should be online now.

Thanks,

Olivier

> On 30 May 2018, at 17:07, Pavel Demin <email address hidden> wrote:
>
> Question #669767 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/669767
>
> Status: Open => Answered
>
> Pavel Demin proposed the following answer:
> The answer to these questions is "yes" and "yes".
>
> I've just replaced the Sun RPC code with ExRootXDRReader:
>
> https://bazaar.launchpad.net/~mgtools/mg5amcnlo/MG_MG_v4/revision/32
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.