Skip Menu |
 

This queue is for tickets about the Quota CPAN distribution.

Report information
The Basics
Id: 128302
Status: open
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: (no value)



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>
Download (untitled) / with headers
text/plain 1.1k
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
Download (untitled) / with headers
text/plain 406b
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>
Download (untitled) / with headers
text/plain 1.4k
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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.