Problems on NetBSD also.
I don't know if this is correct, but it compiled, and is working so far.
source/profile/profile.c SHM_R and SHM_W were undefined.
The following 2 lines were added, (they were defined in shm.c in Solaris 2.7)
/*
* Permission Definitions.
*/
#define SHM_R 0400 /* read permission */
#define SHM_W 0200 /* write permission */
Doug Egan
Bernhard Simon wrote:>
> Environment: ULTRIX V4.5, cc (bundeled), samba-2.2.0
>
> * source/smbd/vfs-wrap.c fails to compile
> :
> Compiling smbd/vfs.c
> Compiling smbd/vfs-wrap.c
> cfe: Error: smbd/vfs-wrap.c, line 494: Syntax Error
> struct vfs_ops *vfs_ops = &fsp->conn->vfs_ops;
> ^
> cfe: Error: smbd/vfs-wrap.c, line 494: Syntax Error
> struct vfs_ops *vfs_ops = &fsp->conn->vfs_ops;
> ------------------------^
> cfe: Error: smbd/vfs-wrap.c, line 495: Syntax Error
> struct stat st;
> ^
> cfe: Error: smbd/vfs-wrap.c, line 497: Syntax Error
> off_t currpos;
> ------^
>
> reason: unknown
>
> Running "cc -E ..." on smbd/vfs-wrap.c results in
> -----------------------------------------------------------
> :
> int vfswrap_ftruncate(files_struct *fsp, int fd, off_t len)
> {
> int result = -1;
> ;
> struct vfs_ops *vfs_ops = &fsp->conn->vfs_ops;
> struct stat st;
> char c = 0;
> off_t currpos;
> currpos = vfs_ops->lseek(fsp, (off_t)0, 1);
> :
> -----------------------------------------------------------
>
> Removing the extra ";" goes only a bit further
>
> cfe: Error: smbd/vfs-wrap.c, line 499: \
> Number of arguments doesn't agree with number in declaration
> currpos = vfs_ops->lseek(fsp, (off_t)0, 1);
> ------------------------^
> cfe: Error: smbd/vfs-wrap.c, line 508: \
> Number of arguments doesn't agree with number in declaration
> if(vfs_ops->fstat(fsp, &st)<0) {
> -----------------^
>
> --
> Bernhard Simon, TU Wien, ZID/StS simon@zid.tuwien.ac.at
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
--
---
+-----------------------------------------------------------------+
| Douglas Egan Wind River |
| |
| Tel : 847-837-1530 |
| Fax : 847-949-1368 |
| HTTP : http://www.windriver.com |
| Email : doug.egan@windriver.com |
+-----------------------------------------------------------------+