View Ticket
Not logged in
Ticket UUID: 2d2b158d75bc6cbe93f1bfb8bcb7275a53f890db
Title: -include config.mak fails under OpenBSD
Status: Fixed Type: Build_Problem
Severity: Important Priority:
Subsystem: Resolution: Fixed
Last Modified: 2010-03-07 17:27:22
Version Found In: 20091218002951
Description & Comments:
When running make under OpenBSD you receive the below error. "Makefile", line 51: Need an operator Fatal errors encountered -- cannot continue

Commenting out that line allows make to run.


jeremy_c added on 2009-12-31 04:00:50:
What is the error? Is there an equivilent command in OpenBSD? The idea is the -include will include config.mak if it exists, otherwise, it ignores the line.


jeremy_c added on 2009-12-31 04:44:27:
Also, I wonder if:

touch config.mak

causes the make command to function properly?


anonymous added on 2009-12-31 21:59:29:
The error is this: "Makefile", line 51: Need an operator Fatal errors encountered -- cannot continue. Touching config.mak doesn't have any affect. It would seem OpenBSD's version of make doesn't understand the -include syntax. I am not familiar with it enough to suggest a solution. Thanks


anonymous added on 2009-12-31 22:43:16:
Here is the solution I have come up with. It works with OpenBSD's make but doesn't look like it works with GNU make.

.if exists(config.make)
        include config.mak
.endif

anonymous added on 2009-12-31 22:45:03:
Of course it should read.

.if exists(config.mak)
        include config.mak
.endif

jeremy_c added on 2010-01-29 23:44:32:
Does this problem affect other BSD's such as Free and Net?


anonymous added on 2010-02-04 18:29:33:
Yes, the current Makefile also fails under FreeBSD 7/8. I've simply gotten around this by commenting it out.


anonymous added on 2010-02-17 19:51:13:
Also have this on AIX 5.3