Menu

#7 Compile fails on OpenBSD 3.8

open
nobody
None
5
2005-09-07
2005-09-07
No

OpenBSD does not have hsearch_r, causing compile to fail
in dircache.c as shown below:

$ make
gcc -O -g -c dircache.c
dircache.c:61: error: storage size of `dirCache' isn't known
*** Error code 1
$

Previously I found and corrected a few very minor include
file issues with <wait.h> by replacing that line in each .c file
with this block:

#ifdef LINUX
#include <wait.h>
#else
/* OpenBSD wait4 */
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/wait.h>
#endif

Dirty, but effective.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB