Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th March 2009
BadWolf BadWolf is offline
New User
Join Date: Mar 2009
Location: Atlanta, GA
Posts: 2
Default Makefile Problem


I downloaded a set of files from http://www.dk.freebsd.org/cgi/cvsweb....bin/compress/ and am currently trying to get the make file to compile. The makefile provided is as follows:

# @(#)Makefile 8.2 (Berkeley) 4/17/94
# $FreeBSD: src/usr.bin/compress/Makefile,v 2008/11/25 02:59:29 kensmith Exp $

PROG= compress
SRCS= compress.c zopen.c
LINKS= ${BINDIR}/compress ${BINDIR}/uncompress
MLINKS= compress.1 uncompress.1

# XXX zopen is not part of libc
# MAN=zopen.3

.include <bsd.prog.mk>

when running the command make, it kept returning "*** missing separator. Stop." errors. I played around with it, and make seems to be happier with "include /usr/share/mk/bsd.prog.mk", however bsd.prog.mk uses the same form as above to include other files, and thus in turn causes the same missing separator errors, and of course this problem becomes recursive, as files call upon other bsd files, which call upon others.

Does anyone know whether this is a problem with my make progam? Or how this problem may be easily resolved?

Thank you,

Reply With Quote
  #2   (View Single Post)  
Old 13th March 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243

Can you post the full error message/output of make?
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 13th March 2009
BadWolf BadWolf is offline
New User
Join Date: Mar 2009
Location: Atlanta, GA
Posts: 2

The unaltered Makefile produces the following error:

Makefile:13: *** missing separator. Stop.

Where line 13 is the one concerning the include instruction. My altered Makefile, described above, produces the following error:

/usr/share/mk/bsd.prog.mk:4: *** missing separator. Stop.

Where again the make program appears to be complaining about the usage of a period before include, carrot brackets, and lack of directory listings.
Reply With Quote
  #4   (View Single Post)  
Old 14th March 2009
drl's Avatar
drl drl is offline
Port Guard
Join Date: May 2008
Posts: 19


I created a small Makefile using ".include" and it worked with:
OS, ker|rel, machine: FreeBSD, 7.0-RELEASE, i386
make - ( /usr/bin/make Feb 24 2008 )
When I transferred that Makefile to a Linux box, named it BSDmakefile and ran GNU make, I got:
BSDmakefile:4: *** missing separator.  Stop.
I conclude that the standard FreeBSD make is not being used ... cheers, drl
Reply With Quote
  #5   (View Single Post)  
Old 15th March 2009
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
Join Date: Apr 2008
Posts: 537

Originally Posted by drl View Post
...I conclude that the standard FreeBSD make is not being used ...
Good catch.
I tried grep'ing the source for BSD make and couldn't find that particular error message, so I think you are right.

Last edited by ephemera; 15th March 2009 at 02:00 PM.
Reply With Quote

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot problem. Geometry problem? gulanito FreeBSD Installation and Upgrading 0 3rd July 2009 03:03 AM
${REINPLACE_CMD} on Makefile indiocolifa FreeBSD Ports and Packages 3 26th March 2009 11:16 PM
ports config and makefile scripting boincv FreeBSD Ports and Packages 6 1st October 2008 07:57 AM
Change Makefile options in ports shep FreeBSD Ports and Packages 5 18th August 2008 07:58 AM
First Post.. Woot!! --- An obvious Makefile question..? roundkat OpenBSD Packages and Ports 2 2nd May 2008 03:05 PM

All times are GMT. The time now is 05:32 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick