1752509 Members
4858 Online
108788 Solutions
New Discussion юеВ

Re: make issue on HP-UX

 
manaankit
New Member

make issue on HP-UX

My make file includes Rules.mk. But it throws error. There is no special chracters in the line 2. If i comment that particular line the next line trows error. Even the empty line throws an error. Can any body suggest me a solution to this.

Error:
Include file: "Rules.mk"
Make: Must be a separator on rules line 2. Stop.
8 REPLIES 8
TwoProc
Honored Contributor

Re: make issue on HP-UX

I don't know if this is related from your posting, but it may be of help, can't tell enough from your posting...

You do need a special character - on the "command" line of a make target - it must start with a character...

An example:

myprog: myprog.o
cc -o myprog myprog.o

We are the people our parents warned us about --Jimmy Buffett
Torsten.
Acclaimed Contributor

Re: make issue on HP-UX

What answers do you expect if nobody except you can see your script?

Check for unprintable characters, e.g. ^M introduced while transferring a file from a PC to the server ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
manaankit
New Member

Re: make issue on HP-UX

MakeFile:
MQMINCDIR=/opt/mqm/inc
MQMLIB64DIR=/opt/mqm/lib64
MQMLIB32DIR=/opt/mqm/lib
JPATH1.3=/opt/java1.3/bin
JPATH1.4=/opt/java1.4/bin
JPATH1.5=/opt/java1.5/bin
### Standard parts
#
include Rules.mk

Rules.mk File:

# Standard stuff
.SUFFIXES:
.SUFFIXES: .exe .c .o
.SUFFIXES: .class .java
all: targets

There are no ^M chraracters present in the file which i have verified.

Make: Must be a separator on rules line 2. Stop.
Dennis Handly
Acclaimed Contributor

Re: make issue on HP-UX

Do you need to use gmake instead of HP-UX make?

But there is nothing obvious that indicates you need gmake on the fragments you provided.
Dennis Handly
Acclaimed Contributor

Re: make issue on HP-UX

I had no problems with the fragments you provided.
It only complained that there was no rule to build "targets".
manaankit
New Member

Re: make issue on HP-UX

But i am facing the problem. Is there any solution for the same if any one can please suggest me.

If i comment the first line the error comes in next line. Please suggest me a solution for the same.
Steven Schweda
Honored Contributor

Re: make issue on HP-UX

> [...] Please suggest me a solution for the
> same.

Please provide a useful problem report.

Always interesting:

uname -a

Possibly interesting:

type make

Attach some actual files which demonstrate
the actual problem, and show the actual
command which you used, and its actual
output. (You can use Zip or "tar"+"gzip" to
get multiple files into one package.)
Dennis Handly
Acclaimed Contributor

Re: make issue on HP-UX

>But I am facing the problem.

Unless you attach a test case to duplicate your problem, there is nothing we can do.