Operating System - HP-UX
1752307 Members
5115 Online
108786 Solutions
New Discussion юеВ

Re: Having problems using gmake

 
SOLVED
Go to solution
Jody Davis
Occasional Contributor

Having problems using gmake

Can you help?? We are trying to run the following:

gmake -f wmoimain.mk

and get the following error:
opp_proc.mk:83: *** missing separator. Stop.
5 REPLIES 5
Alzhy
Honored Contributor

Re: Having problems using gmake

What's at line 83?

You probably have a wrong Makefile syntax on that line -- ie. a missing separator as the error message suggests.

Hakuna Matata.
Jody Davis
Occasional Contributor

Re: Having problems using gmake

Ok, but this same file worked on a different server. that indicates maybe something goofy with transfer method? Or the environment itself....

Any thoughts?
Ermin Borovac
Honored Contributor

Re: Having problems using gmake

You would get this error message if your makefile contains CR/LF line terminators (like files in MS world).

Try running vi on this file and if you see ^M characters run dos2ux on the makefile to get rid of these.
Jody Davis
Occasional Contributor

Re: Having problems using gmake

We can see we have ^M characters in our make files.

We tried issuing dos2ux on the file using syntax: dos2ux [file]

Are we doing something wrong?? We can still see ^M characters in our make files.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Having problems using gmake

I suspect what is wronfg is that you simply did a dos2ux myfile.mk and did not capture the standard output.

Use it like this:
dos2ux oldile.mk > newfile.mk or simply a tr command
tr -d "\r" < oldfile.mk > newfile.mk

Also check to make certain that however you copied the files that tabs were not expanded to spaces. Make is one of the very few UNIX utilities where tabs are no just whitespace.
If it ain't broke, I can fix that.