Re: problem compiling c (pro*c) program - problem with oracle shared library

From: Daud <daud11_at_hotmail.com>
Date: 29 May 2005 08:05:51 -0700
Message-ID: <1117379151.324286.142360_at_g47g2000cwa.googlegroups.com>


[Quoted] Maxim Demenko wrote:
> Daud schrieb:
> > I got 'ELF-64 shared object file' in $ORACLE_HOME/lib and
> > understandably 'ELF-32 shared object file' in $ORACLE_HOME/lib32.
> >
>
> Well, i'm not much dealed with all with ProC* staff, but to localize the
> error i would try to compile oracle samples with the demo_proc.mk. From
> your previous post it seems, you don't have proper installed Pro C - the
> directory in $ORACLE_HOME/precomp/proc is missing. It happens sometimes
> if you choose Programmer Component during the Server Installation. To
> install that "for sure" you have to do Client Installation, choose
> custom, choose Oracle Programmer. After that , if you cannot get the
> samples compiled - its the issue for Oracle Support. If you can -
> compile your Program with Makefile from Oracle, if that succeed -ok, if
> not - you still should get support from Oracle, because the first thing
> the guys ask you: "did you used the makefile from Oracle?"
>
> Best regards
>
> Maxim

[Quoted] Below seems ok to me.

[Quoted] oracle_at_crmidb03:/u01/app/oracle/9.2.0/precomp/demo/proc>make -f $ORACLE_HOME/precomp/demo/proc/demo_proc.mk build EXE=sample1 OBJS=sample1.o

        make -f /u01/app/oracle/9.2.0/precomp/demo/proc/demo_proc.mk PROCFLAGS="" PCCSRC=sample1 I_SYM=include= pc1

        proc iname=sample1 include=.

include=/u01/app/oracle/9.2.0/precomp/public
include=/u01/app/oracle/9.2.0/rdbms/public
include=/u01/app/oracle/9.2.0/rdbms/demo
include=/u01/app/oracle/9.2.0/plsql/public
include=/u01/app/oracle/9.2.0/network/public

Pro*C/C++: Release 9.2.0.6.0 - Production on Sun May 29 14:42:05 2005

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

System default option values taken from: /u01/app/oracle/9.2.0/precomp/admin/pcscfg.cfg

        cc +Olibmerrno +Ofast +Olit=all +DSblended +Oshortdata=8 +O2 -Ae -z +Olibmerrno +Z -DHPUX -DORAIA64 -DHPUX_IA64 +DD64 -DSS_64B IT_SERVER -DHPPA64 -DSLS8NATIVE -DSLU8NATIVE +DD64 -D_REENTRANT -DHPUX_KTHREAD -DSLXMX_ENABLE -DSLTS_ENABLE -D_REENTRANT -DPRECOMP -I.
 -I/u01/app/oracle/9.2.0/precomp/public

-I/u01/app/oracle/9.2.0/rdbms/public -I/u01/app/oracle/9.2.0/rdbms/demo
-I/u01/app/oracle/9.2.0/
plsql/public -I/u01/app/oracle/9.2.0/network/public -DHPUX -D_REENTRANT
-DHPUX_KTHREAD -DSLXMX_ENABLE -DSLTS_ENABLE -D_LARGEFILE64_SOURCE=1 -DSS_64BIT_SERVER -DBIT64 -DMACHINE64 -DORAIA64 -DHPUX_IA64 -c sample1.c
(Bundled) cc: warning 922: "+Olibmerrno" is unsupported in the bundled compiler, ignored.
(Bundled) cc: warning 922: "+Ofast" is unsupported in the bundled compiler, ignored.
(Bundled) cc: warning 922: "+Olit=all" is unsupported in the bundled compiler, ignored.
(Bundled) cc: warning 922: "+Oshortdata=8" is unsupported in the bundled compiler, ignored.
(Bundled) cc: warning 922: "+O2" is unsupported in the bundled compiler, ignored.
(Bundled) cc: warning 922: "-Ae" is unsupported in the bundled compiler, ignored.
(Bundled) cc: warning 922: "+Olibmerrno" is unsupported in the bundled compiler, ignored.
Error (future) 355: "sample1.c", line 240 # Function 'main' must return type 'int'.

    void main()

         ^^^^
Warning:        1 future errors were detected and ignored. Add a '+p'
option to detect and fix them before they become fatal errors in a  future release. Behavior of this ill-formed program is not guaranteed to match that of a well-formed program

        cc +DD64 -o sample1 sample1.o -L/lib/hpux64 -L/u01/app/oracle/9.2.0/lib/ -lclntsh `cat /u01/app/oracle/9.2.0/lib/ldflags` `cat  /u01/app/oracle/9.2.0/lib/sysliblist` -lm Received on Sun May 29 2005 - 17:05:51 CEST

Original text of this message