Bug 3944

Summary: no weak symbols for overriding functions in glibc-2.1-6
Product: [Retired] Red Hat Linux Reporter: Tim Potter <tim.potter>
Component: glibcAssignee: Cristian Gafton <gafton>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-07-28 05:20:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tim Potter 1999-07-08 06:31:44 UTC
There don't seem to be any weak symbols for (at least) the
fd I/O functions which makes it impossible to wrap libc
functions using the standard _fname or __fname trick.  I'm
trying to build the smbwrapper program from the Samba
source.  They seemed to be present in glibc-2.0.

acronym:/scratch/1/lib$ nm libc-2.0.7.so | grep opendir
0005ae80 T __opendir
0005ae80 W opendir

acronym:/scratch/1/lib$ nm /lib/libc-2.1.1.so | grep opendir
0008b4a0 t __opendir
0008b4a0 W opendir

Comment 1 Cristian Gafton 1999-07-28 05:20:59 UTC
the __xxx symbols are internal to glibc and should not be used. A new
version of smbmount should fix this.