Visit Our UNIX and Linux User Community

Compiling 32 bit app on 64 bit kernal

Thread Tools Search this Thread
Operating Systems AIX Compiling 32 bit app on 64 bit kernal
# 1  
Old 03-18-2008
Compiling 32 bit app on 64 bit kernal

I've been trying to compile an application that works on AIX 5L in 32 bit mode on an AIX 5L 64 bit mode machine. In doing so I get a lot of undefined symbol errors.

Below is a sample of what the output looks like.....

%make -f makefile_hl7 all
cc -L/u01/app/oracle/product/10.2.0/lib32/ -o hl7_post -g -D_ORACLE_ -D_HL7_ obj_hl7/post obj_hl7/p_history.o
-L/u01/app/oracle/product/10.2.0/lib32/ -lclntsh -lld -lm `cat /u01/app/oracle/product/10.2.0/lib32/sysliblist`
-lm -lc_r -lpthreads
ld: 0711-317 ERROR: Undefined symbol: .lcvb2w
ld: 0711-317 ERROR: Undefined symbol: .upih2o
ld: 0711-317 ERROR: Undefined symbol: .upiico
ld: 0711-317 ERROR: Undefined symbol: .lxldini
ld: 0711-317 ERROR: Undefined symbol: .lmsaicmt
ld: 0711-317 ERROR: Undefined symbol: .lxmopen
ld: 0711-317 ERROR: Undefined symbol: .lxoWriChar
# 2  
Old 03-18-2008
are you pointing to 32 bit library files in your library path?
# 3  
Old 03-19-2008
In the command line below you can see that I'm pointing to lib32 so I think I got that covered unless I'm missing one.

cc -L/u01/app/oracle/product/10.2.0/lib32/ -o hl7_post -g -D_ORACLE_ -D_HL7_
obj_hl7/post obj_hl7/p_history.o
-L/u01/app/oracle/product/10.2.0/lib32/ -lclntsh -lld -lm `cat /u01/app/oracle/product/10.2.0/lib32/sysliblist`
-lm -lc_r -lpthreads
# 4  
Old 03-19-2008
I got it to work,

I ended up having to use....
/u01/app/oracle/product/10.2.0/precomp/lib/libsql10.a which is for 64 bit mode
instead of....
/u01/app/oracle/product/10.2.0/precomp/lib32/libsql10.a which is for 32 bit mode.

So I can only assume that there is something funky with the libsql10.a for 32 bit mode that prevented the symbols from being defined.

Nevertheless my 32 bit mode code now compiles and runs properly on the 64 bit mode kernal AIX 5L system.

Previous Thread | Next Thread
Test Your Knowledge in Computers #508
Difficulty: Easy
A variable is basically a memory location in which a value can be stored.
True or False?

6 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Which version of Windows Vista to install with a product key? 32-bit or 64-bit?

Hello everyone. I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Discussion started by: milhan
4 Replies

2. Shell Programming and Scripting

How to handle 64 bit arithmetic operation at 32 bit compiled perl interpreter?H

Hi, Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result. perl interpreter info, perl, v5.8.8 built for... (0 Replies)
Discussion started by: rrd1986
0 Replies

3. AIX

32 bit app on aix 6.1

We have our in house developed software running on AIX 6.1 (6100-06-06-1140). The application is a 32 bit application and the operating system is 64 bit. We are running this application without any issue on AIX 5.3 32-bit on P5. We are facing issue with this application after moving on P7 with aix... (4 Replies)
Discussion started by: vjm
4 Replies

4. UNIX for Advanced & Expert Users

Error compiling 32-bit Qt-4.7 on 64-bit Ubuntu OS

Hi, I am compiling Qt-4.7 for 32-bit on 64-bit (x86_64) Ubuntu 8.04 desktop. I have installed all the 32-bit libraries (/lib32 and /usr/lib32) through getlibs and "apt-get install ia32-libs". But I am getting the following error while configuring the qt project as: ./configure -platform... (2 Replies)
Discussion started by: royalibrahim
2 Replies

5. Gentoo

compiling 32 bit application on 64 bit linux(x86_64)

hi all, i have a 64 bit linux machine. $uname -a Linux SVRDELLD30 2.6.9-42.ELsmp #1 SMP Tue Aug 15 10:35:26 BST 2006 x86_64 x86_64 x86_64 GNU/Linux here by default gcc creates 64 bit executable. but for some reason i want to create 32bit executable. first i want to create 32 bit object... (3 Replies)
Discussion started by: uttamhoode
3 Replies

6. Programming

copying or concatinating string from 1st bit, leaving 0th bit

Hello, If i have 2 strings str1 and str2, i would like to copy/concatenate str2 to str1, from 1st bit leaving the 0th bit. How do i do it? (2 Replies)
Discussion started by: jazz
2 Replies

Featured Tech Videos