Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - glibc-4.2 missing on RHEL 5.0 system: (3 Items)
   
glibc-4.2 missing on RHEL 5.0 system  
I'm trying to use the QNX gcc 4.2.1 toolchain as downloaded from the website. It looks like the ppc assembler was linked
 against glibc-2.4 which our RHEL 5.x 32-bit systems do not have installed. Curiously, other bits of the toolchain 
(preprocessor, cc1) work fine. 
 
$ /scratch/qnx632/host/linux/x86/usr/bin/ntoppc-as-2.17
/scratch/qnx632/host/linux/x86/usr/bin/ntoppc-as-2.17: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /
scratch/qnx632/host/linux/x86/usr/bin/ntoppc-as-2.17)
 
I downloaded and built glibc-2.4, installing it off to the side; attempting to install glibc is almost always a bad idea
. 
 
Setting LD_LIBRARY_PATH is insufficient to trick the dynamic linker into finding it. See strace output below.
 
Any idea how I can make the toolchain work without actually installing glibc-2.4? 
 
Thanks... Dave Barach
 

--------------------------------------------------------------------------------

 
$ strace /scratch/qnx632/host/linux/x86/usr/bin/ntoppc-as-2.17
execve("/scratch/qnx632/host/linux/x86/usr/bin/ntoppc-as-2.17", ["/scratch/qnx632/host/linux/x86/u"...], [/* 45 vars */
]) = 0
uname({sys="Linux", node="sw-eclipse-13", ...}) = 0
brk(0)                                  = 0x9ab8000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/scratch/dbarach/glibc/glibc-2.4/lib/tls/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/scratch/dbarach/glibc/glibc-2.4/lib/tls/i686/sse2", 0xbfe23e20) = -1 ENOENT (No such file or directory)
open("/scratch/dbarach/glibc/glibc-2.4/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/scratch/dbarach/glibc/glibc-2.4/lib/tls/i686", 0xbfe23e20) = -1 ENOENT (No such file or directory)
open("/scratch/dbarach/glibc/glibc-2.4/lib/tls/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/scratch/dbarach/glibc/glibc-2.4/lib/tls/sse2", 0xbfe23e20) = -1 ENOENT (No such file or directory)
open("/scratch/dbarach/glibc/glibc-2.4/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/scratch/dbarach/glibc/glibc-2.4/lib/tls", 0xbfe23e20) = -1 ENOENT (No such file or directory)
open("/scratch/dbarach/glibc/glibc-2.4/lib/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/scratch/dbarach/glibc/glibc-2.4/lib/i686/sse2", 0xbfe23e20) = -1 ENOENT (No such file or directory)
open("/scratch/dbarach/glibc/glibc-2.4/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/scratch/dbarach/glibc/glibc-2.4/lib/i686", 0xbfe23e20) = -1 ENOENT (No such file or directory)
open("/scratch/dbarach/glibc/glibc-2.4/lib/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/scratch/dbarach/glibc/glibc-2.4/lib/sse2", 0xbfe23e20) = -1 ENOENT (No such file or directory)
open("/scratch/dbarach/glibc/glibc-2.4/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/scratch/dbarach/glibc/glibc-2.4/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=75160, ...}) = 0
old_mmap(NULL, 75160, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fed000
close(3)                                = 0
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\316"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1454802, ...}) = 0
old_mmap(0x6d8000, 1223900, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x6d8000
old_mmap(0x7fd000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x124000) = 0x7fd000
old_mmap(0x801000, 7388, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x801000
close(3)                                = 0
writev(2, [{"/scratch/qnx632/host/linux/x86/u"..., 53}, {": ", 2}, {"/lib/tls/libc.so.6", 18}, {": ", 2}, {"version `
GLIBC_2.4\' not found (r"..., 97}, {"\n",...
View Full Message
Re: glibc-4.2 missing on RHEL 5.0 system  
Hey Dave,

Thanks for pointing out that the binutils were linked against a newer glibc. We really shouldn't be doing that since not
 all of our supported hosts use glibc 2.4. I'll post a set of packages linked against an older glibc as soon as possible
.

I think our build of gcc/binutils is actually less complicated than the build of glibc, so if you feel so inclined you 
could build the binutils/gcc and install them over top of the existing package which contain the target libs and qcc 
conf files for 4.2.1.

Regards,

Ryan Mansfield
Re: glibc-4.2 missing on RHEL 5.0 system  
Thanks very much.  Please ping me via unicast e-mail when the rebuilt gcc/binutils pkgs are available.