Migrating C Application from AIX to Linux


 
Thread Tools Search this Thread
Operating Systems AIX Migrating C Application from AIX to Linux
# 1  
Old 08-14-2009
Migrating C Application from AIX to Linux

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:
HP UNIX GCC .
Thread model : POSIX

Thanks
Karthik C
# 2  
Old 08-14-2009
I don't think a 'cross compiler' is what you want. Even if you had all the AIX headers, you'd also need all the AIX libraries, and then, you'd have to haul them with you everywhere you want the executable to work. You probably just want to fix the errors that prevent the code from being portable.

Which we really can't do without seeing the code, and preferably the errors too.
# 3  
Old 08-14-2009
Please provide the output from gcc -v on Linux box. "HP UNIX GCC" simply does not sound to be right for such output.

Even better would be the output from gcc -### for both systems.

Can you provide an example of some of the errors you are getting?
Which particular version of GNU/Linux are you porting the application to?
# 4  
Old 08-17-2009
GCC 3.2 to GCC 3.3

First of all thanks for your reply. I errors which i am currently getting are more bcz of mismatch between AIX and Linux versions of GCC.

For example : methods, variables which present in AIX Box GCC Header file are missing in Linux Box GCC Header file.

Is it possible to modify the Existing Standard C library Header in such a way that it is portable to both linux and Aix?

---------- Post updated at 01:04 PM ---------- Previous update was at 01:02 PM ----------

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

Version : 3.3.3
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Migrating NFSv3 to NFSv4 in AIX

Hello, I worked on setting up NFSv3 and NFSv4 (novice) shares separately. I was trying to find a way to migrate existing NFSv3 fileshares to NFSv4 as is. I found a redbook online called "Securing NFS in AIX". It has good info. I am able to create a new NFSv4 share, do not know how to... (4 Replies)
Discussion started by: System Admin 77
4 Replies

2. AIX

Upgrading to AIX 7 vs migrating

Hi all, I have this weird notion that upgrading the TL does not cause the machine to wipe, but upgrading a major version (from aix 6 to 7) means it's actually a fresh install and will wipe the date and i have to install the software again (TSM server, for instance). Trying to google it, i came... (3 Replies)
Discussion started by: tde3000
3 Replies

3. AIX

Migrating from HP Unix to IBM AIX 6.1

HI , We are in process to migrate from UNIX to AIX 6.1 version . I need to understand differences between commands that are used in UNIX and AIX. I want to make sure AIX has all command options avaliable from HP Unix.If any mismatch it should be addressed . Since many commands are used it... (2 Replies)
Discussion started by: Perlbaby
2 Replies

4. AIX

Migrating a NIM Server to AIX 6.1

Guys, We are planning to upgrade one of our NIM server to AIX 6.1 from 5.3... Since the server itself is a NIM Server we can't perform it via NIM & I'm choosing to do CD install.. The Install method would be Upgrade installation. Is there anything special that I need to consider before... (5 Replies)
Discussion started by: kkeng808
5 Replies

5. AIX

AIX Servers Ugrading or Migrating

:( Hi Grue, I am very new in AIX/UNIX environment. Please give me answer that during the upgrading or Migrating to 6.1 the AIX Server the applications of this server is accessible to Apps users or not? Thanks (2 Replies)
Discussion started by: Tahniet
2 Replies

6. AIX

migrating easytrieve from Z/OS to AIX platform

Hi, my requirement is to migrate easytrieve running on Z/OS to AIX platform. can anyone let me know what changes should be made if we do such a migration. (0 Replies)
Discussion started by: rohit510
0 Replies

7. AIX

Can I make application for AIX while working on Linux Box

Hi all, I had a large application created using Visual C++. I ported that application using WINE to the Linux platform (ofcourse x86). Now I have to port the same application to AIX which runs over IBM mainframe. I dont have mainframe available but it is required for me to port my application to... (1 Reply)
Discussion started by: noble_curious
1 Replies

8. AIX

Migrating AIX users to Linux

Hi all, I was wondering if anyone out there knew if it was possible to migrate users from AIX to Linux. What we want to do is install OpenLDAP on a Linux machine and port all the users over to LDAP. I've googled around and could only find a few things, such as mrgpwd - but that only comes... (0 Replies)
Discussion started by: djcronos
0 Replies

9. AIX

Problem with migrating from AIX 5.1 to 5.3

I'am migrating from AIX 5.1 to 5.3 during migration installation a receive message enough space for dir /usr. My question is : how i can resolve this problem ? i can't reboot my server i hope that there is a command to obtain a spece without go out from installation procedure pannel... I'am... (0 Replies)
Discussion started by: tt155
0 Replies
Login or Register to Ask a Question