LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 12-05-2009, 03:32 PM   #1
aleppos
LQ Newbie
 
Registered: Aug 2005
Location: syria
Posts: 9

Rep: Reputation: 0
problem installing glibc-2.11


hello,

i try install "glibc-2.11" but i get this message

-------------------
Use of uninitialized value in string ne at scripts/test-installation.pl line 164, <LDD> line 19.
Library libgcc_s is not correctly installed.
Please check your installation!
Offending line of ldd output: libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b510e3c3000)

The script has found some problems with your installation!
Please read the FAQ and the README file and check the following:
- Did you change the gcc specs file (necessary after upgrading from
Linux libc5)?
- Are there any symbolic links of the form libXXX.so to old libraries?
Links like libm.so -> libm.so.5 (where libm.so.5 is an old library) are wrong,
libm.so should point to the newly installed glibc file - and there should be
only one such link (check e.g. /lib and /usr/lib)
You should restart this script from your build directory after you've
fixed all problems!
Btw. the script doesn't work if you're installing GNU libc not as your
primary library!
-------------------


so i make this:
-------------------
add this line
next if ($name eq "gcc_s");
before this line
$found{$name} = 1;
in this file "scripts/test-installation.pl"
-------------------
and i run this file "./scripts/test-installation.pl" without "make install" to ckeck it and i get this resullt "Your new glibc installation seems to be ok."


but before i try "make install" again i open this ticket
http://sourceware.org/bugzilla/show_bug.cgi?id=10962
to see if this is right or wrong, but it's wrong


after i upgrade GCC to 4.4.2 i get this problem
-------------------
gcc: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
-------------------

so i make this
ln -svf /usr/lib/gcc/x86_64-redhat-linux/lib64/libgcc_s.so.1 /lib64/libgcc_s.so.1
ln -svf /lib64/libgcc_s.so.1 /lib64/libgcc_s.so
to gcc work fine but i don't know if this is right or worng


Configured with: ../gcc-4.4.2/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --disable-multilib --enable-clocale=gnu --enable-threads=posix --disable-nls --enable-checking=release --with-system-zlib --with-gnu-as --with-gnu-ld --with-newlib --verbose --with-system-zlib --enable-version-specific-runtime-libs --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-libada --enable-libssp --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/java/jdk --with-cpu=generic --enable-libgcj --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.2 (GCC)

ldd /usr/bin/gcc
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b37095be000)
libc.so.6 => /lib64/libc.so.6 (0x00002b37097d3000)
/lib64/ld-linux-x86-64.so.2 (0x00002b370939e000)


please help me .
 
Old 12-05-2009, 06:12 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,668

Rep: Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544
http://www.gnu.org/software/libc/res....html#building
"Building glibc is quite tricky and has a number of pitfalls....
Never install over a live system. ..."

( Will immidately trash the OS. For ever.)


Are you still using Redhat 9 ? ?
... No applicatons need glibc-2.11 ...

If you want a glibc-2.11, then install Redhat Fedora 12,
.. where it is already included.
So there are twelwe releases between Redhat 9 and today.
Redhat 9 was declared dead and unsupported five years ago.


Instructions for building a new OS from scratch with glibc-2.11
http://www.linuxfromscratch.org/lfs/...ent/index.html
..... .. ..
.....
 
Old 12-05-2009, 10:39 PM   #3
aleppos
LQ Newbie
 
Registered: Aug 2005
Location: syria
Posts: 9

Original Poster
Rep: Reputation: 0
i need glibc to build java and when i try build java i get this problem
error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

and that's mean my installation is incomplete cuz i get this message
Offending line of ldd output: libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b510e3c3000)

i figured my problem in libgcc_s cuz after i upgrade gcc and look for ldd /usr/bin/gcc
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b37095be000)
libc.so.6 => /lib64/libc.so.6 (0x00002b37097d3000)
/lib64/ld-linux-x86-64.so.2 (0x00002b370939e000)

i don't know why it appears libgcc_s.so.1 in ldd ?


i need help cuz i build glibc over live system and it's too dangerous
 
Old 12-06-2009, 05:24 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,668

Rep: Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544
Glibc is already installed. No glibc = No OS.
Glibc is your system ( together with the kernel.)

Please open the terminal :
The command 'ls /lib/libc.so.6'
..will show that it is already present.

You may be missing the ' -devel ' packages :
glibc-common-2.3.2-11.9.i386.rpm
glibc-devel-2.3.2-11.9.i386.rpm
glibc-kernheaders-2.4-8.10.i386.rpm

They are on your install cd , disk 1.
Install these, and you have all 'glibc' installed.
.....
 
Old 12-06-2009, 05:45 AM   #5
aleppos
LQ Newbie
 
Registered: Aug 2005
Location: syria
Posts: 9

Original Poster
Rep: Reputation: 0
yes i have glibc but installation not complete

root@server [~]# ll /lib64/libc.*
lrwxrwxrwx 1 root root 12 2009-11-12 15:56 /lib64/libc.so.6 -> libc-2.11.so*
root@server [~]# ll /usr/lib64/libc.*
-rw-r--r-- 1 root root 20763228 2009-11-12 18:20 /usr/lib64/libc.a
-rw-r--r-- 1 root root 253 2009-11-12 18:20 /usr/lib64/libc.so
root@server [~]# ll /lib64/libc-2.11.so
-rwxr-xr-x 1 root root 8495189 2009-11-12 17:13 /lib64/libc-2.11.so*
 
Old 12-06-2009, 06:15 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,668

Rep: Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544
Looks like a Fedora 12 , x86_64 .

Is that what it is ? ?

Please tell, which Linux you are using, every time
a question is asked !
Like Fedora 12, x86_64
http://linuxsilo.net/docs/smart-questions_en.html
.....
 
Old 12-06-2009, 06:44 AM   #7
aleppos
LQ Newbie
 
Registered: Aug 2005
Location: syria
Posts: 9

Original Poster
Rep: Reputation: 0
root@server [~]# uname --all
Linux server 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
 
Old 12-06-2009, 07:08 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,668

Rep: Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544
2.6.18-164.el5 :
The OS name is "CentOS 5.4", "SL54" or "Redhat EL 5". ?

So how did those "Fedora 12" files got installed into your OS ?
( libc-2.11.so ).


Usually one would just do ..
# yum install glibc-devel glibc-headers
.. to have it all.

.....
 
Old 12-06-2009, 07:22 AM   #9
aleppos
LQ Newbie
 
Registered: Aug 2005
Location: syria
Posts: 9

Original Poster
Rep: Reputation: 0
CENTOS 5.3 x86_64 standard on server

-----

but i don't like use yum or rpm is there some way to fix it ?


if my gcc not load libgcc_s i think my problem will solved but i don't know how,

i find this thread http://www.linuxquestions.org/questi...light=libgcc_s but i don't know is this right or wrong ?
Quote:
Originally Posted by bean66 View Post
On aix 5.3 using gcc version 4.2.4 I get the following output from ldd.
What causes libgcc_s.a to be part of the binary?

Or better, how can i prevent libgcc_s.a to be part of the binary? I've tried rebuilding gcc using configure -disable-shared to no avail.


Thanks,
ken

ajax:ajax102:/home/n/ix_/src/server>> ldd 102/ixp_server
102/ixp_server needs:
/usr/lib/libc.a(shr.o)
/usr/lib/libpthreads.a(shr_comm.o)
/usr/lib/libpthreads.a(shr_xpg5.o)
/usr/lib/libbsd_r.a(shr.o)
/home/oracle/products/v102/lib32//libclntsh.a(shr.o)
/unix
/usr/lib/libcrypt.a(shr.o)
/usr/lib/libdl.a(shr.o)
/usr/lib/libodm.a(shr.o)
/usr/lib/libperfstat.a(shr.o)
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/../../../libgcc_s.a(shr.o)
/usr/lib/libpthread.a(shr_xpg5.o)
/usr/lib/libcfg.a(shr.o)
/usr/lib/liblvm.a(shr.o)
Quote:
Originally Posted by bean66 View Post
Ok,

I figured the problem out and thought I'd post my resolution so maybe it will help others.

rebuild GCC using -disable-shared.
Rebuild all libraries that were being linked that were built with the old version of gcc.


cuz if i rebuild gcc using -disable-shared and that's was not right my OS will destroy .

Last edited by aleppos; 12-06-2009 at 07:35 AM.
 
Old 12-06-2009, 12:01 PM   #10
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
CentOS 5.x with upgraded glibc will no longer be CentOS, so just install Fedora 12 or stick with glibs released with CentOS. DO NOT MIX!!!
 
Old 12-06-2009, 12:51 PM   #11
aleppos
LQ Newbie
 
Registered: Aug 2005
Location: syria
Posts: 9

Original Poster
Rep: Reputation: 0
i can't install Fedora 12 cuz i'm using it my OS , so please give me another solution.

about libgcc_s any one know how to fix it ?

Last edited by aleppos; 12-06-2009 at 12:53 PM.
 
Old 12-07-2009, 12:25 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,668

Rep: Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544Reputation: 2544
There isn't much you can do to repair.
Except a reinstall of the OS.

CentOS 5.4 is equipped with three gcc compilers,
which all can be there at the same time, to be used
for different jobs ...
gcc (4.1.2) : The system compiler, not to be changed.
gcc44 4.4.x : to be installed with yum.
compat-gcc-34 , 3.4.6 , also installable with yum.
No need trying to build another gcc-4.4.x, which
will probably not pass all tests in the test suite.
And thus not be very usable. Cannot build a glibc.

It is OK to have an extra glibc, but it must be very
well hidden away, for no files to find it.
But I see no reason for a glibc-2.11 in CentOS.
.....

Last edited by knudfl; 12-07-2009 at 12:27 PM.
 
Old 12-07-2009, 05:07 PM   #13
John VV
Guru
 
Registered: Aug 2005
Posts: 12,916

Rep: Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715
a new version of glib ( and EVERY DEPENDENCY) can be installed BUT it is VERY VERY VERY difficult !!!!!!!

first it AND every dependency MUST NOT BE IN THE SYSTEM PATH
build EVERYTHING in it's own build directory ( and DO NOT ADD THAT FOLDER to the $PATH - - do not- do not )

then pass that folder to the program you are building
as a build option in configure or as a environment variable using "export" before building


i have needed to do this for the dev./testing version of "the Gimp" when it needs a newer version of gtk or autotools or packageconfig . than the OS is using


it is A VERY BIG PAIN IN THE A$$ to do but it is possible

Last edited by John VV; 12-07-2009 at 05:08 PM.
 
Old 12-07-2009, 06:19 PM   #14
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
And if you are even seriously think about doing it, have a very good backup system. One little mistake and the OS is done.
 
Old 12-07-2009, 09:00 PM   #15
John VV
Guru
 
Registered: Aug 2005
Posts: 12,916

Rep: Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715
Quote:
And if you are even seriously think about doing it, have a very good backup system. One little mistake and the OS is done.
a simple typo in a terminal option or forgetting to add lines to a config file or a mistake in a hand wrote/edited makefile and you HAVE KILLED THE OPERATING SYSTEM !!!!!

and a full reinstall might be needed to fix it .

this is VERY easy to do , yes i have done it once and only once
triple check command BEFORE you run it

----------------------
when i build newer versions of code i install them on A DIFFERENT partition or drive that the os is on
that way there is less of a chance of a "R.I.P." / FUBAR mistake

but make sure you have a up to date back up
 
  


Reply

Tags
gcc, glibc, libc, libc6


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in installing glibc 2.7 tanmoy_tiger Linux - Software 3 08-03-2011 12:45 PM
Problem installing glibc 2.10.1 dokness Linux - Software 1 09-01-2009 01:23 PM
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
Having Problem in Installing glibc 2.3.5 Big D@ddy Linux - Software 2 04-18-2005 03:05 AM
A problem in the GLIBC-2.3.2 installing chamberlain Linux - General 7 06-12-2004 06:12 AM


All times are GMT -5. The time now is 03:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration