Bug 880833

Summary: [RFE] libelf provides gelf_msize, elfutils-libelf can provide this as well
Product: Red Hat Enterprise Linux 6 Reporter: jcpunk
Component: elfutilsAssignee: Petr Machata <pmachata>
Status: CLOSED WONTFIX QA Contact: qe-baseos-tools-bugs
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.3CC: drepper, mjw, mnewsome
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-03 18:43:20 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:
Embargoed:
Attachments:
Description Flags
patch to add gelf_msize (code from libelf-0.8.13) none

Description jcpunk 2012-11-27 20:54:10 UTC
Created attachment 653114 [details]
patch to add gelf_msize (code from libelf-0.8.13)

Description of problem: I've an application that wishes to utilize these symbols.  However, I can't compile it due to the missing symbol.


Version-Release number of selected component (if applicable):elfutils-0.152-1.el6


How reproducible: 100%


Steps to Reproduce:
1. attempt to compile something that works fine with libelf-0.8.13
2. fail
3.
  
Actual results:
unable to compile

Expected results:
able to use elfutils-libelf instead of libelf since one is supported.

Additional info:

An opensource program using this symbol
http://eggy.yolky.org/pylibelf/static/docs/index.html

Comment 2 Petr Machata 2012-11-30 15:27:44 UTC
Is there any documentation on what this function should do?  And in particular, why gelf_fsize wouldn't do?  From what's in libelf it looks like there's a separate type hierarchy defined over character arrays instead of the actual types, but the resulting layout is the same.  gelf_fsize should therefore give the same results as gelf_msize.  Since the latter is utterly non-standard, undocumented and seemingly redundant, I'm disinclined to implement and support this.

Comment 3 jcpunk 2012-12-03 17:10:12 UTC
gelf_fsize works for me, didn't realize they were the same in the end.