Skip Menu |

This queue is for tickets about the Quota CPAN distribution.

Report information
The Basics
Id: 128302
Status: resolved
Priority: 0/
Queue: Quota

People
Owner: Nobody in particular
Requestors: mstauber [...] blueonyx.it
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.7.3



Subject: Compile issue w/ Quota-1.7.2 on RHEL8 beta?
Date: Sun, 20 Jan 2019 16:06:49 -0500
To: bug-Quota [...] rt.cpan.org
From: Michael Stauber <mstauber [...] blueonyx.it>
Hello, I'm currently trying to build an RPM of perl-Quota v1.7.2 on a RHEL8 beta in preparation of our release of BlueOnyx for CentOS8. I've run into the following interesting problem during compile: ----------------------------------------------- [...] Warning (mostly harmless): No library found for -lrpcsvc [...] In file included from linuxapi.c:13: myconfig.h:18:10: fatal error: rpc/rpc.h: No such file or directory #include <rpc/rpc.h> ^~~~~~~~~~~ compilation terminated. make: *** [Makefile:343: linuxapi.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from Quota.xs:11: myconfig.h:18:10: fatal error: rpc/rpc.h: No such file or directory #include <rpc/rpc.h> ----------------------------------------------- In the past rpc/rpc.h was provided by "glibc-headers" like shown here on CentOS 7: [root@5209r ~]# rpm -ql glibc-headers|grep "rpc/rpc.h" /usr/include/rpc/rpc.h On RHEL8 that isn't the case: [root@5210r]# rpm -ql glibc-headers|grep "rpc" /usr/include/rpc /usr/include/rpc/netdb.h There isn't a glibc-compat yet, so I'm kind of puzzled how to proceed. Any ideas? Many thanks! -- With best regards Michael Stauber http://www.blueonyx.it
Hi Michael, A quick Web search found an explanation: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/F2NRCEXDDUF6WWNPSOMXRJS6BPMTEEVJ/ According to the above, headers rpc/rpc.h et.al. are split off from glibc into separate package libtirpc: https://sourceforge.net/projects/libtirpc/ Could you fix your problem by adding a dependency for the Quota package on libtirpc?
Subject: Re: [rt.cpan.org #128302] Compile issue w/ Quota-1.7.2 on RHEL8 beta - solved
Date: Thu, 28 Feb 2019 17:11:24 -0500
To: bug-Quota [...] rt.cpan.org
From: Michael Stauber <mstauber [...] blueonyx.it>
Hi Tom. Show quoted text
> Could you fix your problem by adding a dependency for the Quota package on libtirpc?
Many thanks for getting back to me. And my apologies for replying so late. I had to put perl-Quota on the backburner as I was chasing around 300 other dependencies that RHEL8 doesn't satisfy yet. \o/ I just found and fixed the issue why perl-Quota 1.7.2 wouldn't build on RHEL8 beta for me. From the official YUM repositories I had installed "libtirpc" and "libtirpc-devel". The problem was pointing perl-Quota towards it during build. I tried this: perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="-I/usr/include/tirpc/ -L/lib64 -lrpcsvc" Which may or may not have been the correct syntax, as it didn't get me there. In the end I just went in and edited the auto-generated Makefile and changed the LDDLFLAGS and LDFLAGS to this: LDDLFLAGS = -lpthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/lib64 -ltirpc LDFLAGS = -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -ltirpc -L/lib64 With these flags it now builds fine and works for me. These flags can perhaps be set correctly via flags during "perl Makefile.PL", but if so, then I haven't figured the correct syntax out. I also create a pastebin entry with a bit more information about the configure, "make build", "make install" stages and what ldd reported afterwards about Quota.so: https://pastebin.com/RgXTFsRA In any case: Many thanks! -- With best regards Michael Stauber
I made a new release 1.7.3 which has an automatism in Makefile.PL that switches from -lrpcsvc to -ltirpc (via the LIBS parameter to WriteMakefile) when /usr/include/tirpc exists. There'll also be a warning about the dependency when /usr/include/rpc/rpc.h does not exist. Note in Ubuntu/Debian tirpc exists, but rpcsvc does too and glibc still has the RPC headers. So it's a bit of a messy situation.
Subject: Re: [rt.cpan.org #128302] Compile issue w/ Quota-1.7.2 on RHEL8 beta?
Date: Sun, 29 Mar 2020 10:33:21 -0500
To: bug-Quota [...] rt.cpan.org
From: Michael Stauber <mstauber [...] blueonyx.it>
Hi Tom, Show quoted text
> So it's a bit of a messy situation.
Many thanks for the fix. In the meantime we've transitioned our open source project away from Perl-Quota and I don't think we'll be coming back. -- With best regards Michael Stauber