Bug 21143

Summary: glibc 2.1.94-3 does not function correctly with libX11.so
Product: [Retired] Red Hat Linux Reporter: Tyrel <tyrel_mcqueen>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: fweimer
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-11-21 16:31:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tyrel 2000-11-20 20:57:02 UTC
I try to compile povray 3.1g, and it gets to the linking step and reports:
/usr/X11R6/lib/libX11.so: undefined reference to `getpwuid_r.2'
/usr/X11R6/lib/libX11.so: undefined reference to `shmctl'
/usr/X11R6/lib/libX11.so: undefined reference to `getpwnam_r.2'

This is on a RedHat Linux 7 system will ALL of the updates listed at 
redhat's site as of 11/20/2000.  This includes the update that make glibc 
version 2.1.94-3

Comment 1 Jakub Jelinek 2000-11-21 07:08:00 UTC
By any chance, doesn't it use egcs compiler as opposed to gcc?
egcs is the compiler for binary compatibility with glibc 2.1
which has glibc 2.1 shared libs in the search path.
Either change it to use gcc as compiler, or make sure it includes
-L/usr/lib on the gcc command lines (if you want povray compiled
by egcs 1.1.2 but against glibc 2.2) or make sure
-L/usr/i386-glibc21-linux/lib is present before -L/usr/X11R6/lib
if you want egcs 1.1.2 compiled povray against glibc 2.1.
This is needed because explicit -L/usr/X11R6/lib causes it to pick
libX11 libraries compiled against glibc 2.2, but then compiler's
-L/usr/i386-glibc21-linux/lib internal path is used and that takes
glibc2.1 in.

Comment 2 Tyrel 2000-11-21 07:55:10 UTC
It was indeed using egcs.  I'll try your suggestions tomorrow when I have time

Comment 3 Tyrel 2000-11-21 16:31:08 UTC
I followed the suggestion that I put -L/usr/lib in my library path.  This fixed 
the problem.

Thanks for the help guys, and sorry for reporting a ghost bug!