What is the *exact* command you are using to compile the code?
Main Topics
Browse All TopicsHi, I am trying to compile this pro*c code and whenever I try the compile I get the following error:
command line: fatal: cannot open uzrdbal.c: No such file or directory
command line: fatal: cannot open uzrdbal.c: No such file or directory
This is what I using: /opt/SUNWspro/bin/cc and my PATH is set up as follows:
PATH=.:/opt/SUNWspro/bin:/
I am not sure what i adoing wrong. I have tried to change my path, but to no avail. It seems to be trying to look for the .c file, but I was under the imoression that the .c file is created during the compilation.
Any help that can be provided will be appreciated.
Thanks
Phil
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
this is what sctproc.mk file looks like:
ENV=-DOPSYS_UNIX -DPLAT_SUN
LOGIT=2>&1 | tee -a make.log
# C compiler name
CC=cc
# Stripping executables saves disk space at the expense of losing
# debugging information. If your C compiler does not support the
# -s switch then comment-out this macro.
STRIP=-s
# Defining the C macro COLLISION_CHECK forces the inclusion of guaclsn.h.
# Use this only if you are writing code intended for porting to other
# platforms.
# CCHECK=-DCOLLISION_CHECK
# Other C options
CCOPT=
# Other BANNER objects to be linked into executable
LINKOBJS=
##########################
# 2.2.1 The following are special additions used to create UTILITY
# libraries that are linked into the executable. These libraries
# are written to a new directory in the utility subdirectory. This
# directory will be created if needed when the library is compiled.
##########################
# Special UTILITY objects to be linked into libsctu.a
# NOTE: This includes the full paths of where they are found.
ULKOBJS=$(GOBJ)/uoqcis.o $(GOBJ)/uoqcom.o $(GOBJ)/uoqjobs.o \
$(GOBJ)/uoqjob1.o $(GOBJ)/uoqorac.o $(GOBJ)/uoqprnt.o \
$(GOBJ)/uoqvald.o $(GOBJ)/uoqbilp.o
# Objects to be linked are listed here without the full pathnames
UOBJS=uoqcis.o uoqcom.o uoqjobs.o uoqjob1.o uoqorac.o uoqprnt.o uoqvald.o uoqbilp.o
# Directory where UTILITY libraries are written
ULIBDIR=$(BANNER_HOME)/uti
# UTILITY libraries to be linked into executable
ULIBS=$(ULIBDIR)/libsctu.a
##########################
# 2.2.1 End of special UTILITY library additions
##########################
# If a full SQL check is desired, modify here or by overriding on the
# command line.
#CHECKOPT=sqlcheck=limited
CHECKOPT=sqlcheck=full USERID=userid=user/passwor
# Some addition Pro*C options
# DBMS= dbms=v7 Optional for Oracle 7.*
#amj DBMS= dbms=v6
DBMS= dbms=v8
# Modify basename command if it is not present in your UNIX path
BASE=`basename $* .o`
# Change these if file locations are non-standard
# 2.2.1 Add the EXE_HOME variable.
EXE_HOME=$(BANNER_HOME)/ge
GENC=$(BANNER_HOME)/genera
GOBJ=$(EXE_HOME)
GINC=$(BANNER_HOME)/genera
GEXE=$(EXE_HOME)
OINC=$(ORACLE_HOME)/precom
##########################
# The following macros should not need to be modified for the
# local environment.
##########################
# Suffixes pseudo-target
.SUFFIXES: .o .c .pc
# Compiler flags
# Certain C compilers may require additional flags to be passed from the
# command line to provide ansi compliance.
#
# If you have one of the following systems, please uncomment the line
# where ANSI=<flag> is located. Comment out the first ANSI= line.
#
#ANSI=
#
# The following are operating system specific ANSI compliance flags.
#
# DGUX
#ANSI=-Xc
#
# HPUX
#ANSI=-Aa
#
# Digital UNIX
#ANSI=-std1
#
# SUNWspro
ANSI=-Xa
CFLAGS=-I. -I$(GINC) -I$(GENC) -I$(OINC) -O $(ANSI) $(STRIP) $(CCHECK) $(ENV)
# ORACLE library directory
LIBHOME=$(ORACLE_HOME)/lib
# Link flags
#amj <$(LDFLAGS)
LDFLAGS= -L$(LIBHOME)
# Pro*C precompiler
PROC=proc
# Pro*C precompiler flags
# 2.2.1 Added 'parse=full' flag
PROFLAGS=ireclen=132 oreclen=132 lines=y select_error=no hold_cursor=yes \
release_cursor=no maxopencursors=255 maxliteral=160 ltype=none \
include=$(GINC)/ include=$(GENC)/ $(DBMS) $(CHECKOPT) $(USERID) \
parse=full
# All BANNER .o files to be linked
LOBJS=$(GOBJ)/guastdf.o $(GOBJ)/guarpfe.o $(GOBJ)/guaorac2.o $(LINKOBJS)
##########################
# Library macro definitions - derived from ORACLE makefile
##########################
CAT=cat
SYSLIBLIST=$(LIBHOME)sysli
SYSLIBS=`$(CAT) $(SYSLIBLIST)`
MATHLIB=-lm
#amj does not exist in /usr/lib on HP/UX 10.20 machines LLIBTHREAD=-lpthread
LDLIBS=$(EXPDLIBS) $(EXOSLIBS) $(SYSLIBS) $(EXSYSLIBS) $(MATHLIB) $(USRLIBS)$(LLIBTHREAD)
CLIBS= $(TTLIBS_QA) $(LDLIBS)
LLIBCLNTSH=-lclntsh
SCOREPT= $(LIBHOME)scorept.o
SSCOREED= $(LIBHOME)sscoreed.o
RDBMSHOME=$(ORACLE_HOME)/r
RDBMSLIB=$(RDBMSHOME)lib/
OBJ_EXT=o
DEF_ON= $(RDBMSLIB)kpudfo.$(OBJ_EX
LLIBCLIENT=-lclient
LLIBSQL= -lsql
NAUTAB = $(LIBHOME)nautab.$(OBJ_EXT
NAETAB = $(LIBHOME)naeet.$(OBJ_EXT)
NAEDHS = $(LIBHOME)naedhs.$(OBJ_EXT
NALDFLAGS=$(LIBHOME)naldfl
NALDFLAGSLIST=`$(CAT) $(NALDFLAGS)`
LLIBNETV2 = -lnetv2
LLIBNTTCP = -lnttcp
LLIBNETWORK = -lnetwork
LLIBSQLNET = $(LLIBNETV2) $(LLIBNTTCP) $(LLIBNETWORK)
LLIBRPC = -lncr
NETLIBS = $(LLIBSQLNET) $(LLIBRPC) $(LLIBSQLNET)
LLIBVSN=-lvsn
LLIBCOMMON=-lcommon
LLIBGENERIC=-lgeneric
LLIBRDBMS_CLT=$(LLIBCLIENT
LLIBMM=-lmm
LLIBNLSRTL= -lnlsrtl3
LLIBCORE= -lcore4
CORELIBS=$(LLIBNLSRTL) $(LLIBCV6) $(LLIBCORE) $(LLIBNLSRTL) $(LLIBCORE) $(LLIBNLSRTL)
LLIBEPC=-lepc
STATICTTLIBS=$(NAUTAB) $(NAETAB) $(NAEDHS) $(NALDFLAGSLIST) \
$(NETLIBS) $(LLIBRDBMS_CLT) $(LLIBMM) $(CORELIBS)\
$(NETLIBS) $(LLIBRDBMS_CLT) $(LIBPLS_CLT)\
$(LLIBEPC) $(CORELIBS) $(LLIBRDBMS_CLT) $(CORELIBS) $(LDLIBS)
TTLIBS=$(LLIBCLNTSH) $(STATICTTLIBS)
STATICPROLDLIBS=$(SCOREPT)
PROLDLIBS=$(LLIBCLNTSH) $(STATICPROLDLIBS)
LLIBS= $(PROLDLIBS)
##########################
# Rules for building BANNER modules
##########################
# Rules for building SCT support code objects
genobjs: $(GOBJ)/guastdf.o $(GOBJ)/guarpfe.o $(GOBJ)/guaorac2.o
$(GOBJ)/guastdf.o:
@ rm -f make.log
$(CC) $(CFLAGS) -c $(GENC)/guastdf.c $(LOGIT)
- mv guastdf.o $(GOBJ)/guastdf.o
chmod 644 $(GOBJ)/guastdf.o
@ echo "Successful Compilation of guastdf.c"
@ echo " "
$(GOBJ)/guarpfe.o:
@ rm -f make.log
$(CC) $(CFLAGS) -c $(GENC)/guarpfe.c $(LOGIT)
- mv guarpfe.o $(GOBJ)/guarpfe.o
chmod 644 $(GOBJ)/guarpfe.o
@ echo "Successful Compilation of guarpfe.c"
@ echo " "
$(GOBJ)/guaorac2.o:
@ rm -f make.log
$(PROC) iname=guaorac2.pc $(PROFLAGS) $(LOGIT)
$(CC) $(CFLAGS) -c guaorac2.c $(LOGIT)
- mv guaorac2.o $(GOBJ)/guaorac2.o
chmod 644 $(GOBJ)/guaorac2.o
- rm -f guaorac2.c
@ echo "Successful Compilation of guaorac2.pc"
@ echo " "
# Rule for building guaprpf
guaprpf:
$(CC) $(CFLAGS) guaprpf.c -o guaprpf $(GOBJ)/guastdf.o $(GOBJ)/guarpfe.o $(LDFLAGS) $(CCOPT)
- mv guaprpf $(GEXE)/guaprpf
- rm -f guaprpf.o
# Rules for building a Pro*C executable from a .pc or .c source file
# NOTE: The -o switch on the 'cc' command did not seem to be working.
# The executables were being written to $BANNER_LINKS, not
# $BANNER_HOME/general/exe. So the 'mv' command was added.
.pc:
@ rm -f make.log
$(PROC) iname=$*.pc $(PROFLAGS) $(LOGIT)
$(CC) $(CFLAGS) $*.c -o $(HOME)/$* $(LDFLAGS) $(LOBJS) $(ULIBS) $(LLIBS) $(CCOPT) $(LOGIT)
# - mv $* $(HOME)/$*
- rm -f $*.[co] $*.lis
@ echo "Successful Compilation of $*.pc"
@ echo " "
.c:
@ rm -f make.log
$(CC) $(CFLAGS) $*.c -o $(GEXE)/$* $(LDFLAGS) $(LOBJS) $(ULIBS) $(LLIBS) $(CCOPT) $(LOGIT)
# - mv $* $(GEXE)/$*
- rm -f $*.o
@ echo "Successful Compilation of $*.c"
@ echo " "
# Rule for building an object file from a .pc source file
.pc.o:
@ rm -f make.log
$(PROC) iname=$(BASE).pc $(PROFLAGS) $(LOGIT)
$(CC) $(CFLAGS) -c $(BASE).c -o $(GOBJ)/$(BASE).o $(LOGIT)
- rm -f $*.c $*.lis
@ echo "Successful Compilation of $*.pc"
@ echo " "
# Rule for building an object file from a .c source file
.c.o:
@ rm -f make.log
$(CC) $(CFLAGS) -c $(BASE).c -o $(GOBJ)/$(BASE).o $(LOGIT)
@ echo "Successful Compilation of $*.c"
@ echo " "
##########################
# Rules for building special libraries
##########################
# Rule for building the UTILITY library file
libsctu.a : $(UOBJS)
@ rm -f make.log
ar rv $(ULIBDIR)/libsctu.a $(ULKOBJS) $(LOGIT)
Business Accounts
Answer for Membership
by: psolvePosted on 2007-09-19 at 14:19:36ID: 19924581
this is the full message that I get when I try to compile OD/general /c/ include=/app/banner/GRIFPR OD/general /c/ dbms=v8 sqlcheck=full userid=uims eral/c -I/app/banner/GRIFPROD/gen eral/c -I/u00/app/oracle/product/ 8.0.5/prec omp/public -L/u00/app/oracle/product/ 8.0.5/lib/ /app/banner/GRIFPROD al/exe/gua rpfe.o /app/banner/GRIFPROD/gener al/exe/gua orac2.o /app/banner/GRIFPROD/ 0.5/lib/sc orept.o /u00/app/oracle/product/8. 0.5/lib/ss coreed.o /u00/app/o lib/kpudfo .o -lclient -lsql -lclntsh /u00/app/oracle/product/8. 0.5/lib/na utab.o /u00/app/oracle/product/8. 0.5/lib/na ect.o /u00/app/oracle/product/8. 0.5/lib/na edhs.o `cat /u00/app/oracle/product/8. 0.5/lib/sy sliblist` -lm 2>&1 | tee -a make.log
make -f sctproc.mk uzrdbal
proc iname=uzrdbal.pc ireclen=132 oreclen=132 lines=y select_error=no hold_cursor=yes release_cursor=no maxopencursors=255 maxliter
al=160 ltype=none include=/app/banner/GRIFPR
mgr/password parse=full 2>&1 | tee -a make.log
cc ./configure -I. -I/app/banner/GRIFPROD/gen
-O -Xa -s -DOPSYS_UNIX -DPLAT_SUN uzrdbal.c -o /usr/home/pmcintyr/uzrdbal
/general/exe/guastdf.o /app/banner/GRIFPROD/gener
utility/c/lib/libsctu.a -lclntsh /u00/app/oracle/product/8.
racle/product/8.0.5/rdbms/
0.5/lib/naeet.o /u00/app/oracle/product/8.
0.5/lib/naldflgs` -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lclient -lvsn -lcommon -lgeneric -lmm -lnlsrtl3 -lcor
e4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lclient -lvsn -lcommon -lgeneric -lepc -l
nlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lclient -lvsn -lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 `cat
/u00/app/oracle/product/8.
command line: fatal: cannot open uzrdbal.c: No such file or directory
cc: acomp failed for uzrdbal.c
rm -f uzrdbal.[co] uzrdbal.lis
Successful Compilation of uzrdbal.pc