Subject: compat/linux/i386/linux_syscall.h not found
To: None <current-users@netbsd.org>
From: Todd Whitesel <toddpw@best.com>
List: current-users
Date: 10/03/1998 02:31:49
Building -current from a fresh sup today:

In src/usr.bin/kdump/kdump.c there is the following include:

#include "../../sys/compat/linux/linux_syscall.h"

In src/sys/compat/linux/linux_syscall.h there is also:

#if defined(__i386__)
#include <compat/linux/i386/linux_syscall.h>
#elif defined(__alpha__)
#include <compat/linux/alpha/linux_syscall.h>
#else 
#define LINUX_SYS_MAXSYSCALL    0
#endif  

which does not work because I have no /usr/include/compat.

Changing them to:

#if defined(__i386__)
#include "i386/linux_syscall.h"
#elif defined(__alpha__)
#include "alpha/linux_syscall.h"
#else
#define LINUX_SYS_MAXSYSCALL    0
#endif

fixes the problem.

I did an explicit (cd src/sys && make includes) and was using 'make build'
so I would have expected to get all the includes into /usr/include, if that
was what was supposed to happen.

Todd Whitesel
toddpw @ best.com