upgrading to glibc-2.1 from glibc-2.0

upgrading to glibc-2.1 from glibc-2.0

Post by Daniel R. Grays » Thu, 18 Mar 1999 04:00:00



From the glibc FAQ:

Quote:> 2.27.      What needs to be recompiled when upgrading from glibc 2.0 to glibc
>    2.1?

> {AJ,CG} If you just upgrade the glibc from 2.0.x (x <= 7) to 2.1, binaries
> that have been linked against glibc 2.0 will continue to work.

The statement above doesn't seem to be true.  For example, my emacs-20.3.3
broke because a symbol called __setfpucw became internal.

        /usr2.0/lib/libc.so.6:0001b648 T __setfpucw
        /usr2.1/lib/libc.so.6:0001d2c8 t __setfpucw

The latest jdk1.2 was compiled for glibc2.0 but doesn't run with glibc2.1,
yielding the following inscrutable error.

    geometry% java
    *** panic: GC: getStickySystemClass failed: java/lang/ref/Reference
            CLASSPATH may be incorrect

and some more output.  I can't figure out why.

Applications that are linked also against libstdc++.so.2.8 seem to break -
perhaps due to the lowlevel IO routines that are shared, or a change to what
a FILE is.

Have other people had experience with this sort of thing?

Would this behavior be regarded as a bug by the developers of glibc-2.1, so
that we can look forward to fixes?

 
 
 

upgrading to glibc-2.1 from glibc-2.0

Post by Andreas Jaege » Fri, 19 Mar 1999 04:00:00


Quote:>>>>> Daniel R Grayson writes:

Daniel> From the glibc FAQ:

Quote:>> 2.27.  What needs to be recompiled when upgrading from glibc 2.0 to glibc
>> 2.1?

>> {AJ,CG} If you just upgrade the glibc from 2.0.x (x <= 7) to 2.1, binaries
>> that have been linked against glibc 2.0 will continue to work.

The problems you're reporting are answered by question 3.12 of the
above mentioned FAQ:
3.12.   I can't access some functions anymore.  nm shows that they do
        exist but linking fails nevertheless.

Daniel> The statement above doesn't seem to be true.  For example, my emacs-20.3.3
Daniel> broke because a symbol called __setfpucw became internal.

Daniel>      /usr2.0/lib/libc.so.6:0001b648 T __setfpucw
Daniel>      /usr2.1/lib/libc.so.6:0001d2c8 t __setfpucw

Daniel> The latest jdk1.2 was compiled for glibc2.0 but doesn't run with glibc2.1,
Daniel> yielding the following inscrutable error.

Did you read the README files that come with the *pre*release of jdk
1.2?  It mentions that jdk is only tested on 2.0 and you've got to
pass the following parameters: "-green -Djava.compiler=" to get it
working (but they explicitly state that they're planning to do a glibc
2.1 release).

Daniel>     geometry% java
Daniel>     *** panic: GC: getStickySystemClass failed: java/lang/ref/Reference
Daniel>          CLASSPATH may be incorrect

Daniel> and some more output.  I can't figure out why.

Daniel> Applications that are linked also against libstdc++.so.2.8 seem to break -
Daniel> perhaps due to the lowlevel IO routines that are shared, or a change to what
Daniel> a FILE is.
Read again FAQ 2.21.   "What do I need for C++ development?" and
recompile libstdc++.

Daniel> Have other people had experience with this sort of thing?

Daniel> Would this behavior be regarded as a bug by the developers of glibc-2.1, so
Daniel> that we can look forward to fixes?
Nothing you reported counts as a glibc bug.

Andreas
--



 
 
 

upgrading to glibc-2.1 from glibc-2.0

Post by Daniel R. Grays » Fri, 19 Mar 1999 04:00:00


Thank you for the helpful advice, including the java workaround.  I now know
what to do with libstdc++.so.2.8.

Perhaps the FAQ could be modified to read something like this:

    2.27.       What needs to be recompiled when upgrading from glibc 2.0 to glibc 2.1?

    {AJ,CG} If you just upgrade the glibc from 2.0.x (x <= 7) to 2.1, binaries
    that have been linked against glibc 2.0 will continue to work, unless they
    incorrectly use symbols intended to be private, such as __setfpucw (see 3.12 below).

 
 
 

1. Trouble upgrading from glibc-2.1.2 to glibc-2.2.2 (rpm failed dependencies)

I know this problem has been batted around a few times, but I haven't
been able to find information to help me complete my upgrade
successfully.

I've got an old install of Redhat 5.1 which I have since partially
upgraded upon demand.  I currently want to install glibc-2.2.2, but am
having trouble upgrading it with rpm.  Installing a version greater
than 2.1.3 seems to comflict with rpm-4.0.

#root:# rpm -i --test glibc-2.2.2-10.i386.rpm
error: failed dependencies:
        glibc-common = 2.2.2-10 is needed by glibc-2.2.2-10
        glibc > 2.1.3 conflicts with rpm-4.0-6x

If I try to upgrade to a newer version of rpm (ie: rpm-4.0.3), I get
dependency errors asking for a newer version of the glibc library.

#root:# rpm -U --test rpm-4.0.3-1.04.i386.rpm
error: failed dependencies:
        popt = 1.6.3 is needed by rpm-4.0.3-1.04
        libbz2.so.1   is needed by rpm-4.0.3-1.04
        libc.so.6(GLIBC_2.1.3)   is needed by rpm-4.0.3-1.04
        libc.so.6(GLIBC_2.2)   is needed by rpm-4.0.3-1.04
        libc.so.6(GLIBC_2.2.3)   is needed by rpm-4.0.3-1.04

How am I supposed to install GLIBC_2.2 or GLIBC_2.2.3 if installing it
conflicts with my RPM package?  Is there a mid-step that I should be
doing first?  If I install the newer version of glibc, then I'll break
rpm, and won't be able to install the newer version of rpm4.0.3!  Am I
missing something?

Thanks for the help!

Eric

2. NEWBIE: How do you install patches?

3. Upgrading glibc-2.1.1 to glibc-2.1.2

4. Can I run metro-linx 1.2.4 motif version on newer Xfree version?

5. Upgrade glibc-2.1.92-14 to glibc-2.2.12 on RH7

6. telnet session going to sleep ?!?

7. Problem for upgrading glibc-2.1.3-22 to glibc-2.2.5.

8. DELL Lattitude XPiCD (neomagic) + X ???

9. glibc-2 -> glibc-2.1.x

10. undefined reference /lib/lib.so.6 (glibc-2.2.3 -> glibc-2.2-9)

11. Linking for glibc-2.1.x Systems on a glibc-2.2.x system

12. problems compiling glibc-2.1.2 on Slackware 3.5 with glibc-2.0.7

13. undefined reference /lib/lib.so.6 (glibc-2.2.3 -> glibc-2.2-9)