Re: RH9 and gcc version problem

From: tquan (tquanle_at_yahoo.com)
Date: 01/15/04


Date: Thu, 15 Jan 2004 11:10:13 -0500

Silviu Minut wrote:
> On Wed, 07 Jan 2004 16:08:27 -0500, tquan wrote:
>
>
>>Hi,
>>
>> Not sure if this is the appropriate group to post this question so
>>please bare with me.
>>
>> I am running RH9.0 with the stock gcc compiler 3.2.2-5. Other related
>>libraries already upgraded are:
>> glibc-common-2.3.2-27.9.7
>> glibc-devel-2.3.2-27.9.7
>> glibc-2.3.2-27.9.7
>>
>> Now that I find out this gcc version (3.2.2-5) breaks some of my
>>programs, I would like to upgrade the compiler to 3.3.2 (current release
>>version). How do I go about it? Do I need to completely uninstall the
>>old compiler and install the new one, or is there a way to just upgrade
>>it? I already found out that upgrading it is not an easy task.
>>
>> Any advice is greatly appreciated here.
>> regards,
>> tquan.
>
>
> If you're code is not standard compatible, you probably want to
> downgrade the compiler, not upgrade it. gcc-3.3 won't make your
> code any more compatible, than 3.2. Obviously, the alternative is
> to upgrade the code, which is in fact not that hard, though it might
> take you a couple of days.
>
> I did change the compiler, and I did that from rpms. Try to
> install whatever compiler you want, say 2.9x, and it will complain
> about dependencies. The only one I had troubles with was libstdc++.
> Yes, some programs do depend on this library (not on the compiler
> itself), so you have to keep the libstdc++ you have, so for the
> new one you do
>
> rpmn -ivh libstdc++-new
>
> rather than Uvh. You can keep 2 versions of libstdc++ and they
> can coexist peacefully. Of course, you can do rpm --test for
> whatever you want to install, to make sure everything is ok.
>
> Off the top of my head, I think I needed
>
> cpp, gcc, gcc-c++, libgcc, libstdc++, libstdc++-devel.
>
>
>

Thank you all for helping me out on this. I think I owe you some
clafification on my posts:

- the code I am dealing with is a proprietary, legacy code and which I
don't have the right to modify, unfortunately. I was written by some guy
in Fortran and using automate conversion tool to convert it to c/c++.
It's rather ugly looking and real annoy to debug.
- You are right in that I need to downgrade my compiler rather than
upgrade. The thing is I never done any compiler downgrading nor
upgrading and I am scared as hell as dependencies go. Would you clarify
if installing 2 diff. versions of glibc is OK for my system?

Again, thanks alot for all you folks' help. I will try them all out and
let you know.

regards,
tquan.



Relevant Pages

  • Re: Tried Out Delphi 2006
    ... Install Components which become Uninstalled when I close down my IDE. ... Another problem I have never encountered with any prior version of Delphi. ... Most of the time it has been - upgrade the 3rd party ... my wheels and the compiler not being able to see a known file in a specified ...
    (borland.public.delphi.non-technical)
  • Re: WIndows Mobile 5.0
    ... as I type this, and I think I might install the upgrade just for kicks, but ... I'll be prepared to downgrade pretty quick if all the tweaks I've seen don't ... feature really seems like a better option than just removing a feature that ... I think it's the X50's that will have the upgrade. ...
    (microsoft.public.pocketpc)
  • Re: [SLE] Downgrading packages with Yast2
    ... >>So it will downgrade as opposed to upgrade my system. ... > so I used YaST to install the orig's from the install CD. ... Currently using SuSE 9.0 Professional with KDE 3.1 ...
    (SuSE)
  • Re: can just use upgrade to remove illegal copy?
    ... You can't upgrade with a downgrade. ... purchase the "full install". ... I have xp pro and found out when I tried to dowload ...
    (microsoft.public.windowsxp.general)
  • Re: [SLE] Kernel Downgrade?
    ... On Wednesday 14 April 2004 16:15, Anders Johansson wrote: ... I can guarentee that this does not always work in a downgrade situation ... as I had the same problem downgrading a kernal after I let YOU upgrade ... and I had to forceably install the old kernal again. ...
    (SuSE)