12-03-2007
supposing that u are making a %.o file from a %.pc file
-> search for the rule written for making %.o from %.pc
there may be a intermediate step like %.pc -> %.c and then %.c -> %.o
while searching for %.pc inside your makefile, u will find the variable name used for proc compiler, if it is PROC, then search for "include", this is to conform if the Makefile is including any other file, which is altering the value of PROC
->Find how is the PROC value created, it is also possible that, it is created using ORACLE_HOME or ORACLE_BIN(if exist).You can do it by searching for PROC inside Makefile and other make related files
->check your environment and other files(.login , .profile etc depending upon the shell you are using ) responsible for environment
->setenv or set would list out the env variable, check what is the value of ORACLE_HOME or other ORACLE related env variables
setenv | grep -i ORACLE
or you can see manually
->if the env variable is holding the wrong value or if there is a invalid path in the file.Then you should change that
->from your statements I personally feel that the problem is with the env, not in Makefile (Some time you may get errors in Makefile, due to usage of older version of Make )
Rakesh
10 More Discussions You Might Find Interesting
1. Programming
Hi ,
While trying to compile a PRO*C code on unix using makefile i get the following errors. i am now working on a 10g migration (from 8i) ...
these makefile perfectly work in previous version.
ld: fatal: file... (7 Replies)
Discussion started by: sivalives
7 Replies
2. Programming
All,
I am facing problem with one makefile compilation. The following is the error I am getting
<Code>
/applns/ora10/rdbms/bin/proc sqlcheck=semantics userid=/ CHAR_MAP=VARCHAR2 DBMS=V7 DEFINE=UNIX DEFINE=SUN_SRC_COMPAT iname=mm5900.pc
sh: /applns/ora10/rdbms/bin/proc: not found
*** Error... (1 Reply)
Discussion started by: nsurendiran
1 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I am trying to create an executable, but when the .pc file converting to .c file I am getting lots of warning message like
of these 3 lines.
Any idea why I am getting these lines?
Any configuration issues?
What exactly needs to be done to solve these warning messages?
... (0 Replies)
Discussion started by: nsurendiran
0 Replies
4. UNIX for Advanced & Expert Users
Hi guys,
I'm in trouble to do postfix compilation on a Solaris.
SunOS 5.10 Generic_118833-33 sun4u sparc SUNW, Sun-Fire-V440
I'm trying to compile postfix-2.4.5
which make replay /usr/ccs/bin/make and it's in the profile
When I launch make install clean it replies
make: Fatal... (2 Replies)
Discussion started by: moustik
2 Replies
5. Red Hat
Hi,
While trying to build the linux kernel - 2.6.24.2,
i get the following error message during initial phase(make menuconfig) :
scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or directory <===
In file included from scripts/kconfig/lxdialog/checklist.c:24:
It seems... (1 Reply)
Discussion started by: amit4g
1 Replies
6. UNIX for Advanced & Expert Users
Hi ,
Please answer my query:
I want to create a common make file for one of mylibrary such that it should work on both Sun as well as Linux on 32 and 64 bit system.
The flow is sth like this:
..............
..............
if$(OS) == solaris
BINDIR= ../../lib/solaris/64
else
BINDIR=... (1 Reply)
Discussion started by: unisuraj
1 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Discussion started by: Tatl
1 Replies
8. Linux
Hi,
I am getting following error when i try to compile :
Error: Expected variable in READ statement at (1)
read(12,*) ((l1to2(l,j),j=1,2),l=1,ngl(2,4))
Also i am getting following error :
Error: Syntax error in COMMON statement at (1)
at some statements.
I am using mpif90... (1 Reply)
Discussion started by: aksharb
1 Replies
9. UNIX for Dummies Questions & Answers
I have installed ubuntu 11.04 on my system.
After this when I used to give uname -r it showed me kernel version as 2.6.38.
Now I had downloaded kernel 2.6.34.12 from kernel.org and installed it using the following steps:
make
make modules
make modules_install
make install
This created... (2 Replies)
Discussion started by: rupeshkp728
2 Replies
10. Linux
Hello Forum memebers,
I am kshyap kumran from bangalore india.
I working on porting project from solaris to linux ie C++ application porting from solaris to linux.while compiling on linux box i facing some issues.As i am new to linux environment i was blocked in the below mentioned... (1 Reply)
Discussion started by: kshyap
1 Replies
LEARN ABOUT REDHAT
gccmakedep
gccmakedep(1) General Commands Manual gccmakedep(1)
NAME
gccmakedep - create dependencies in makefiles using 'gcc -M'
SYNOPSIS
gccmakedep [ -sseparator ] [ -fmakefile ] [ -a ] [ -- options -- ] sourcefile ...
DESCRIPTION
The gccmakedep program calls 'gcc -M' to output makefile rules describing the dependencies of each sourcefile, so that make(1) knows which
object files must be recompiled when a dependency has changed.
By default, gccmakedep places its output in the file named makefile if it exists, otherwise Makefile. An alternate makefile may be speci-
fied with the -f option. It first searches the makefile for a line beginning with
# DO NOT DELETE
or one provided with the -s option, as a delimiter for the dependency output. If it finds it, it will delete everything following this up
to the end of the makefile and put the output after this line. If it doesn't find it, the program will append the string to the makefile
and place the output after that.
EXAMPLE
Normally, gccmakedep will be used in a makefile target so that typing 'make depend' will bring the dependencies up to date for the make-
file. For example,
SRCS = file1.c file2.c ...
CFLAGS = -O -DHACK -I../foobar -xyz
depend:
gccmakedep -- $(CFLAGS) -- $(SRCS)
OPTIONS
The program will ignore any option that it does not understand, so you may use the same arguments that you would for gcc(1), including -D
and -U options to define and undefine symbols and -I to set the include path.
-a Append the dependencies to the file instead of replacing existing dependencies.
-fmakefile
Filename. This allows you to specify an alternate makefile in which gccmakedep can place its output. Specifying "-" as the file
name (that is, -f-) sends the output to standard output instead of modifying an existing file.
-sstring
Starting string delimiter. This option permits you to specify a different string for gccmakedep to look for in the makefile. The
default is "# DO NOT DELETE".
-- options --
If gccmakedep encounters a double hyphen (--) in the argument list, then any unrecognized arguments following it will be silently
ignored. A second double hyphen terminates this special treatment. In this way, gccmakedep can be made to safely ignore esoteric
compiler arguments that might normally be found in a CFLAGS make macro (see the EXAMPLE section above). -D, -I, and -U options
appearing between the pair of double hyphens are still processed normally.
SEE ALSO
gcc(1), make(1), makedepend(1).
AUTHOR
gccmakedep was written by the XFree86 Project based on code supplied by Hongjiu Lu.
Colin Watson wrote this manual page, originally for the Debian Project, based partly on the manual page for makedepend(1).
XFree86 Version Version 4.3.0 gccmakedep(1)