Unix Technical Forum

Error with gcc

This is a discussion on Error with gcc within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi have installed gcc 4.0.0.1. Try to run gcc with a little test prog and get the following error ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 11:45 AM
Friedhelm Neyer
 
Posts: n/a
Default Error with gcc

Hi

have installed gcc 4.0.0.1. Try to run gcc with a little test prog and
get the following error

exec(): 0509-036 Cannot load program gcc because of the following
errors:
0509-150 Dependent module /usr/local/lib/libintl.a(shr.o)
could not be loaded.

But this lib is present in /usr/local/lib

Where is the error ?

Thx in advance
Friedhelm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 11:45 AM
Paul Pluzhnikov
 
Posts: n/a
Default Re: Error with gcc

Friedhelm Neyer <Friedhelm.Neyer@t-online.de> writes:

> exec(): 0509-036 Cannot load program gcc because of the following
> errors:
> 0509-150 Dependent module /usr/local/lib/libintl.a(shr.o) could not be loaded.
>
> But this lib is present in /usr/local/lib


That's not enough. The library also must contain shr.o, which must
be a shared object module.

My guess is that you copied a "plain archive" version of libintl.a
into /usr/local/lib, not a shared library you actually need.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 11:46 AM
Laurenz Albe
 
Posts: n/a
Default Re: Error with gcc

Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> wrote:
>> exec(): 0509-036 Cannot load program gcc because of the following
>> errors:
>> 0509-150 Dependent module /usr/local/lib/libintl.a(shr.o) could
>> not be loaded.
>>
>> But this lib is present in /usr/local/lib

>
> That's not enough. The library also must contain shr.o, which must
> be a shared object module.
>
> My guess is that you copied a "plain archive" version of libintl.a
> into /usr/local/lib, not a shared library you actually need.


Or could it be that gcc is 64-bit and the library 32-bit or vice versa?

Examine the contents of the library with 'ar -t /usr/local/lib/libintl.a'.
If there is no shr.o, you have found the problem.
If there is a shr.o, extract it with 'ar -x /usr/local/lib/libintl.a shr.o'.
Then run 'file shr.o' and 'file /usr/local/bin/gcc' (or wherever gcc is)
and see what they are.

Yours,
Laurenz Albe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 11:47 AM
rajbir
 
Posts: n/a
Default Re: Error with gcc

By any chance are you using a libintl.a from a different level?
I mean mixing MLs or TLs or things like that. Where you upgrade some of
the packages and not the others.

Thanks and regards,
Rajbir Bhattacharjee

Laurenz Albe wrote:
> Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> wrote:
> >> exec(): 0509-036 Cannot load program gcc because of the following
> >> errors:
> >> 0509-150 Dependent module /usr/local/lib/libintl.a(shr.o) could
> >> not be loaded.
> >>
> >> But this lib is present in /usr/local/lib

> >
> > That's not enough. The library also must contain shr.o, which must
> > be a shared object module.
> >
> > My guess is that you copied a "plain archive" version of libintl.a
> > into /usr/local/lib, not a shared library you actually need.

>
> Or could it be that gcc is 64-bit and the library 32-bit or vice versa?
>
> Examine the contents of the library with 'ar -t /usr/local/lib/libintl.a'.
> If there is no shr.o, you have found the problem.
> If there is a shr.o, extract it with 'ar -x /usr/local/lib/libintl.a shr.o'.
> Then run 'file shr.o' and 'file /usr/local/bin/gcc' (or wherever gcc is)
> and see what they are.
>
> Yours,
> Laurenz Albe


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:02 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com