Bug 2219521

Summary: [RHEL 8.x?] backport build fix to add symbol versions
Product: Red Hat Enterprise Linux 8 Reporter: Rajesh Dulhani <rdulhani>
Component: json-cAssignee: Tomas Korbar <tkorbar>
Status: CLOSED NOTABUG QA Contact: FrantiĊĦek Hrdina <fhrdina>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 8.6CC: egarver, fhrdina, jorton, pemensik, psklenar, tkorbar
Target Milestone: rcKeywords: AutoVerified, TestCaseProvided, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2001063 Environment:
Last Closed: 2023-09-04 11:29:31 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:
Bug Depends On: 2001063    
Bug Blocks: 2001067, 2021812, 2021813, 2021814, 2021815, 2021816, 2021817, 2021818, 2021819, 2021823, 2021824, 2021825, 2021826, 2021827, 2021828, 2021829, 2021832, 2021833, 2021834    

Comment 3 Eric Garver 2023-07-05 13:18:16 UTC
`nm` in RHEL-8 does not appear to support symbols. Using objdump shows what is expected. It is versioned.

IIRC, the user would need to _rebuild_ their application for the versioned symbols to be used by their binary. Old binaries will still use the unversioned symbols.

--->8---

[root@vm-rhel8 ~]# objdump -T /usr/lib64/libjson-c.so.* |grep json_object_get$
0000000000004990 g    DF .text  0000000000000012  JSONC_0.14  json_object_get
0000000000004990 g    DF .text  0000000000000012  JSONC_0.14  json_object_get

[root@vm-rhel8 ~]# rpm -q -i json-c
Name        : json-c
Version     : 0.13.1
Release     : 3.el8
Architecture: x86_64

Comment 7 Red Hat Bugzilla 2024-01-03 04:25:23 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days