Bug 21143 - glibc 2.1.94-3 does not function correctly with libX11.so
Summary: glibc 2.1.94-3 does not function correctly with libX11.so
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 7.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-11-20 20:57 UTC by Tyrel
Modified: 2016-11-24 15:17 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-11-21 16:31:10 UTC
Embargoed:


Attachments (Terms of Use)

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!




Note You need to log in before you can comment on or make changes to this bug.