Bug 1040593

Summary: Incompatibility between libtirpc and glibc's rpcgen
Product: Red Hat Enterprise Linux 7 Reporter: Steve Dickson <steved>
Component: libtirpcAssignee: Steve Dickson <steved>
Status: CLOSED CURRENTRELEASE QA Contact: JianHong Yin <jiyin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: eguan, jlayton, kzhang, mike, qe-baseos-daemons, steved
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libtirpc-0.2.4-0.1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 862318 Environment:
Last Closed: 2014-06-13 11:13:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 862318    
Bug Blocks:    

Description Steve Dickson 2013-12-11 16:42:48 UTC
+++ This bug was initially created as a clone of Bug #862318 +++

Description of problem:
There seems to be an incompatibility between libtirpc and glibc's rpcgen. What glibc calls (in rpc/xdr.h) xdr_quad_t, libtirpc calls (in tirpc/rpc/xdr.h) xdr_int64_t.

Version-Release number of selected component (if applicable):
glibc-2.15-57.fc17
libtirpc-0.2.2-2.1.fc17

How reproducible:
Every time

Steps to Reproduce:
1. Define an XDR RPC interface that uses the hyper type
2. Use rpcgen to generate stub code
3. Compile the code, using -I/usr/include/tirpc and -ltirpc
  
Actual results:
The code will not compile because the stub functions use xdr_quad_t, but tirpc/rpc/xdr.h defines xdr_int64_t. Compiling against rpc/xdr.h but linking against libtirpc succeeds, but the result segfaults at runtime.

--- Additional comment from Fedora End Of Life on 2013-04-03 13:42:30 EDT ---

This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

--- Additional comment from Fedora Update System on 2013-12-11 10:34:34 EST ---

libtirpc-0.2.4-0.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/libtirpc-0.2.4-0.fc19

--- Additional comment from Fedora Update System on 2013-12-11 10:36:12 EST ---

libtirpc-0.2.4-0.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/libtirpc-0.2.4-0.fc20

Comment 5 JianHong Yin 2013-12-20 03:31:39 UTC
[root@dhcp12-144 ~]# nm -D /lib64/libtirpc.so.1* | grep xdr_quad_t
[root@dhcp12-144 ~]# rpm -Uvh libtirpc-
libtirpc-0.2.4-0.1.el7.x86_64.rpm        libtirpc-devel-0.2.4-0.1.el7.x86_64.rpm
[root@dhcp12-144 ~]# rpm -Uvh libtirpc-0.2.4-0.1.el7.x86_64.rpm 
准备中...                          ################################# [100%]
正在升级/安装...
   1:libtirpc-0.2.4-0.1.el7           ################################# [ 50%]
正在清理/删除...
   2:libtirpc-0.2.3-3.el7             ################################# [100%]
[root@dhcp12-144 ~]# nm -D /lib64/libtirpc.so.1* | grep xdr_quad_t
000000000001ae50 T xdr_quad_t
000000000001ae50 T xdr_quad_t
[root@dhcp12-144 ~]#

Comment 6 Ludek Smid 2014-06-13 11:13:48 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.