~sircmpwn/public-inbox

General catch-all for patches, questions, and discussions for sircmpwn's projects that don't have their own mailing list.

When posting patches to this list, please edit the [PATCH] line to include the specific project you're contributing to, e.g.

[PATCH scdoc v2] Add thing to stuff

1 2

Make failures on OpenBSD

Stephen Gregoratto
Details
Message ID
<20181120135808.3upea724dwvq3t6q@BlackBox>
Download raw message
I tried compiling on my OpenBSD server and ran into the following 
problems:

1. Running `make` didn't work:
	make: don't know how to make src/%.c (prerequisite of: 
	.build/%.o)
	Stop in /home/liquid/scdoc-1.6.0
2. Running the commands manually resulted in main.c failing. My solution 
was to remove the _XOPEN_SOURCE define. Note that this makes building 
fail on Linux.

I'm not sure how to fix the make problems.
Details
Message ID
<20181120135935.GB4750@miku>
In-Reply-To
<20181120135808.3upea724dwvq3t6q@BlackBox> (view parent)
Download raw message
On 2018-11-21 12:58 AM, Stephen Gregoratto wrote:
> 1. Running `make` didn't work:
> 	make: don't know how to make src/%.c (prerequisite of: 
> 	.build/%.o)
> 	Stop in /home/liquid/scdoc-1.6.0

Try gmake? Willing to accept patches for a more portable makefile.

> 2. Running the commands manually resulted in main.c failing. My solution 
> was to remove the _XOPEN_SOURCE define. Note that this makes building 
> fail on Linux.

Should proabably be replaced with the appropriate _POSIX_C_SOURCE macro