Issue with makefile compilation


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Issue with makefile compilation
# 1  
Old 12-03-2007
Data Issue with makefile compilation

All,

I am facing problem with one makefile compilation. The following is the error I am getting, Before proceeding to this I want to let you know all, only last week onwards I started working in solaris10, the same code is working in solaris 9. I dont know any link has to be created, or any path needs to be setup for this. Also I tried with C compilation which is working fine.

<Error>
/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 code 1
make: Fatal error: Command failed for target `mm085900.o'
</Error>

Here its refering the oracle path as "/applns/ora10/rdbms/bin/proc" which is invalid.

The actual path should be like "/applns/ora10/bin/proc"

I dont understand from where its taking that "rdbms" in to that path.

I have given path for the PROC in the make file as
<Code>
# Executables built by this makefile
PROC=$(ORACLE_HOME)/bin/proc
all: mm5900
</Code>

In the profile ORACLE_HOME is set as "/applns/ora10/".

Any suggestions are appreciated.

Thanks in advance

N.Surendran
# 2  
Old 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
# 3  
Old 12-03-2007
Rakesh,

Thanks for the suggetion, As you said its a new environment which we are setting it up and trying the compilations. I checked the environment variables for ORACLE related

MAIL=/var/mail/oracle
ORACLE_DOC=/applns/ora10/odoc
ORACLE_HOME=/applns/ora10
ORACLE_INIT=/raid/lhrdb/home/initLHR.ora
ORACLE_SID=LHR
ORACLE_TERM=vt100
ORACLE_USERID=oracle

I hope no issues with this. I will check the makefile for PROC variable and getback to you.

Thanks again.
# 4  
Old 12-03-2007
MySQL Issue with makefile compilation - resolved

As you suggested, I found one include statement which overrides PROC value in the makefile. I corrected it resolves the issue.

Thanks.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Makefile issue during porting.

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

2. UNIX for Dummies Questions & Answers

Kernel Compilation Issue

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

3. Linux

fortran compilation issue

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

4. Homework & Coursework Questions

Help with Simple Multi-Level Makefile (Extremely New at Makefile)

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

5. UNIX for Advanced & Expert Users

Makefile conditional compilation giving error

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

6. Red Hat

kernel compilation: ncurses issue

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

7. UNIX for Advanced & Expert Users

postfix compilation issue with make

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

8. UNIX for Dummies Questions & Answers

Warning message while makefile compilation

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

9. Programming

Issue with Makefile compilation

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

10. Programming

Makefile compilation Error -Unable to create executable

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
Login or Register to Ask a Question