473,382 Members | 1,480 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,382 software developers and data experts.

Qeustion in Compiling

Could any body help me ?

I'm trying to compile a vocoder program in school's HP-unix machine.

when I try following command.

make -f CODER.MAK (CODER.MAK was included in the vocoder source code..)

following message appears.

Make : must be a separator on rule line 31. stop
what do I have to do ?

please..
Nov 14 '05 #1
24 1670
Joonshik Kim <ki******@osu.edu> wrote:
I'm trying to compile a vocoder program in school's HP-unix machine. when I try following command. make -f CODER.MAK (CODER.MAK was included in the vocoder source code..) following message appears. Make : must be a separator on rule line 31. stop


'make' is a tool that is completely independend from C, so that
question has nothing at all to do with C and is off-topic here.
A better place to go to with that kind of questions would be e.g.
the newsgroup comp.unix.programmer.

<OT>
If you promise to ask questions about make in a different group,
I'll give you a hint: load the makefile into an editor, go to
line 31 and replace the spaces at the start of the line with tabs.
</OT>
Regards, Jens
--
\ Jens Thoms Toerring ___ Je***********@physik.fu-berlin.de
\__________________________ http://www.toerring.de
Nov 14 '05 #2
Joonshik Kim wrote:
when I try following command.

make -f CODER.MAK (CODER.MAK was included in the vocoder source code..)

following message appears.

Make : must be a separator on rule line 31. stop

what do I have to do ?


This has nothing to do with C, but what you have to do is edit
the makefile and insert a separator (probably a tab) on line 31.
If the makefile was copied and pasted from somewhere, tabs may
have got turned into spaces. Consult the "make" documentation
for details on makefile syntax.

Allin Cottrell
Nov 14 '05 #3
In <cd**********@charm.magnus.acs.ohio-state.edu> "Joonshik Kim" <ki******@osu.edu> writes:
Could any body help me ?

I'm trying to compile a vocoder program in school's HP-unix machine.

when I try following command.

make -f CODER.MAK (CODER.MAK was included in the vocoder source code..)

following message appears.

Make : must be a separator on rule line 31. stop
what do I have to do ?


Either learn how to use the tools involved in the application building
process or ask someone else to build the application. If you don't
understand how a tool works (or, at least, how it is supposed to be used),
you have no business using it.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #4

"Joonshik Kim" <ki******@osu.edu> a écrit dans le message de
news:cd**********@charm.magnus.acs.ohio-state.edu...
Could any body help me ?

I'm trying to compile a vocoder program in school's HP-unix machine.

when I try following command.

make -f CODER.MAK (CODER.MAK was included in the vocoder source code..)
following message appears.

Make : must be a separator on rule line 31. stop
what do I have to do ?

please..


It was around 1985-1986. My softare shop got
bought by a bigger one, CISI Telematique. The
employees and developers went to CISI's headquarters
to learn the new system, called "UNIX".

We had to discover from the scanty docs of the
Honeywell Bull manuals how to use the stuff. The
thing was to be programmed in a new language, called
"C", instead of the APL we used in the old shop.

There wasn't any interpreter any more, and you had
to specify with great detail to the machine how the
program would run. But it had its rewards, we could
develop incredible more efficient programs, at a lower
level than we were used to in APL.

The whole was organized in "Makefiles", (always with
upper case M as I was told), that a "make" utility
was supposed to swallow.

I remember now, as it was today, one afternoon of 1985,
when Jean Pierre and me spent the whole afternoon staring

"Make: must be a separator on rule line 31. stop"

Not even the wording of the message has changed in those
20 years. Not even that!

The file looked completely normal in our 3270 terminals.
The system editor displayed nothing else as what it
should be there.

AND THERE WAS NO WAY TO FIND ANY INFO ABOUT THAT
in the badly organized and always wrong manuals of
Honeywell Bull.

Bad luck for us, but eventually I got lucky and somewhere there
was a talk about a tab being needed. The file was badly translated
when uploading from the IBM/370 where it came to the mini-computer
with unix. Ahh, a tab is needed.

I remember wondering how can one design such an
interface: tab is invisible, no way to see a tab instead
of 8 spaces can you?

Ahh the good interface rules. And 20 years later the sense
of utter boredom. We are used to say that in the data
processing business everything changes so quickly...

Does it?

Nov 14 '05 #5
On 21 Jul 2004 16:59:12 GMT, Da*****@cern.ch (Dan Pop) wrote:
In <cd**********@charm.magnus.acs.ohio-state.edu> "Joonshik Kim" <ki******@osu.edu> writes:
Could any body help me ?

I'm trying to compile a vocoder program in school's HP-unix machine.

when I try following command.

make -f CODER.MAK (CODER.MAK was included in the vocoder source code..)

following message appears.

Make : must be a separator on rule line 31. stop
what do I have to do ?


Either learn how to use the tools involved in the application building
process or ask someone else to build the application. If you don't
understand how a tool works (or, at least, how it is supposed to be used),
you have no business using it.

HP-UX make was not the first make I had used, but I found this message
insufficiently obvious the first time I saw it.

--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 14 '05 #6

"Alan Balmer" <al******@att.net> a écrit dans le message de
news:b4********************************@4ax.com...
On 21 Jul 2004 16:59:12 GMT, Da*****@cern.ch (Dan Pop) wrote:

HP-UX make was not the first make I had used, but I found this message
insufficiently obvious the first time I saw it.


Me too (see other post in same thread)

Today 2001, couldn't that utility be changed?

Accepting spaces instead of tabs??????

That would save millions of hours to novices.

Nov 14 '05 #7
Dan Pop wrote:
In <cd**********@charm.magnus.acs.ohio-state.edu> "Joonshik Kim" <ki******@osu.edu> writes:

Could any body help me ?

I'm trying to compile a vocoder program in school's HP-unix machine.

when I try following command.

make -f CODER.MAK (CODER.MAK was included in the vocoder source code..)

following message appears.

Make : must be a separator on rule line 31. stop
what do I have to do ?

Either learn how to use the tools involved in the application building
process or ask someone else to build the application. If you don't
understand how a tool works (or, at least, how it is supposed to be used),
you have no business using it.

Dan


Great stuff, Dan. You're always helpful. Keep up the good work.

Nov 14 '05 #8
John Smith wrote, re. Dan Pop's response to a question about "make":
Either learn how to use the tools involved in the application building
process or ask someone else to build the application. If you don't
understand how a tool works (or, at least, how it is supposed to be
used), you have no business using it.


Great stuff, Dan. You're always helpful. Keep up the good work.


Inappropriate sarcasm. The original question was totally off-topic for
c.l.c., and clueless into the bargain. Under the circumstances there
is no strong presumption that a "helpful" answer was called for.

Allin Cottrell.
Nov 14 '05 #9
Allin Cottrell wrote:
John Smith wrote, re. Dan Pop's response to a question about "make":
Either learn how to use the tools involved in the application building
process or ask someone else to build the application. If you don't
understand how a tool works (or, at least, how it is supposed to be
used), you have no business using it.

Great stuff, Dan. You're always helpful. Keep up the good work.

Inappropriate sarcasm. The original question was totally off-topic for
c.l.c., and clueless into the bargain. Under the circumstances there
is no strong presumption that a "helpful" answer was called for.

Allin Cottrell.


If no helpful answer is called for, just ignore it for Christ's
sake and save bandwidth. If this ng isn't about being helpful,
there is no reason for its existence. Being rude to naive posters
won't stop OT posting (or clulessness). It's Dan Pop's habitual
bad manners that are inappropriate. He needs to get laid, or take
a valium, or something...

Nov 14 '05 #10
John Smith wrote:
If no helpful answer is called for, just ignore it for Christ's
sake and save bandwidth. If this ng isn't about being helpful,
there is no reason for its existence.


No.
If this newsgroup isn't about C,
then there is no reason for its existence.
OP was off topic.

--
pete
Nov 14 '05 #11
In article <40***********@mindspring.com>,
pete <pf*****@mindspring.com> wrote:
If this newsgroup isn't about C,
then there is no reason for its existence.


I agree with your statement but I hope that you realize that it is
no more than a slogan.

What you wish this newsgroup were and what this newsgroup _is_ are two
very different things. Pinch yourself to wake up. The main theme
of this newsgroup is a my-dick-is-longer-than-your-dick exhibition.
C-related discussions constitute a very small fraction of the
newsgroup's volume.

The large number of irrelevant articles that flood this newsgroup are
not posted by newbies; they are posted by the regulars. Just look
at this thread. One off-topic article by a newcomer has generated
a dozen responses. What does that make the newsgroup's signal to
noise ratio? Who is contributing to the noise?

--
rr
Nov 14 '05 #12
Rouben Rostamian wrote:
One off-topic article by a newcomer has generated
a dozen responses. What does that make the newsgroup's signal to
noise ratio?


It makes it vastly greater than the S/N ratio
on groups where there are no topic cops.
Take a look at
news:sci.physics
if you want to see what a newsgroup looks like,
after being rendered totally useless
by lack of topicality enforcement.

--
pete
Nov 14 '05 #13
In <b4********************************@4ax.com> Alan Balmer <al******@att.net> writes:
On 21 Jul 2004 16:59:12 GMT, Da*****@cern.ch (Dan Pop) wrote:
In <cd**********@charm.magnus.acs.ohio-state.edu> "Joonshik Kim" <ki******@osu.edu> writes:
Could any body help me ?

I'm trying to compile a vocoder program in school's HP-unix machine.

when I try following command.

make -f CODER.MAK (CODER.MAK was included in the vocoder source code..)

following message appears.

Make : must be a separator on rule line 31. stop
what do I have to do ?


Either learn how to use the tools involved in the application building
process or ask someone else to build the application. If you don't
understand how a tool works (or, at least, how it is supposed to be used),
you have no business using it.

HP-UX make was not the first make I had used, but I found this message
insufficiently obvious the first time I saw it.


It doesn't matter: if you know the make syntax, all you need to know is
that you have a syntax problem on line 31.

Mismatched braces can lead to far more confusing diagnostics from C
compilers.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #14
In <40************@mail.com> John Smith <JS****@mail.com> writes:
Dan Pop wrote:
In <cd**********@charm.magnus.acs.ohio-state.edu> "Joonshik Kim" <ki******@osu.edu> writes:

Could any body help me ?

I'm trying to compile a vocoder program in school's HP-unix machine.

when I try following command.

make -f CODER.MAK (CODER.MAK was included in the vocoder source code..)

following message appears.

Make : must be a separator on rule line 31. stop
what do I have to do ?

Either learn how to use the tools involved in the application building
process or ask someone else to build the application. If you don't
understand how a tool works (or, at least, how it is supposed to be used),
you have no business using it.

Dan


Great stuff, Dan. You're always helpful. Keep up the good work.


Believe it or not, the advice was far more helpful than it might look on
a superficial reading.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #15
Rouben Rostamian wrote:
In article <40***********@mindspring.com>,
pete <pf*****@mindspring.com> wrote:
If this newsgroup isn't about C,
then there is no reason for its existence.

I agree with your statement but I hope that you realize that it is
no more than a slogan.

What you wish this newsgroup were and what this newsgroup _is_ are two
very different things. Pinch yourself to wake up. The main theme
of this newsgroup is a my-dick-is-longer-than-your-dick exhibition.
C-related discussions constitute a very small fraction of the
newsgroup's volume.

The large number of irrelevant articles that flood this newsgroup are
not posted by newbies; they are posted by the regulars. Just look
at this thread. One off-topic article by a newcomer has generated
a dozen responses. What does that make the newsgroup's signal to
noise ratio?


Amen!

Who is contributing to the noise?

A few puffed up prima donnas who believe that expertise is
license to be abusive. Note that cooler heads did make helpful
responses the the OT post by contributing information that, while
strictly OT, is valuable.

Nov 14 '05 #16
pete wrote:
Rouben Rostamian wrote:

One off-topic article by a newcomer has generated
a dozen responses. What does that make the newsgroup's signal to
noise ratio?

It makes it vastly greater than the S/N ratio
on groups where there are no topic cops.
Take a look at
news:sci.physics
if you want to see what a newsgroup looks like,
after being rendered totally useless
by lack of topicality enforcement.


Sorry. The problem is not lack of "topicality enforcement."
sci.physics is a much broader and more popularized topic than
programming and therefore attracts more kooks and clueless
newbies. c.l.c and the other programming lang. ngs are lucky to
be in their own esoteric little niche where a relatively small
slice of the population has any interest in them.

Nov 14 '05 #17
On 22 Jul 2004 13:34:00 GMT, Da*****@cern.ch (Dan Pop) wrote:
Make : must be a separator on rule line 31. stop
what do I have to do ?

Either learn how to use the tools involved in the application building
process or ask someone else to build the application. If you don't
understand how a tool works (or, at least, how it is supposed to be used),
you have no business using it.

HP-UX make was not the first make I had used, but I found this message
insufficiently obvious the first time I saw it.


It doesn't matter: if you know the make syntax, all you need to know is
that you have a syntax problem on line 31.


One of a number of possible errors on line 31, or line 30, or 32, or
somewhere in the same file. Sorry, I can't agree that informative
error messages "don't matter." I've yet to see a compiler with only
one message. "Compilation complete - something bad on lines 436 and
768."

--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 14 '05 #18
In <5r********************************@4ax.com> Alan Balmer <al******@att.net> writes:
On 22 Jul 2004 13:34:00 GMT, Da*****@cern.ch (Dan Pop) wrote:
>Make : must be a separator on rule line 31. stop
>
>
>what do I have to do ?

Either learn how to use the tools involved in the application building
process or ask someone else to build the application. If you don't
understand how a tool works (or, at least, how it is supposed to be used),
you have no business using it.

HP-UX make was not the first make I had used, but I found this message
insufficiently obvious the first time I saw it.
It doesn't matter: if you know the make syntax, all you need to know is
that you have a syntax problem on line 31.


One of a number of possible errors on line 31, or line 30, or 32, or
somewhere in the same file.


You start by finding and fixing all the syntax errors you find on line
31. If there are none, you look at its neighbours.
Sorry, I can't agree that informative error messages "don't matter."
This is not what I said. I said that it doesn't matter if someone
doesn't understand a specific error message (that might be crystal
clear to another user). We have seen plenty of examples of users not
understanding the most clear diagnostics of gcc, so no matter what you
do, someone will fail to understand your messages. Yet, this should NOT
prevent anyone from searching and finding the problem.
I've yet to see a compiler with only
one message. "Compilation complete - something bad on lines 436 and
768."


Well, I have seen compilers reporting an error at line 768, when the
error was at line 436, which is even worse than your example.

I have used compilers that used numerical error codes as diagnostics.
It proved to be faster to look at the code and see what's wrong than
looking up the error codes in the compiler documentation (and having
them translated into almost as meaningless english text).

And the favourite error message of the first compiler I have ever used
(FORTRAN IV) was: "Syntax error".

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #19

"Alan Balmer" <al******@att.net> a écrit dans le message de
news:5r********************************@4ax.com...
On 22 Jul 2004 13:34:00 GMT, Da*****@cern.ch (Dan Pop) wrote:

One of a number of possible errors on line 31, or line 30, or 32, or
somewhere in the same file. Sorry, I can't agree that informative
error messages "don't matter." I've yet to see a compiler with only
one message. "Compilation complete - something bad on lines 436 and
768."


I find your point extremely important.
Clear error messages belong to software construction and
good software design.

As I explained in another message in this thread, the
interface of make in this respect is awful since there
is NO way to see the spaces or the tabulations in a computer
screen!!!!!

You just CAN'T SEE THEM. This first interface error is coupled with
another problem: a badly worded error message. Instead of saying:

Expecting separator (tab) at start of line xx, found "space"

It will NOT tell the user what a "separator" is or what it is expecting,
but just stop with a gibberish message.

I can understand that in the cramped environment of the
original Unix implementation this was maybe necessary but
TODAY, more than 20 years later seeing this error still there
and this people completely confused AS I WAS in 1985
is discouraging.


Nov 14 '05 #20
jacob navia wrote:
....
As I explained in another message in this thread, the
interface of make in this respect is awful since there
is NO way to see the spaces or the tabulations in a computer
screen!!!!!


Use syntax highlighting. E.g., vi[m] can be configured to colour
the tabs.

Jirka
Nov 14 '05 #21
In <cd**********@mamenchi.zrz.TU-Berlin.DE> Jirka Klaue <jk****@tkn.tu-berlin.de> writes:
jacob navia wrote:
...
As I explained in another message in this thread, the
interface of make in this respect is awful since there
is NO way to see the spaces or the tabulations in a computer
screen!!!!!


Use syntax highlighting. E.g., vi[m] can be configured to colour
the tabs.


vim can, vi certainly cannot (it was designed back when colour terminals
were practically unheard of).

Whenever in doubt, use the cursor right function of your editor to
see if dealing with two or more spaces or a tab character. The test
doesn't work for what appears to be a single space character, so simply
delete it and insert a tab instead, to be sure that you have a tab where
a tab is expected.

I agree that making tabs semantically different from spaces was a gross
design mistake, but we have to live with it. It usually bites when people
cut and paste from one makefile to another, because tabs usually get
converted to spaces during this operation.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #22
Dan Pop wrote:

In <cd**********@mamenchi.zrz.TU-Berlin.DE> Jirka Klaue <jk****@tkn.tu-berlin.de> writes:
jacob navia wrote:
...
As I explained in another message in this thread, the
interface of make in this respect is awful since there
is NO way to see the spaces or the tabulations in a computer
screen!!!!!


Use syntax highlighting. E.g., vi[m] can be configured to colour
the tabs.


vim can, vi certainly cannot (it was designed back when colour terminals
were practically unheard of).

[...]

vi does, however, have ":set list", which will make tabs appear as "^I".
(Along with changing other things about the display, such as marking the
end of every line with "$" to let you see trailing spaces.)

--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody at spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Nov 14 '05 #23
John Smith wrote:
Allin Cottrell wrote:
John Smith wrote, re. Dan Pop's response to a question about "make":
Either learn how to use the tools involved in the application building
process or ask someone else to build the application. If you don't
understand how a tool works (or, at least, how it is supposed to be
used), you have no business using it.

Great stuff, Dan. You're always helpful. Keep up the good work.


Inappropriate sarcasm. The original question was totally off-topic for
c.l.c., and clueless into the bargain. Under the circumstances there
is no strong presumption that a "helpful" answer was called for.

Allin Cottrell.

If no helpful answer is called for, just ignore it for Christ's sake and
save bandwidth. If this ng isn't about being helpful, there is no reason
for its existence. Being rude to naive posters won't stop OT posting (or
clulessness). It's Dan Pop's habitual bad manners that are
inappropriate. He needs to get laid, or take a valium, or something...

Yeap theres a lot of people on here who need to get laid and unplug
Nov 14 '05 #24
On Wed, 28 Jul 2004 20:42:22 GMT, Monkey-Mind
<fr**********@hotmail.com> wrote:

Yeap theres a lot of people on here who need to get laid and unplug


Off topic here. Try the alt.sex hierarchy.

--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 14 '05 #25

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

Similar topics

0
by: Martin Bless | last post by:
I need to access a MSSQL database (MS-Sql, not MySQL!)and would very much like to use mssql-0.09.tar.gz which is available from http://www.object-craft.com.au/projects/mssql/download.html ...
3
by: modemer | last post by:
Hello, I got weird compiling message similar like following when I compiled my simple code on Sun 5.8 with CC WorkShop 6 update 2 C++ 5.3. CC -g -o myclass.o -c myclass.cpp CC -g -o main.o...
0
by: David W. Fenton | last post by:
Today I was working on a hideous old app that I created a long time ago that does a lot of showing/hiding/resizing of fields on one of the forms. I had used constants to store reference values for...
4
by: Aaron Queenan | last post by:
When I build a C++ library to .NET using the managed C++ compiler, I get the following error message: Linking... LINK : error LNK2020: unresolved token (0A000005) _CrtDbgReport LINK : error...
2
by: Rudy Ray Moore | last post by:
Hi guys, I just upgraded to "Visual Studio .net 2003 7.1 c++" from VS6. Some things I like (proper for loop variable scoping, for example), but some other things are troubling me. One...
1
by: Jim Heavey | last post by:
Hello, trying to round out my knowlege here about compiling. To date I have used VS.Net to do all my compiling "majically", but I want to understand how to do it on my own, should the need ever...
10
by: Christina N | last post by:
When compiling my ASP.Net application, VS puts the new DLL under the local cached directory 'VSWebCache' in stead of on the server. How can I make it save the DLL file on the server when compiling?...
2
by: Justin Naidl | last post by:
A group of friends and I are doing a RPG (role-playing game) maker for a school project. It occured to us, however, that if you want the user to be able to have almost complete control over the...
8
by: WebSnozz | last post by:
I have an application written in C that does a lot of low level stuff. It does a lot of things like casting from void*'s. I want to create a new GUI for it in either C# or MC++, but reuse the...
0
by: =?Utf-8?B?amVmZmVyeQ==?= | last post by:
i need help compiling code dynamically it may involve some reflection so if any one is any good in that field or compiling code this would be a great time to show me what you know. by the way my...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.