On 11 Mar 2006, at 8:37, Davide Libenzi wrote:

> 
> On Tue, 7 Mar 2006, David Lord wrote:
> 
> > Well it was quite a while back (Jan 17).
> >
> > 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
> >
> > It didn't get very far. I can post full output 4.5k but that was
> > first error encountered.
> >
> > I've not had any other unexplained problem during setting up this
> > server.
> >
> > xmail-1.21 compiled ok on the k6-400 with NetBSD 2.0 (gcc 2.95) but
> > on trying again after update to NetBSD 3.0  (gcc 3.3.3) and failure
> > of xmail-1.22 to compile I found that wouldn't compile either and
> > gave same error.
> >
> > That would suggest I try again with gcc 2.95 which I'll try after
> > working out how I can safely install it without messing up existing
> > setup.
> 
> Ok, now I remember. This is not a gcc problem. You seem to be missing
> (or have a broken setup) of the libc development package (dunno how it
> is called in NetBSD.
 
Thanks Davide

I just found this in /usr/src/UPDATING 20040418:

  statfs(2) and friends have been replaced by statvfs(2).
  ...
  In addition your libc build might not work 
  (undefined SYS_statfs symbol) because make clean does not know how
  to remove files it does not know about anymore.

So that's got me progressed a bit further and seems to be related as 
my hack was to change statfs to statvfs in SysDepBSD.cpp. However I 
thought there were compatibility settings in use that were supposed 
to handle this and the suggested solution above doesn't seem 
applicable.

David

-
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