Re: Pro*C compile error HELP

From: Amy Leone <amyleone_at_nyc.pipeline.com>
Date: 1996/03/06
Message-ID: <4hklf0$lbp_at_pipe3.nyc.pipeline.com>#1/1


On Mar 06, 1996 06:26:15 in article <Pro*C compile error HELP>, 'kmku_at_hkusua.hku.hk (Ku Kam Ming)' wrote:    

>I am novice in Pro*C and wanted to compile the demo .pc program but
 failed:
>
>
>% /usr/ccs/bin/make -f proc.mk sample2
>/usr/ccs/bin/make -f /oracle/product/7.1.6.2/proc/lib/proc.mk
>OBJS=sample2.o EXE=sample2 build
>/oracle/product/7.1.6.2/bin/proc iname=sample2.pc
>
>Pro*C: Release 2.0.6.0.0 - Production on Wed Mar 6 14:25:42 1996
>
>Copyright (c) Oracle Corporation 1979, 1994. All rights reserved.
>
>System default option values taken from:
>/oracle/product/7.1.6.2/proc/pmscfg.h
>
>cc -I. -O -xcg92 -I/oracle/product/7.1.6.2/sqllib/public -c sample2.c
>cc -I. -O -xcg92 -L/oracle/product/7.1.6.2/lib -o sample2 sample2.o -lsql
 

>/oracle/product/7.1.6.2/lib/osntab.o -lsqlnet -lora -lsqlnet -lora
>-lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore `cat
>/oracle/product/7.1.6.2/rdbms/lib/sysliblist`
>Undefined first referenced
>symbol in file
>__cg92_libc (command line)
>ld: fatal: Symbol referencing errors. No output written to sample2
>*** Error code 1
>make: Fatal error: Command failed for target `build'
>Current working directory /oracle/product/7.1.6.2/proc/demo
>*** Error code 1
>make: Fatal error: Command failed for target `sample2'
>
>
>Any Expert PLS suggest me what went wrong.
>
>
 

Wow. You can run make with the debug option as follows:  

   make -fd proc.mk sample2  

That will show you your link line with all the environment variables replaced by their real values. (The link line is the one that starts with cc). The make script assumes that certain environment variables are set, such as ORACLE_HOME. Maybe you don't have all your environment variables set. Can you make any of the other sample routines, or is this the only one that is a problem?  

Amy Received on Wed Mar 06 1996 - 00:00:00 CET

Original text of this message