Still unable to compile pro*c program

I am unable to compile the programs, I am able to compile .pc to .c but later part of the compilation from .c to executalbe i am unable to do.

Here is the way i am doing

make -f $LIB_LIB/makefile.templ sample

I am getting the following errors, which environment and where to set to point compiler to sqlca.h? please help.

ucbcc -O -DNULL=0 -v   -o sample -L/opt/oracle/product/10.2.0/precomp/lib/ -L/opt/oracle/product/10.2.0/lib/ -o sample sample.c   `cat /opt/oracle/product/10.2.0/lib/sysliblist` -R/opt/oracle/product/10.2.0/lib -laio  -lposix4  -lm 
###     command line files and options (expanded):
### -xO3 -DNULL=0 -v -L/opt/oracle/product/10.2.0/precomp/lib/ -L/opt/oracle/product/10.2.0/lib/ -o sample sample.c -lkstat -lnsl -lsocket -lgen -ldl -lsched -R/opt/oracle/product/10.2.0/lib -laio -lposix4 -lm 
### ucbcc: Note: NLSPATH = /opt/SUNWspro/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/SUNWspro/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
/opt/SUNWspro/prod/bin/acomp -Qy -N /tmp/acomp.12653.2.ir -g "/opt/SUNWspro/prod/bin/acc -O -DNULL=0 -v -L/opt/oracle/product/10.2.0/precomp/lib/ -L/opt/oracle/product/10.2.0/lib/ -R/opt/oracle/product/10.2.0/lib  -c" -b -Xa -D__SunOS_5_10 -D__SUNPRO_C=0x570 -Dunix -Dsun -Dsparc -D__unix -D__sun -D__sparc -D__BUILTIN_VA_ARG_INCR -D__SVR4 -D__RESTRICT -D__PRAGMA_REDEFINE_EXTNAME -I/opt/SUNWspro/prod/include/cc -O3 -DNULL=0 -destination_ir=iropt -i sample.c -o /tmp/acomp.12653.1.s -r /tmp/acomp.12653.0.ir

"sample.c", line 117: warning: no explicit type given
"sample.c", line 119: warning: no explicit type given
"sample.c", line 121: warning: no explicit type given
"sample.c", line 122: warning: no explicit type given
"sample.c", line 123: warning: no explicit type given
"sample.c", line 143: cannot find include file: <sqlca.h>
"sample.c", line 170: undefined symbol: sqlca
"sample.c", line 196: undefined struct/union member: sqlcode
"sample.c", line 196: warning: left operand of "." must be struct/union object
"sample.c", line 219: undefined symbol: sqlca
"sample.c", line 248: undefined struct/union member: sqlcode
"sample.c", line 248: warning: left operand of "." must be struct/union object
"sample.c", line 249: undefined struct/union member: sqlcode
"sample.c", line 249: warning: left operand of "." must be struct/union object
"sample.c", line 264: undefined symbol: sqlca
"sample.c", line 264: undefined struct/union member: sqlcode
"sample.c", line 264: warning: left operand of "." must be struct/union object
rm /tmp/acomp.12653.1.s
rm /tmp/acomp.12653.0.ir
*** Error code 2
make: Fatal error: Command failed for target `sample'

This is your problem

sample.c", line 143: cannot find include file: <sqlca.h>

The code line should read

#include "sqlca.h"

and there should be an -I [/path/to/where sqlca.h is] statement in the compile command, unless you have a copy in the current directory.