|
Bugzilla – Full Text Bug Listing |
| Summary: | libtirpc fails with -fno-common | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Martin Liška <martin.liska> |
| Component: | Basesystem | Assignee: | Thomas Blume <thomas.blume> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | alynx.zhou, martin.liska, petr.vorel |
| Version: | Current | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Bug Depends on: | |||
| Bug Blocks: | 1160244 | ||
|
Description
Martin Liška
2020-01-14 09:48:50 UTC
May I please ping this issue? (In reply to Martin Liška from comment #1) > May I please ping this issue? Unfortunately, declaring the problematic variables as extern doesn't work here, maybe because they are supposed to be internal. Therefore I've added the patch below, which makes the package compile: --> diff --git a/src/rpc_com.h b/src/rpc_com.h index 10bec79..ec21f8d 100644 --- a/src/rpc_com.h +++ b/src/rpc_com.h @@ -61,8 +61,8 @@ void __xprt_unregister_unlocked(SVCXPRT *); void __xprt_set_raddr(SVCXPRT *, const struct sockaddr_storage *); -SVCXPRT **__svc_xports; -int __svc_maxrec; +SVCXPRT **__svc_xports __attribute__ ((common)); +int __svc_maxrec __attribute__ ((common)); #ifdef __cplusplus } -- 2.16.4 --< Would that be ok? I have testpackages at: https://build.opensuse.org/package/show/home:tsaupe:branches:Base:System:libtirpc-bsc1160875/libtirpc Yes, that will work. Upstream fix works, verified with gcc-10 from devel:gcc and also on Debian gcc-10, so I'm going to backport it http://git.linux-nfs.org/?p=steved/libtirpc.git;a=commitdiff;h=daed7eedba73907730241c5262a5c16c7abedb6f;hp=342aa6c11d8dd2cb7cf5c2db5c38e8ccabbb1b24 Fix: https://build.opensuse.org/request/show/770306 I tested it, but can you please also verify it? (In reply to Petr Vorel from comment #5) > Fix: https://build.opensuse.org/request/show/770306 > I tested it, but can you please also verify it? Yes, this seems fine to me. Thanks for working on that. (In reply to Martin Liška from comment #6) > (In reply to Petr Vorel from comment #5) > > Fix: https://build.opensuse.org/request/show/770306 > > I tested it, but can you please also verify it? > > Yes, this seems fine to me. Thanks for working on that. Indeed, I've missed the upstream patch, thanks Petr. Thanks for confirmation, forwarded to factory as https://build.opensuse.org/request/show/770402 Fixed in devel project. |