Consultor Eletrônico



Kbase 18320: Duplicate Symbol:_start Oracle 8.0 On AIX
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/27/2004
Status: Unverified

FACT(s) (Environment):

Oracle Datasever
ORACLE 8.0.3
ORACLE 8.0.4
Progress 8.3x
Progress 9.x
IBM AIX

SYMPTOM(s):

Probuild was done against a Progress Client 8.3x & 9.x with Oracle DataServer

The following errors are generated when link script, ldpro, is run.

ldpro: Loading /usr1/temp/_progres
ld: 0711-224 WARNING: Duplicate symbol: __start
ld: 0711-224 WARNING: Duplicate symbol: .__start
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.

Oracle DataServer executable is created with no errors, but excutable core dumps when run

CAUSE:

This is caused by the duplicate symbols for _start which is caused by ORACLE's need to link with the re-entrant c runtime library crt0_r.o in /usr/lib.

FIX:

To workaround this issue the ORALIB environment variable must be
manually set. This can be achieved first by setting the value of the
ORALIB based on the setting found in the oraenv.log and setting the
environment variable CC to xlc_r. This will set the CC used in the
ldpro script to link with the re-entrant version of the C library.
Example:
$ CC=xlc_r; export CC
$ ldpro

The value of ORALIB is automatically set by the buildenv script which is called by ldpro. When the ldpro is run it generates a log file called oraenv.lg.