AIX server is compiling executables to 32-bits by default, how to change it?


 
Thread Tools Search this Thread
Operating Systems AIX AIX server is compiling executables to 32-bits by default, how to change it?
# 1  
Old 09-01-2011
[Solved] AIX server is compiling executables to 32-bits by default, how to change it?

Hi everyone:

I have a server running AIX 6.1, I've upgraded the TL from 6100-0100 to 6100-04-02-1007, however since then all the executables I compile are 32-bit mode by default, how can I solve this?

I'm using VisualAge C/C++ 10.0

thanks in advance

Last edited by edgarvm; 09-01-2011 at 03:02 PM..
# 2  
Old 09-01-2011
AIX 6 is a 64 bit operating system, it does not compile executables.
What compiler are you using - type, name and version?
You may have more luck on a forum associated with your compiler but please post back here and we'll see if we can help.
# 3  
Old 09-01-2011
Quote:
Originally Posted by dukessd
AIX 6 is a 64 bit operating system, it does not compile executables.
What compiler are you using - type, name and version?
You may have more luck on a forum associated with your compiler but please post back here and we'll see if we can help.
You're right, I'm going to edit my question.
I'm using Visual Age C/C++ 10.0

---------- Post updated at 03:25 PM ---------- Previous update was at 12:59 PM ----------

Solved

By default VisualAge compiles applications to 32-bit mode, if compilation to 64-bit mode is desired the OBJECT_MODE environment variable must be set to 64 before

Last edited by edgarvm; 09-22-2011 at 01:30 PM..
This User Gave Thanks to edgarvm For This Post:
# 4  
Old 09-01-2011
Thanks for posting the solution.
# 5  
Old 09-12-2011
Quote:
Originally Posted by dukessd
Thanks for posting the solution.
I'll second that.

Moderator's Comments:
Mod Comment changed the threads title to reflect the problems status
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Compiling problem - AIX 7.2

Hi We meet errors while running configuration scripts to prepare compiling source code on AIX 7.2. This error does not happen on AIX5.3 and AIX6.1 With the “/usr/bin/sh” from AIX7.2, sometimes , the script runs sucessfully, sometimes not. It’s unstable, and I don’t know why. When... (10 Replies)
Discussion started by: bobochacha29
10 Replies

2. AIX

Change password for many users on an AIX server

Hi I want to change password for around 100 users on an aix server. I have the list of those 100 users with me. instead of doing # passwd username for all the 100 users one by one, can you please help with a script through which we can change the password for all the 100 users in a... (2 Replies)
Discussion started by: newtoaixos
2 Replies

3. Programming

Compiling a 64 bits program using gcc

Hi Everyone, I can ask what is the option to compile a 64 bits program using gcc. I have looked everywhere but can't find it. Before I used to use cc and the -q64 flag was the option to generate the 64 bits binary. Can anyone tell me what is the flags when using gcc. Thanks...... (3 Replies)
Discussion started by: arizah
3 Replies

4. AIX

Compiling samba from source in AIX 5.3

Hello all. I have never had any issues like this when compiling applications from source. When I try to compile samba-3.5.0pre2, configure runs with no issues, but when the time comes to make, this happens: make: make 1254-025 There must be an existing description file or specify a target. ... (4 Replies)
Discussion started by: raidzero
4 Replies

5. AIX

Transferring files from one AIX server to another AIX server in binary mode

Hi, I am a newbie to AIX. We have 2 AIX5.3 servers in our environment, I need to transfer some files in Binary mode from one server to another and some files in ASCII mode from one server to another server. Could you please help me as to how I need to do that? Thanks, Rakesh (4 Replies)
Discussion started by: rakeshc.apps
4 Replies

6. UNIX for Dummies Questions & Answers

How to change default R in Unix server?

Hi, I try to use R through the Unix server in my university. When I want to install an R package, I don't have the permission to change the R library. So I installed another version of R under my user's folder on the server, which seems successful. However, when I try to run it, the default R on... (3 Replies)
Discussion started by: xuemin
3 Replies

7. UNIX and Linux Applications

Compiling samba 3.0.27a under AIX

I try to compile Samba 3.0.27a under AIX with LDAP and KErberos. The configure work fine: CFLAGS: -I/opt/pware/include -I/opt/pware/lib/ -I/opt/pware/open_ldap_exec/lib/ -I/software/samba/oldap/usr/lib -I/software/samba/oldap/usr/include ./configure --prefix=/opt/pware/samba/3.0.27a... (1 Reply)
Discussion started by: BenediktS
1 Replies

8. AIX

AIX Bits and Pieces

There are quite many nifty little tricks, which can make life easier for the AIX administrator carrying out typical tasks in his job. I'll start the collection, suggestions will be highly welcome and added here when they are messaged to me. No, i don't claim to have found out myself what stands... (0 Replies)
Discussion started by: bakunin
0 Replies

9. AIX

compiling with aix 5.1

Hello, i will compile php and apache on an aix 5.1. Configure works fine. When i start the make the following error appears: /usr/include/sys/context.h:155: parse error before "sigset64_t" /usr/include/sys/context.h:158: parse error before '}' token make: 1254-004 The error code from the... (1 Reply)
Discussion started by: n-may
1 Replies
Login or Register to Ask a Question