Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

ANSI "C" compiler, Oracle and gethrtime

Francis_2
Occasional Contributor

ANSI "C" compiler, Oracle and gethrtime



When compiling Oracle on HP-UX 11i I am getting the following error:

ld: (Warning) Unsatisfied symbol "gethrtime" in /opt/app/oracle/product/9.2.0/lib//libclntsh.sl

In addition the command:
#nm -og /usr/lib/libc.a | grep gethrtime
is not returning anything.

I am expecting to get the following line:
gethrtime |000000000000|sdef |entry |$CODE$


Any input would be helpfull. I am attaching the nm output.

Thanks
Teamwork is, never, ever allowing each other to fail.
4 REPLIES
Steven E. Protter
Exalted Contributor

Re: ANSI "C" compiler, Oracle and gethrtime

Obvious questions:

1) Do you have the latest version of the ANSI C compiler installed from the Application CD's?

2) Have you installed the required OS patches prior to installting Oracle?

3) Have all Kernel recommendations been fufilled?

I did not have that problem with Oracle 9i 9.0.2 on 11i. I followed those steps.

Patch List

HP-UX 11i (64 Bit) Operating System Patches:
Support Plus Bundle 'December 2002 SP-0212' or later
JDK 1.3.1.02
PHNE_27745
PHNE_28568
PHKL_25506
PHSS_26560
PHSS_26946
PHSS_28849
PHSS_26946
PHSS_26560
PHCO_28427
PHCO_24402

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
T G Manikandan
Honored Contributor

Re: ANSI "C" compiler, Oracle and gethrtime

This is definitely a problem with the libc OS patches.
check the installation guide and load the libc patches before installing Oracle.

T G Manikandan
Honored Contributor

Re: ANSI "C" compiler, Oracle and gethrtime

check these patches

PHCO_23094 - s700_800 11.11 libc cumulative header file patch
PHCO_23772 - s700_800 11.11 libc cumulative patch
PHSS_23441 - s700_800 11.11 ld(1) and linker tools cumulative patch
Madhu Sudhan_1
Respected Contributor

Re: ANSI "C" compiler, Oracle and gethrtime

HP/UX patches PHCO_23770, PHCO_23092 must be applied.
The gethrtime(void) function is a new funtion in libc and is not present in
older versions of libraries, so this issue did not appear in prior versions.
The referenced HP patches resolve the linking errors.

Thank you,
Madhu
Think Positive