Java Mailing List Archive

http://www.dba.5341.com/

Home » Home (12/2007) » suse oracle »

[suse-oracle] compiling 32-bit libraries on Suse 9 SP3 x86_64

Jeff Cook

2006-10-13


Just for fun (I know it is unsupported), I am trying to install Oracle
Grid Control 10.2.0.1 on my Suse 9 SP3 x86_64 machine. But despite
running linux32 bash, using the old GCC compiler, loading all the 32-bit
compatible RPMs, etc. I am unable to compile 32-bit libraries. Any
idea what I'm missing?



Referring to Metalink Note: 316548.1, I confirmed that, despite the
settings below, gcc is NOT compiling 32-bit objects:



1. Generate source file for ntcontab



   export PATH=$ORACLE_HOME/bin:$PATH

   mkdir /tmp/gcctest

   cd /tmp/gcctest

   gennttab > ntcontab.c



2. Create ntcontab.o object file with 32-bit gcc



GRID:/tmp/gcctest> /opt/gcc295/bin/gcc -c ntcontab.c

GRID:/tmp/gcctest> file ntcontab.o

ntcontab.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV),
not stripped



Yet the same Metalink note says that my configuration should be
compiling 32-bit libraries. . .



I'm running:



the 32 bit version of orarun - orarun-1.8-109.16.i586.rpm



Linux32 bash

GRID:/usr/bin> uname -a

Linux GRID 2.6.5-7.276-default #1 Mon Jul 24 10:45:31 UTC 2006 i686
athlon i386 GNU/Linux



GCC, G++ are pointing to older version of GCC:

GRID:/usr/bin> ls -l gcc g++

lrwxrwxrwx 1 root root 19 2006-10-12 15:23 g++ -> /opt/gcc295/bin/g++

lrwxrwxrwx 1 root root 19 2006-10-11 17:52 gcc -> /opt/gcc295/bin/gcc



GRID:/usr/bin> echo $LDEMULATION

elf_i386



GRID:/usr/bin> echo $LD_PRELOAD_32

/usr/lib/libInternalSymbols.so



GRID:/usr/bin> echo $LD_ASSUME_KERNEL

2.4.21



This server already had Oracle Application Server 10gR2 installed (with
no errors) and running fine so it has a bunch of 32-bit compatibility
packages required for running the 32-bit Oracle Application Server on a
64-bit OS:



GRID:/usr/bin> rpm -qa | grep 32bit

<SUBSET FOLLOWS>

glib-32bit-9-200501041713

glibc-locale-32bit-9-200512100801

compat-32bit-9-200407011229

db-32bit-9-200407011229

glibc-devel-32bit-9-200512100801

binutils-32bit-9-200601210802

db1-32bit-9-200407011229

libaio-devel-32bit-9-200502241149

libelf-32bit-9-200511222041

glibc-32bit-9-200512100800

openmotif-libs-32bit-9-200410081851

libaio-32bit-9-200502241149

glib2-32bit-9-200507121454



So what else am I missing?



Jeff

©2008 dba.5341.com - Jax Systems, LLC, U.S.A.