On 17 Jan 2006, at 11:41, Davide Libenzi wrote:

> 
> On Tue, 17 Jan 2006, David Lord wrote:
> 
> > On 16 Jan 2006, at 16:28, Davide Libenzi wrote:
> >
> >>
> >> On Tue, 17 Jan 2006, David Lord wrote:
> >>
> >>> I've been trying to setup a server to replace the one on FreeBSD
> >>> 5.3 which is giving a fairly regular panic due to problems more
> >>> with FreeBSD than Xmail which I had running for months without
> >>> problem on much faster hardware (p4-2400 vs 586-133).
> >>>
> >>> NetBSD box is an AMD k6-400 and I had NetBSD 2.0 installed and
> >>> Xmail 1.21. NetBSD was upgraded to 2.0.2 then 3.0 and Xmail still
> >>> running ok during testing. I'd left upgrade of Xmail to 1.22 until
> >>> last. On compile I get following error:
> >>>
> >>>
> >>>>
> >>>> g++  -O2 -I. -D__UNIX__ -D__BSD__ -D__NETBSD__ -D_REENTRANT=1
> >>>>  -D_THREAD_SAFE=1 -DHAS_SYSMACHINE -c SysDep.cpp
> >>>> In file included from SysDep.cpp:40:
> >>>> SysDepBSD.cpp: In function `int SysGetDiskSpace(const char*,
> >>>> SYS_INT64*,
> >>>>    SYS_INT64*)':
> >>>> SysDepBSD.cpp:2429: error: aggregate `statfs SFS' has incomplete
> >>>> type and
> >>>>    cannot be defined
> >>>> SysDepBSD.cpp:2431: error: invalid use of undefined type `struct
> >>>> statfs' SysDepBSD.cpp:2429: error: forward declaration of `struct
> >>>> statfs' gmake: *** [SysDep.o] Error 1
> >>>>
> >>>
> >>> First I tried recompile of Xmail 1.21 and this failed on NetBSD
> >>> 3.0 whereas it had compiled without problem on NetBSD 2.0.
> >>>
> >>> I'm no coder but noticed statfs is replaced by statvfs in solaris
> >>> version of the file so gave that a shot and compile completed
> >>> without error.
> >>>
> >>> I'm running out of time to get this installed tonight but if
> >>> anyone knows of correct fix it might be helpful tomorrow.
> >>
> >> What does `echo $OSTYPE` return on the NetBSD 3.0 box?
> >
> > bash-3.00# echo $OSTYPE
> > netbsdelf
> >
> > but I'd used command 'OSTYPE=NetBSD gmake -f Makefile.bsd'
> >
> > I've just tried OSTYPE=NetBSD so 'echo $OSTYPE' returns NetBSD and
> > compile with original code and commandline above still fails. The
> > compile output has shown -D__UNIX__ -D_BSD__ -D__NETBSD__ on all
> > attempts.
> >
> > Also tried from sh then ksh rather than bash and all fail at same
> > point.
> 
> Can you try this?
> 
> $ find /usr/include -type f -exec grep -H statfs {} \;

OK. output below. Meanwhile I find  my previous xmail-1.21 
configuration isn't working after the NetBSD update and gives error - 
 -213 on attempt to access the smtp server which is same as the xmail-
1.22 is giving. Also when I take the Maildir and binaries after I 
hacked xmail-1.22 to compile this does accept smtp connections 
without error. I'm slowly adding my configuration changes to this to 
find where it stops working.

One other possibility is I missed out a required postupdate step so 
I'll run postinstall against the NetBSD 3.0 distribution from cd.

Thanks

David

$ find /usr/include -type f -exec grep -H statfs {} \;

nfs/nfs_var.h:int nfsrv_statfs __P((struct nfsrv_descript *, \
struct nfssvc_sock *,

nfs/nfsproto.h:struct nfs_statfs {
rpcsvc/nfs_prot.x:struct statfsokres {
rpcsvc/nfs_prot.x:union statfsres switch (nfsstat status) {
rpcsvc/nfs_prot.x:      statfsokres reply;
rpcsvc/nfs_prot.x:              statfsres
rpcsvc/nfs_prot.h:struct statfsokres {
rpcsvc/nfs_prot.h:typedef struct statfsokres statfsokres;
rpcsvc/nfs_prot.h:extern "C" bool_t xdr_statfsokres(XDR *, \
statfsokres *);

rpcsvc/nfs_prot.h:extern  bool_t xdr_statfsokres(XDR *, \
statfsokres *);

rpcsvc/nfs_prot.h:bool_t xdr_statfsokres();
rpcsvc/nfs_prot.h:struct statfsres {
rpcsvc/nfs_prot.h:              statfsokres reply;
rpcsvc/nfs_prot.h:      } statfsres_u;
rpcsvc/nfs_prot.h:typedef struct statfsres statfsres;
rpcsvc/nfs_prot.h:extern "C" bool_t xdr_statfsres(XDR *, \
statfsres *);

rpcsvc/nfs_prot.h:extern  bool_t xdr_statfsres(XDR *, \
statfsres *);

rpcsvc/nfs_prot.h:bool_t xdr_statfsres();
rpcsvc/nfs_prot.h:extern "C" statfsres *nfsproc_statfs_2(nfs_fh *, \
CLIENT *);

rpcsvc/nfs_prot.h:extern "C" statfsres \
*nfsproc_statfs_2_svc(nfs_fh *, struct svc_req *);

rpcsvc/nfs_prot.h:extern  statfsres *nfsproc_statfs_2(nfs_fh *, \
CLIENT *);

rpcsvc/nfs_prot.h:extern  statfsres *nfsproc_statfs_2_svc(nfs_fh *, \
struct svc_req *);

rpcsvc/nfs_prot.h:extern  statfsres *nfsproc_statfs_2();
rpcsvc/nfs_prot.h:extern  statfsres *nfsproc_statfs_2_svc();
sys/mount.h:struct statfs12 {
sys/mount.h:int fstatfs(int, struct statfs12 *);
sys/mount.h:int getfsstat(struct statfs12 *, long, int);
sys/mount.h:int statfs(const char *, struct statfs12 *);
sys/mount.h:int getmntinfo(struct statfs12 **, int);
sys/mount.h:int fhstatfs(const fhandle_t *, struct statfs12 *);
sys/syscall.h:/* syscall: "compat_20_getfsstat" ret: "int" args: \
"struct statfs12 *" "long" "int" */

sys/syscall.h:/* syscall: "compat_20_statfs" ret: "int" args: \
"const char *" "struct statfs12 *" */

sys/syscall.h:#define   SYS_compat_20_statfs    157

sys/syscall.h:/* syscall: "compat_20_fstatfs" ret: "int" args: \
"int" "struct statfs12 *" */

sys/syscall.h:#define   SYS_compat_20_fstatfs   158
sys/syscall.h:/* syscall: "compat_20_fhstatfs" ret: "int" args: \
"const fhandle_t *" "struct statfs12 *" */

sys/syscall.h:#define   SYS_compat_20_fhstatfs  300
sys/syscallargs.h:      syscallarg(struct statfs12 *) buf;
sys/syscallargs.h:struct compat_20_sys_statfs_args {
sys/syscallargs.h:      syscallarg(struct statfs12 *) buf;
sys/syscallargs.h:struct compat_20_sys_fstatfs_args {
sys/syscallargs.h:      syscallarg(struct statfs12 *) buf;
sys/syscallargs.h:struct compat_20_sys_fhstatfs_args {
sys/syscallargs.h:      syscallarg(struct statfs12 *) buf;
sys/syscallargs.h:int   compat_20_sys_statfs(struct lwp *, void *, \
register_t *);

sys/syscallargs.h:int   compat_20_sys_fstatfs(struct lwp *, void *, \
register_t *);

sys/syscallargs.h:int   compat_20_sys_fhstatfs(struct lwp *, void *, \
register_t *);

ufs/ufs/ufsmount.h:     char    *fspec;                 /* name to \
export for statfs */



-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to