Hello,
In using Solaris Pro Compiler to compile Pro*C code. I am getting this
error:
make: Fatal error in reader: parser_proc_onl ine.mk, line 26: Badly
formed macro assignment
Based on other posts, this error is not related to C but related more
to my lack of understanding. When I look for line 26 in my make file,
it does not correlate to a MACRO assignment. Should I count blank or
comment-out lines in this measure? Any help/redirection on this point
would be appreciated.
This is the basic make command I am using:
/usr/ccs/bin/make -f parser_proc_onl ine.mk build
EXE=Parse_Algo_ Online_Attribut es.exe
OBJS=Parse_Algo _Online_Attribu tes.o
This is the make file
parser_proc_onl ine.mk
#!/bin/ksh
############### ############### ############### ############### ###########
#
# Program : parser_proc_onl ine.sh
#
# Project : ADM
#
############### ############### ############### ############### ###########
# Change Log
# Date Version Developer
Comments
############### ############### ############### ############### ###########
#
############### ############### ############### ############### ###########
# Description : This shell script runs
# 1. PRO*C Parser program
#
############### ############### ############### ############### ###########
# This makefile builds the Parser program
export ORACLE_HOME=/opt/oracle_9.2.0/precomp/lib
include /opt/oracle_9.2.0/precomp/lib/env_precomp.mk
#. /opt/oracle/product/ora920/precomp/lib/env_precomp.mk
# PARSERS is a list of the c proc Parser programs.
PARSERS= Parse_Algo_Onli ne_Attributes
# These targets build all of a class of Parser in one call to make.
parsers: $(PARSERS)
# The target 'build' puts together an executable $(EXE) from the .o
files
# in $(OBJS) and the libraries in $(PROLDLIBS). It is used to build
the
# c parser program.
# The rules to make .o files from .c and .pc files are later in this
file.
# $(PROLDLIBS) uses the client shared library; $(STATICPROLDLI BS) does
not.
#
build: $(OBJS)
$(DEMO_PROC_BUI LD_SHARED)
build_static: $(OBJS)
$(DEMO_PROC_BUI LD_STATIC)
$(PARSERS) $(OBJECT_PARSER S):
$(MAKE) -f $(MAKEFILE) OBJS=$@.o EXE=$@ build
# Some of the PARSERS require that .sql scripts be run before
precompilation.
# If you set RUNSQL=run in your call to make, then make will use
sqlplus or
# svrmgrl, as appropriate, to run the .sql scripts.
# If you leave RUNSQL unset, then make will print out a reminder to run
the
# scripts.
# If you have already run the scripts, then RUNSQL=done will omit the
reminder.
sqlplus_run:
($(CD) ../sql; $(BINHOME)sqlpl us $(USER) @$(SCRIPT) <
/dev/null)
svrmgrl_run:
($(CD) ../sql; $(BINHOME)svrmg rl < $(SCRIPT).sql)
sqlplus_ svrmgrl_:
$(SILENT)$(ECHO ) "# You must run the .sql script, " $(SCRIPT),
$(SILENT)$(ECHO ) "# before precomping this sample."
sqlplus_done svrmgrl_done:
# Here are some rules for converting .pc -> .c -> .o and for .typ ->
..h.
#
# If proc needs to find .h files, it should find the same .h files that
the
# c compiler finds. We use a macro named INCLUDE to hadle that. The
general
# format of the INCLUDE macro is
# INCLUDE= $(I_SYM)dir1 $(I_SYM)dir2 ...
#
# Normally, I_SYM=-I, for the c compiler. However, we have a special
target,
# pc1, which calls $(PROC) with various arguments, including
$(INCLUDE). It
# is used like this:
# $(MAKE) -f $(MAKEFILE) <more args to make> I_SYM=include= pc1
# This is used for some of $(PARSERS) and for $(OBJECT_PARSER S).
..SUFFIXES: .pc .c .o .typ .h
pc1:
$(PCC2C)
..pc.c:
$(MAKE) -f $(MAKEFILE) PROCFLAGS="$(PR OCFLAGS)" PCCSRC=$*
I_SYM=include= pc1
..pc.o:
$(MAKE) -f $(MAKEFILE) PROCFLAGS="$(PR OCFLAGS)" PCCSRC=$*
I_SYM=include= pc1
$(C2O)
..c.o:
$(C2O)
..typ.h:
$(OTT) intype=$*.typ hfile=$*.h outtype=$*o.typ $(OTTFLAGS)
code=c userid=$(USERID )
# These macro definitions fill in some details or override some
defaults
MAKEFILE=/opt/oracle/product/ora920/precomp/demo/proc/demo_proc.mk
OTTFLAGS=$(PCCF LAGS)
PROCPLSFLAGS=sq lcheck=semantic s userid=$(USERID )
PROCPPFLAGS=cod e=cpp $(CPLUS_SYS_INC LUDE)
PROCFLAGS=sqlch eck=semantics userid=$(USERID )
USERID=P_dm200/P_*********@edw d.world
INCLUDE=$(I_SYM ). $(I_SYM)$(PRECO MPHOME)public
$(I_SYM)$(RDBMS HOME)public $(I_SYM)$(RDBMS HOME)demo
$(I_SYM)$(PLSQL HOME)public $(I_SYM)$(NETWO RKHOME)public 8 10696
Seeker wrote: Hello,
In using Solaris Pro Compiler to compile Pro*C code. I am getting this error: make: Fatal error in reader: parser_proc_onl ine.mk, line 26: Badly formed macro assignment
Based on other posts, this error is not related to C but related more
Then why oh why are you posting here?
--ag
--
Artie Gold -- Austin, Texas http://goldsays.blogspot.com
"You can't KISS* unless you MISS**"
[*-Keep it simple, stupid. **-Make it simple, stupid.]
"Seeker" <pa************ @gmail.com> writes: Based on other posts, this error is not related to C but related more to my lack of understanding. When I look for line 26 in my make file, it does not correlate to a MACRO assignment.
Would you care to identify which line is line 26?
With the wrapping that google did for you, it's hard to tell.
Should I count blank or comment-out lines in this measure?
Yes.
#!/bin/ksh
What a weird mixture. Since this is a Makefile, what is '#!/bin/ksh'
doing in here?
Looks like someone converted a shell script into a Makefile,
or someone who knows only how to write shell scripts touched it.
# This makefile builds the Parser program export ORACLE_HOME=/opt/oracle_9.2.0/precomp/lib
My guess is that line above is line 26.
It is using "ksh" syntax, not Makefile syntax.
Remove the 'export', it doesn't belong here.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
%% Paul Pluzhnikov <pp************ *@charter.net> writes: # This makefile builds the Parser program export ORACLE_HOME=/opt/oracle_9.2.0/precomp/lib
pp> My guess is that line above is line 26. It is using "ksh" syntax,
pp> not Makefile syntax. Remove the 'export', it doesn't belong here.
Actually, that's legal in GNU make, and does just what you'd expect.
I suspect the OP is using Sun's version of make, but this makefile
contains GNU make-specific extensions and so doesn't work with Sun
make.
--
-------------------------------------------------------------------------------
Paul D. Smith <ps****@gnu.org > Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
"Paul D. Smith" <ps****@gnu.org > writes: Actually, that's legal in GNU make, and does just what you'd expect.
Yes, I knew that (but forgot :)
Of course most make variables are exported by default, so in this
case the export is redundant.
I suspect the OP is using Sun's version of make
He said so: /usr/ccs/bin/make -f parser_proc_onl ine.mk build
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Paul Pluzhnikov wrote: "Paul D. Smith" <ps****@gnu.org > writes:
Actually, that's legal in GNU make, and does just what you'd expect.
Yes, I knew that (but forgot :) Of course most make variables are exported by default, so in this case the export is redundant.
I suspect the OP is using Sun's version of make
He said so:
Now would be a good time for you all to take this off-topic discussion
somewhere topical.
--
BR, Vladimir
Followups set.
%% Paul Pluzhnikov <pp************ *@charter.net> writes:
pp> Of course most make variables are exported by default, so in this
pp> case the export is redundant.
The only make variables that are exported by default are the ones that
came from the environment in the first place. This is part of the POSIX
definition of make, so it's not just GNU make that works this way.
For example, in this case the setting of ORACLE_HOME in the makefile
will only be exported if ORACLE_HOME was set in the user's environment
before make was invoked.
Cheers!
--
-------------------------------------------------------------------------------
Paul D. Smith <ps****@gnu.org > Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
"Vladimir S. Oka" <no****@btopenw orld.com> writes: Paul Pluzhnikov wrote: "Paul D. Smith" <ps****@gnu.org > writes:
> Actually, that's legal in GNU make, and does just what you'd expect.
Yes, I knew that (but forgot :) Of course most make variables are exported by default, so in this case the export is redundant.
> I suspect the OP is using Sun's version of make
He said so:
Now would be a good time for you all to take this off-topic discussion somewhere topical.
The discussion is widely cross-posted. I think Vladimir meant
specifically that it should be removed from comp.lang.c. (It probably
isn't topical on all the rest of these newsgroups either.)
--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Keith Thompson opined: "Vladimir S. Oka" <no****@btopenw orld.com> writes: Paul Pluzhnikov wrote: "Paul D. Smith" <ps****@gnu.org > writes:
> Actually, that's legal in GNU make, and does just what you'd > expect.
Yes, I knew that (but forgot :) Of course most make variables are exported by default, so in this case the export is redundant.
> I suspect the OP is using Sun's version of make
He said so:
Now would be a good time for you all to take this off-topic discussion somewhere topical.
The discussion is widely cross-posted. I think Vladimir meant specifically that it should be removed from comp.lang.c. (It probably isn't topical on all the rest of these newsgroups either.)
Ah, yes. My apologies. I blame it on abominable Google interface I have
to use from the office -- it doesn't show headers by default.
--
BR, Vladimir
Oatmeal raisin. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tim Tyler |
last post by:
I'm getting fatal errors when executing code - and my error handler is
failing to trap them - so I get no stack backtrace :-(
The error I am getting is:
"Fatal error: Call to a member function fetchRow() on a non-object."
What are the available options here?
Am I supposed to check I have a real object whenever I perform
|
by: bettina |
last post by:
I want to list all the countries (147 in total) per continent with the
quantity of beercoasters that each country has. I get the following
message:
Fatal error: Maximum execution time of 30 seconds exceeded in
C:\wampp2\htdocs\main1.php on line 88
Here is the code...perhaps the loop is too big?
......
|
by: Gil |
last post by:
This is a question involving CORBA but the problem shows up
using Sun C++. The problem doesn't occur with Visual C++ 6.
I'm using a string in the following form in my CORBA IDL declaration
so both the client and server will have common strings defined.
module A {
interface B {
const string MY_STRING = "thestring";
}
|
by: SHC |
last post by:
Hi all,
I have a VC++ .NET 2003 - Windows XP Pro PC. I created a Win32 console
application in my VC++ .NET 2003 and copied validateDOM.cpp, books.xml and
books.xsd (see the attached files below) from Microfost MSDN Library for my
project "validateXML". When I did "Build" on my project, I got the following
fatal error C1010:
c:\Documents and Settings\SHC\My Documents\Visual Studio
Projects\valoidateDOM\valoidateDOM.cpp(273): fatal error...
|
by: George |
last post by:
I'm getting an internal compiler error from Visual C++ .NET 2003 when I'm using managed extensions. Here is the error.
Generating Code...
c:\development\icu\source\common\uhash.c(869) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'f:\vs70builds\3077\vc\Compiler\Utc\src\P2\main.c', line 148)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
...
| |
by: Jerome Cohen |
last post by:
AI am trying to call a third-party web service. this service expects an XML
fragment that contains the request plus other parameter. adding the web
reference created the syntax below(reference.vb).
I changed the data type for the structure that contains the XML data from
the default "String" to "xml.xmldocument" to enable easy filling of the
data.
my client code creates an XML document class, fills the data using standard
xml dom...
|
by: Dhieraj |
last post by:
While compiling a C++ code I am getting the following error :
CC -c -I/opt/iona/artix/2.0/include -I/opt/iona/asp/6.0/include -I/opt/ar/api63/include -I//var/tmp/vidya/aotscommon/include -I//var/tmp/coe/coesup2.0b17/include -I/opt/oracle/product/9.2.0.5.0/rdbms/demo -I/opt/oracle/product/9.2.0.5.0/rdbms/public -I/opt/oracle/product/9.2.0.5.0/plsql/public -I/opt/oracle/product/9.2.0.5.0/network/public ...
|
by: quitebizarre |
last post by:
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...
|
by: neovantage |
last post by:
Hey all,
I am getting Fatal error: Unable to read 4761 bytes. Can some one guide me how to fix this error. I have the latest version of Zend Optimizer on my server., So Zend is not the issue other than this does some has it's actauly solutions?
Here is the url of ERROR PAGE
i am badly stuck in it. Kindly help me out to sort out my problem.
Thanks in advance.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |