Unix Technical Forum

Reverse binary compatibility between AIX 5.2 and AIX 5.1

This is a discussion on Reverse binary compatibility between AIX 5.2 and AIX 5.1 within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi , I wrote a simple "hello world" program on AIX5.2 using gcc compiler . The resultant binary exe(name ...


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, 07:01 AM
sona_newar
 
Posts: n/a
Default Reverse binary compatibility between AIX 5.2 and AIX 5.1

Hi ,

I wrote a simple "hello world" program on AIX5.2 using gcc compiler .

The resultant binary exe(name - getpqstatus) when i ran on AIX5.1 it
is giving the
below error :

exec(): 0509-036 Cannot load program ./getpqstatus because of the
following errors:
0509-130 Symbol resolution failed for getpqstatus because:
0509-136 Symbol __strtollmax (number 15) is not exported from
dependent module /usr/lib/libc.a(shr.o).
0509-192 Examine .loader section symbols with the
'dump -Tv' command.


Does anyone has any idea why this is happening ..? Does even simple
programs compiled in AIX5.2 do not run on AIX5.1 ...?


Any help will be really helpful and appreciated ...


Thanks and Regards
Sona .

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 07:01 AM
Menno Willemse
 
Posts: n/a
Default Re: Reverse binary compatibility between AIX 5.2 and AIX 5.1

H'llo Sona,

What you're trying to do is not possible. AIX is being maintained in
such a way that older programs will still run on the newer versions of
AIX. The other way round, however, is not guaranteed.

Apparently, the strtollmax() function was only invented in AIX 5.2, and
AIX 5.1 doesn't have it.

The golden rule is: whenever you want to support multiple versions of
AIX, compile it on the oldest version you want to support. It will
*usually* work on the newer versions as well.

Cheers,
Menno

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 07:03 AM
Thomas Dickey
 
Posts: n/a
Default Re: Reverse binary compatibility between AIX 5.2 and AIX 5.1

Menno Willemse <flexor@wanadoo.nl> wrote:

> The golden rule is: whenever you want to support multiple versions of
> AIX, compile it on the oldest version you want to support. It will
> *usually* work on the newer versions as well.


I can't recall any operating system (or large program) for which one could
expect reverse compatibility (the problem is not specific to AIX).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 07:41 AM
petcyr
 
Posts: n/a
Default re:Reverse binary compatibility between AIX 5.2 and AIX 5.1

Try option control various sorts of optimizations -O3 with gcc

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 07:41 AM
Paul Pluzhnikov
 
Posts: n/a
Default Re: Reverse binary compatibility between AIX 5.2 and AIX 5.1

"sona_newar" <sona_newar@hotmail.com> writes:

> I wrote a simple "hello world" program on AIX5.2 using gcc compiler .
>
> The resultant binary exe(name - getpqstatus) when i ran on AIX5.1 it
> is giving the below error :


That is *supposed* to happen: no UNIX system I know supports
compiling on newer system and running on older.

> exec(): 0509-036 Cannot load program ./getpqstatus because of the
> following errors:
> 0509-130 Symbol resolution failed for getpqstatus because:
> 0509-136 Symbol __strtollmax (number 15) is not exported from
> dependent module /usr/lib/libc.a(shr.o).
> 0509-192 Examine .loader section symbols with the
> 'dump -Tv' command.
>
>
> Does anyone has any idea why this is happening ..?


Because the set of symbols exported from libc.a is bigger on AIX
5.2 then on AIX5.1, and because some code you linked in (probably
from libgcc) depended on a symbol that is not available on AIX5.1

> Does even simple
> programs compiled in AIX5.2 do not run on AIX5.1 ...?


In general, no.

> Any help will be really helpful and appreciated ...


You should build on the *lowest* version you plan to support
(i.e. build on AIX 5.1, and it will work fine on AIX 5.2).

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
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 03:50 PM.


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