473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Comile fails with make: Fatal error: Command failed for target ...

Having got past the 'PCC-F-NOERRFILE, unable to open error message
file, facility PR2' by given 'other' read access to all the files
under ${ORACLE_HOME}/precomp, I'm now stuck with this not very helpful
error message.

I'm trying to use some code that compiles happily with Oracle 8i, but
fails with 10g. The code is for an MQ - Oracle table interface.

I've updated the obvious places in the makefile to use Oracle 10
instead of 8, and I'm using the -m64 option on gcc to try to produce
an executable that will run with Oracle 10, so now I'm stuck.

Here's the makefile. Any suggestions on changes here? ORACLE_HOME is
set correctly. In the meantime, I'll try without the -m64 option and
point to lib32 instead of lib.

#TODO: set up to point to your Roma installation
MQMLIB=/opt/mqm/lib
ORALIB=$(ORACLE_HOME)/lib

#MQMINC=/opt/mqm/include
MQMINC=/opt/mqm/inc
MYINC=../include

#TODO: standard build tools and flags ...
CC=xlC_r
LN=xlC_r
RM=rm -f
AR=ar

C_INCS=-I$(MQMINC) -I$(MYINC)
DEFS=-DTRACE -DOLD_IOSTREAM -DAIX -DDEBUG -DUMI -DNOCDATA

#MQCFLAGS= $(C_INCS) $(DEFS) -qcpluscmt
MQCFLAGS= $(C_INCS) $(DEFS)

#object & library definitions
O=o

include /u01/app/oracle/product/10.2.0.1/precomp/lib/env_precomp.mk
ORACLE8DIR=$(I_SYM). $(I_SYM)$(PRECOMPHOME)public $(I_SYM)$
(RDBMSHOME)public $(I_SYM)$(RDBMSHOME)demo \
$(I_SYM)$(PLSQLHOME)public $(I_SYM)$(NETWORKHOME)public
I_SYM=-I
PROCFLAGS= sqlcheck=semantics userid=smart_7606/smart_7606 include=$
(MYINC) include=$(MQMINC)

all: smartmqadapter

smartmqadapter: mq_smart smart_mq

# main targets ...
mq_smart: mq_smart.c
/usr/local/bin/gcc -o -m64 ../bin/mq_smart mq_smart.c $(MQCFLAGS) $
(ORACLE8DIR) -L$(MQMLIB) -L$(ORALIB) -lmqm -lclntsh
$(RM) mq_smart.c

smart_mq: smart_mq.c
/usr/local/bin/gcc -o -m64 ../bin/smart_mq smart_mq.c $(MQCFLAGS) $
(ORACLE8DIR) -L$(MQMLIB) -L$(ORALIB) -lmqm -lclntsh
$(RM) smart_mq.c

mq_smart.c: mq_smart.pc
$(PROC) $(PROCFLAGS) iname=mq_smart.pc

smart_mq.c: smart_mq.pc
$(PROC) $(PROCFLAGS) iname=smart_mq.pc
clean:
-$(RM) *.o

Aug 30 '07 #1
0 1717

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Christophe | last post by:
Hello, I'm trying to build python 2.3.4 on Solaris 8 (SunOS 5.8) and I ran into a little problem with the socket/ssl module : ************************************ gcc -shared...
0
by: Randell D. | last post by:
Folks, I have a number of years with HP Unix and Linux but I've never dipped my toes in to Perl - I currently have SuSE 8.1 at home and am using webmin (www.webmin.com) to update Perl 5.8.0-45...
1
by: lem | last post by:
under solaris: # make Making all in src Making all in engine make: Fatal error in reader: Makefile, line 453: Badly formed macro assignment Current working directory...
2
by: um | last post by:
When the POSIX pthreads library for w32 release 2-2-0 (http://sources.redhat.com/pthreads-win32/) is compiled with VC++6 then it compiles and passes all the benchmark tests in the subdirectory...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
4
by: ARF | last post by:
I'm testing AutoCAD 2005 automation via VS2005 Pro C++/CLR and I'm getting fatal compiler errors. I start with a default C++/CLR class library project and modify it by adding the following...
1
by: QLD_AU | last post by:
Has anyone see the following error ? VS 2005 Installs ok, however the SQL Mobile Edition (part of a full install) fails with the following error ? With Thanks Jason
8
by: Seeker | last post by:
Hello, In using Solaris Pro Compiler to compile Pro*C code. I am getting this error: make: Fatal error in reader: parser_proc_online.mk, line 26: Badly formed macro assignment Based on other...
8
by: Joe Withawk | last post by:
I have a solution consisting of a c# project as win application and a c++ project as classlibrary. Both are .net 2.0 The classlibrary handles some loading of quicktime movies, but that should not...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.