LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-11-2005, 07:14 AM   #1
julz_51
Member
 
Registered: Mar 2005
Location: France
Distribution: Gentoo, Debian, FC4
Posts: 40

Rep: Reputation: 15
Problem with a simple makefile


Hello,

I don't know much about C programming and makefiles but I have to work on a PAM module. I'm stuck when trying to compile the pam_permit example :
Code:
localhost:~/pam_permit# make
Makefile:15: *** Missing separator. Stop.
The two files (sources + makefile) are here : http://cvs.sourceforge.net/viewcvs.p...ermit/#dirlist.
My distro is Debian, kernel 2.4. Can you tell me how to compile the file ?
Thanks.
 
Old 11-12-2005, 12:57 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
I don't know without looking at the makefile (and I didn't find it easily from the link you gave), but that error is usually caused by not putting a "<TAB>" character to indent your rule.

EXAMPLE:

myfile.o: myfile.c
$(CC) -c $(CFLAGS) myfile.c
<= THERE NEEDS TO BE A "TAB" CHARACTER BETWEEN THE LEFT MARGIN AND THE "$(CC)".
BLANKS WILL CAUSE "MISSING DELIMITER" ERROR

'Hope that helps .. PSM
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Makefile Problem nelnel Programming 4 07-08-2005 02:31 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 03:57 AM
Another problem with Makefile lucs Slackware 3 02-14-2005 05:06 PM
Problem with Makefile lucs Slackware 7 02-11-2005 09:18 AM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 12:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration