Subject: Error building Samba
To: None <tech-pkg@NetBSD.org>
From: D'Arcy J.M. Cain <darcy@druid.net>
List: tech-pkg
Date: 04/03/2001 05:51:13
locking/shmem_sysv.c: In function `sysv_shm_open':
locking/shmem_sysv.c:659: `IPC_R' undeclared (first use in this function)
locking/shmem_sysv.c:659: (Each undeclared identifier is reported only once
locking/shmem_sysv.c:659: for each function it appears in.)
locking/shmem_sysv.c:659: `IPC_W' undeclared (first use in this function)
*** Error code 1

I tracked this down and it seems that the code uses a deprecated constant
(SHM_R) because it is defined but it is defined as something that isn't
defined except in sys/ipc.h in the kernel.  I can't quite figure out
where the fix needs to go.

  - Fix locking/shmem_sysv.c (and profile/profile.c which will also fail
    the same way) to never use SHM_R even if it is defined.
  - Fix sys/shm.c so that it doesn't define SHM_R
  - Fix sys/ipc.h to define SHM_R

Any thoughts?

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.