Question

getting an error: cc: acomp failed for uzrdbal.c

Asked by: psolve

Hi, 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:/bin:/usr/sbin:/usr/ccs/bin:/usr/ucb/:usr/ucb/cc:/usr/bin:/opt/SUNWvxva/bin:/usr/local/bin:/opt/lib/cobol/bin:/opt/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.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-09-19 at 14:16:44ID22839938
Tags

acomp

,

failed

Topics

Sun Solaris

,

Unix Operating Systems

,

C Programming Language

Participating Experts
2
Points
0
Comments
7

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

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.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

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.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

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.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Solaris flock/lockf...problems with UCB libs
    I am porting code from IRIX 5.3 to Solaris 2.4. The code compiles and works fine on IRIX, but I have had some problems with flock (and now lockf) on the Solaris system. The first problem I had was: (1) I attempted to compile using /usr/ucb/cc the result was: cc: language ...
  2. Problem with /usr/ucb/cc on Solaris
    If I try to compile with /usr/ucb/cc (which I do want to use rather than gcc because of some course requirements) on Solaris 2.6 I get the error: /usr/ucb/cc: language optional software package not installed I recently have installed the latest Solaris 2.6 Patch cluster. Lo...
  3. problem about cc
    when I run rhe 'cc' command .the system prompt the following messages: /usr/ucb/cc: language optional software package not installed. what should I do? thanks!
  4. C function to interact with /usr/sbin/sendmail
    I'm trying to do a function to send emails using Linux's /usr/sbin/sendmail. My code is: void send_email(const char *email_address) { FILE *email; email = popen("/usr/sbin/sendmail -t", "w"); fprintf(email, "To: %s\n", email_addr...
  5. /usr/sbin/pmconfig failing. Server dropped off network
    My server just dropped off the network. The network seems to check out OK. All other servers are fine. running traceroute from other servers hangs only on the final hop to this failing server. (Running traceroute from this server just hangs) Server is a Sun Sparc 20, running ...
  6. GCC-3.3 installation, a missing Package or missing CC…
    Hello! everyone, My Ultra 5 with Solaris 8 is Developter_Level Operating Environmental setup (I mean, I carefully supplemented as missing packages). And again I tried GCC-3.3 installation. I followed "Comments on gcc.hml", and used gcc-3.3.tar.gz from GNU's...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

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.

Join the Community

Answers

 

by: psolvePosted on 2007-09-19 at 14:19:36ID: 19924581

this is the full message that I get when I try to compile
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/GRIFPROD/general/c/ include=/app/banner/GRIFPROD/general/c/ dbms=v8 sqlcheck=full userid=uims
mgr/password  parse=full 2>&1 | tee -a make.log
cc ./configure -I. -I/app/banner/GRIFPROD/general/c -I/app/banner/GRIFPROD/general/c -I/u00/app/oracle/product/8.0.5/precomp/public
-O -Xa -s  -DOPSYS_UNIX -DPLAT_SUN uzrdbal.c -o /usr/home/pmcintyr/uzrdbal -L/u00/app/oracle/product/8.0.5/lib/ /app/banner/GRIFPROD
/general/exe/guastdf.o /app/banner/GRIFPROD/general/exe/guarpfe.o /app/banner/GRIFPROD/general/exe/guaorac2.o  /app/banner/GRIFPROD/
utility/c/lib/libsctu.a -lclntsh /u00/app/oracle/product/8.0.5/lib/scorept.o /u00/app/oracle/product/8.0.5/lib/sscoreed.o /u00/app/o
racle/product/8.0.5/rdbms/lib/kpudfo.o -lclient -lsql -lclntsh /u00/app/oracle/product/8.0.5/lib/nautab.o /u00/app/oracle/product/8.
0.5/lib/naeet.o /u00/app/oracle/product/8.0.5/lib/naect.o /u00/app/oracle/product/8.0.5/lib/naedhs.o `cat /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.0.5/lib/sysliblist`  -lm   2>&1 | tee -a make.log
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

 

by: TintinPosted on 2007-09-19 at 14:20:02ID: 19924584

What is the *exact* command you are using to compile the code?

 

by: psolvePosted on 2007-09-19 at 15:09:00ID: 19924902

make -f sctproc.mk uzrdbal.

 

by: psolvePosted on 2007-09-19 at 15:13:52ID: 19924921

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)/utility/c/lib

# 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/password
# 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)/general/exe
GENC=$(BANNER_HOME)/general/c
GOBJ=$(EXE_HOME)
GINC=$(BANNER_HOME)/general/c
GEXE=$(EXE_HOME)
OINC=$(ORACLE_HOME)/precomp/public
#######################################################################
# 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)sysliblist
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)/rdbms/
RDBMSLIB=$(RDBMSHOME)lib/
OBJ_EXT=o
DEF_ON= $(RDBMSLIB)kpudfo.$(OBJ_EXT)
LLIBCLIENT=-lclient
LLIBSQL= -lsql
NAUTAB           = $(LIBHOME)nautab.$(OBJ_EXT)
NAETAB       = $(LIBHOME)naeet.$(OBJ_EXT) $(LIBHOME)naect.$(OBJ_EXT)
NAEDHS           = $(LIBHOME)naedhs.$(OBJ_EXT)
NALDFLAGS=$(LIBHOME)naldflgs
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) $(LLIBVSN) $(LLIBCOMMON) $(LLIBGENERIC)
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) $(SSCOREED) $(DEF_ON) $(LLIBCLIENT) $(LLIBSQL) $(TTLIBS)
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)

 

by: psolvePosted on 2007-09-19 at 19:10:41ID: 19925780

I got the fix for this. All I had to do was re create the makefile and it was fine.
Thanks
Phil

 

by: ee_autoPosted on 2009-09-20 at 01:28:29ID: 25376298

Question PAQ'd, 500 points refunded, and stored in the solution database.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...