Subject: Re: Samba 2.2.0 fails to compile on NetBSD/i386 1.4.2
To: Olaf Seibert <rhialto@polderland.nl>
From: Martin Husemann <martin@duskware.de>
List: current-users
Date: 05/20/2001 10:39:10
> It appears that line 29 of profile/profile.c is guilty:
> 
> #define IPC_PERMS ((SHM_R | SHM_W) | (SHM_R>>3) | (SHM_R>>6))

This is fixed in -current (and may even have been pulled up to the 1.5
branch). The symbolic defines in question are not mandated by any standard
and not documented on Solaris and Linux. In -current they have been added
as a portability courtesy, and are marked depreceated.

Take the brute force approach:

#ifdef SHM_R
#define IPC_PERMS ((SHM_R | SHM_W) | (SHM_R>>3) | (SHM_R>>6))
#else
#define IPC_PERMS 0644
#endif

Come on, anyone using "umask" or numeric "chmod" arguments nows that...


Martin