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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 . |
| |||
| 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 |
| |||
| 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 |
| ||||
| "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. |
| Thread Tools | |
| Display Modes | |
|
|