LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-22-2009, 02:49 AM   #1
pramod.srk
Member
 
Registered: Feb 2009
Posts: 47

Rep: Reputation: 15
Pro*C and empty output files


Dear All, We are migrating an application from unix to RHEL.
The oracle 8i is now moved to 10 g on RHEL.
After compilation of pc files , 3 temporary files will be created in current directory.
Is this the problem with OS or should i need to provide any other flags to my makefile.
The makefile looks like this.


OBJS = CreateC.c

PROGS = $(OBJS:.c=)

PC = $(ORACLE_HOME)/bin/proc
PCFLAGS =
CC = cc
CFLAGS =
RM = rm -f
LD_LIBRARY_PATH=${ORACLE_HOME}/lib:/usr/shlib:/usr/lib:/usr/oracle/product/8.1.6/obackup/lib

all: $(OBJS) $(PROGS) $(COMMON_OBJS)

#
# Pre Compile
#
%.c : ./%.pc
$(PC) $(CFLAGS) $<

#
# C Compile
#
$(PROGS) : $(OBJS)
$(CC) -o $@ $< -L/${ORACLE_HOME}lib/ -lclntsh `cat ${ORACLE_HOME}/lib/sysliblist` -lm -lpthread

$(COMMON_OBJS) : ./$(COMMON_OBJS).c
$(CC) -o $@ $<

clean:
$(RM) $(OBJS) $(PROGS) $(COMMON_OBJS)


With Regards
Pramod
 
Old 05-22-2009, 10:42 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,333

Rep: Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891
Quote:
Originally Posted by pramod.srk View Post
Dear All, We are migrating an application from unix to RHEL. The oracle 8i is now moved to 10 g on RHEL.
After compilation of pc files , 3 temporary files will be created in current directory. Is this the problem with OS or should i need to provide any other flags to my makefile.
The makefile looks like this.

With Regards
Pramod
Ok...it may help if you actually posted the error(s) you're getting, and some symptoms, other than "empty output files".

As far as adjusting the makefile goes...that depends on the source code, and what it does. Without having it, or knowing any of the requirements of it, all we can do is guess.
 
Old 05-25-2009, 02:06 AM   #3
pramod.srk
Member
 
Registered: Feb 2009
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks for the reply.
Actually i am not getting any errors or warnings from PROC compiler.
But it is creating 3 temporary files each time when i invoked the proc compiler and i am not even getting any runtime error as well.
I wanted to avoid these temporary files creation.

Some members having the same problem in the following link.
http://blog.firetree.net/2008/09/26/...mporary-files/


I think this link will give the detailed info.

With Regards
Pramod
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Empty command name of ps output in arm linux kumar_bst Linux - Software 4 08-02-2007 10:05 PM
Coping 5CD(s) of SuSE 9.3 Pro into one empty DVD ! ? ! ? bedi-beparwah SUSE / openSUSE 4 05-13-2005 02:10 PM
smbfs files empty jthibodeau Linux - Networking 1 08-23-2004 03:58 PM
Certain FAT32 files become empty shoota Linux - General 2 11-07-2003 08:20 AM
Delete Empty files whospeaks2me Linux - Newbie 2 07-18-2003 11:39 PM


All times are GMT -5. The time now is 04:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration