samba-2.2.0 fails to build on ULTRIX V4.5
Bernhard Simon
bs at bsws.zid.tuwien.ac.at
Thu Apr 19 12:47:21 GMT 2001
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 at zid.tuwien.ac.at
More information about the samba
mailing list