This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

why error happen when use my compiled glibc


hi,
                                                      
                               
I want to use compiled glibc to replace default,
I use following steps in my Redhat9:
                                                      
                               
1)ldd /usr/bin/vim
...
libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
...
2)
/lib/tls/libc.so.6
...
GNU C Library stable release version 2.3.2,...
...
Compiled by GNU CC version 3.2.2 20030222 (Red Hat
Linux 3.2.2-5).
...
3)download gcc glibc linuxthreads with proper version
gcc-3.2.2.tar.bz2
glibc-2.3.2.tar.gz
glibc-linuxthreads-2.3.2.tar.gz
4)install gcc & run gcc -v to make sure gcc is 3.2.2
5)use following to configure glibc
../configure --enable-add-ons=linuxthreads
--prefix=/usr/local/glibc2
6)make
7)make install
                                                      
                               
8)export LD_LIBRARY_PATH=/usr/local/glibc2/lib2
to use my glibc
9)run vi get following error:
vim: relocation error:
/usr/local/glibc2/lib/libc.so.6: symbol
__libc_stack_end, version GLIBC_PRIVATE not defined in
file ld-linux.so.2 with link time reference
                                                      
                               
10)compare different of default glibc and my glibc
/lib/tls/libc.so.6 | tee result_0
/usr/local/glibc2/lib/libc.so.6| tee result_1
diff -u result_0 result_1
--- result_0    2005-02-11 17:11:32.000000000 -0500
+++ result_1    2005-02-11 17:11:53.000000000 -0500
@@ -3,13 +3,13 @@
 This is free software; see the source for copying
conditions.
 There is NO warranty; not even for MERCHANTABILITY or
FITNESS FOR A
 PARTICULAR PURPOSE.
-Compiled by GNU CC version 3.2.2 20030222 (Red Hat
Linux 3.2.2-5).
-Compiled on a Linux 2.4.20 system on 2003-03-13.
+Compiled by GNU CC version 3.2.2.
+Compiled on a Linux 2.4.20 system on 2005-02-11.
 Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and
others
-       NPTL 0.29 by Ulrich Drepper
+       linuxthreads-0.10 by Xavier Leroy
        BIND-8.2.3-T5B
+       libthread_db work sponsored by Alpha Processor
Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten
Kukuk
-Thread-local storage support included.
 Report bugs using the `glibcbug' script to
<bugs@gnu.org>.

11)use ldd -v to compile
======================================================
ldd -v /lib/tls/libc.so.6
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Version information:
/lib/tls/libc.so.6:
   ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
   ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
   ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2
   ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
======================================================
ldd -v ldd -v /usr/local/glibc2/lib/libc.so.6
/usr/local/glibc2/lib/ld-linux.so.2 =>
/usr/local/glibc2/lib/ld-linux.so.2 (0x40000000)
Version information:
/usr/local/glibc2/lib/libc.so.6:
 ld-linux.so.2 (GLIBC_2.1) =>
/usr/local/glibc2/lib/ld-linux.so.2
 ld-linux.so.2 (GLIBC_2.0) =>
/usr/local/glibc2/lib/ld-linux.so.2
 ld-linux.so.2 (GLIBC_PRIVATE) =>
/usr/local/glibc2/lib/ld-linux.so.2

                                                      
                               
a)What's the reason of step 9)?
b)In step 11), GLIBC_2.3 is not appear in my glibc,
what's the  meaning of it?

Thanks a lot for any suggestion or comment.
gan



		
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page ? Try My Yahoo!
http://my.yahoo.com 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]