Re: unreferenced symbol __cg92_used when compiling Pro*C programs
Date: 1995/06/23
Message-ID: <3seoo1$720_at_lyra.csx.cam.ac.uk>#1/1
parkerr_at_logica.com (Robin Parker) wrote:
>In article <ABpckwlqT3_at_geol.spb.su> Anton V. Gruza <ant_at_geol.spb.su> writes:
>
>>Hi, world !
>>Could anyone please help me with ORACLE 7.1.3 and Pro*C 1.6 ( and 2.0 ) ?
>>After installing server on my Sun host, I've tried to compile Pro*C examples
>>in $ORACLE_HOME/proc/demo with gcc.
>>There is "proc.mk" file there - so I typed "make -f proc.mk sample1" -
>>but :-(.....
>>First of all, gcc doesn't know language "cg92" ( through command line option
>>-xcg92 ) - that was the reason for some warnings, but finally
>>ld could not find referenced symbol "__cg92_used". What does it mean ?
>>I couldn't catch any reference to this symbol looking through manuals or
>>Oracle*books.
>>Any ideas and suggestions would be greatly appreciated .
>>Thanks,
>>Anton
>>___________________________________________________________________________
>> Anton Gruza E-mail: ant_at_geol.spb.su
>> North-Western Geological Center Voice: (812)352-30-19
>> St.Petersburg, Russia Fax: (812)352-3019
>>___________________________________________________________________________
>
>
>-xcg92 is a compiler option on the Sun Sparc C compiler. It tells the
>compiler to make some optimizations for the Sun Sparc 10 series hardware (ie
>Sparc 10, 20, 1000). I guess that if you are not using Sun C compiler on these
>hardware platforms you do not need this option??
>
>Robin.
But you do need to satisfy the reference. This would all be sorted out for you if you used the sun suppiled cc. However, for the benifit of us gcc users, Oracle ship an object file which will do. It is $ORACLE_HOME/lib/__fstd.o
The 7.1.4 version of proc.mk includes this file in the link. I havn't got a 7.1.3 version to look at. Relevant lines in the 7.1.4 file are:
CC=cc
CFLAGS=
COMPOBJ=$(ORACLE_HOME)/lib
COMPOBJS=$(COMPOBJ)/crti.o $(COMPOBJ)/crt1.o $(COMPOBJ)/__fstd.o
LDSTRING= -Y P,$(LD_LIBRARY_PATH):/usr/ccs/lib:/usr/lib -Qy -lc $(COMPOBJ)/crtn.o
CC= ld -dy $(COMPOBJS)
ASFLAGS=-P
RCC=cc -I. -O -xcg92
Received on Fri Jun 23 1995 - 00:00:00 CEST