PDA

View Full Version : Migrating C Application from AIX to Linux



Karthik1
08-20-2009, 02:54 AM
Hi All,

I am currently facing new problem of migrating C(c language) application from AIX machine to Linux machine. We are using GCC to compile the source code..

But facing with the compilation issues, with lot of GCC C libs differing between AIX box to Linux box...

Pls help me providing the cross compiler for both AIX, LINUX...else help me provide how to solve this issue.

details of AIX --


h /u/gmunger: which gcc
/usr/bin/gcc
h /u/gmunger: gcc -v
Reading specs from /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/specs
Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++ --prefix=/opt/freeware --enable-threads --disable-shared --enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.2.0.0
Thread model: aix
gcc version 3.3.2
h /u/gmunger:


Details of LINUX box:
gcc -v
Thread model : POSIX
Version : 3.3.3

Any thoughts is highly appreciated.....

Thanks
Karthik C

Kennedy
08-20-2009, 05:54 AM
Why do you want to cross compile for the Linux box? Why not just compile it native? As far as what is wrong with the compile, if you post your output it will give us more to work with. Also, let us know how you compile it on the AIX system.