Problems compiling 2.0.6 on AIX 4.1.5
Peter Samuelson
peter at cadcamlab.org
Sun Feb 13 05:22:50 GMT 2000
[Ian Daniell]
> In file included from include/includes.h:284,
> from smbd/server.c:22:
> /usr/include/sys/vfs.h:154: warning: `struct statfs' declared inside
> parameter list
> /usr/include/sys/vfs.h:154: warning: its scope is only in this definition or
> declaration, which is probably not what you want.
Looks like Yet Another Harmless AIX Header File Warning [tm].
You can shut it up like so: copy /usr/include/sys/vfs.h to
/usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/2.95.1/include/sys/vfs.h
Then edit /usr/local/lib/.../vfs.h and insert, somewhere near the top:
#include <sys/statfs.h>
or even simply
struct statfs;
That's it. Like I said it's a harmless warning and this *should* shut
gcc up. Worked for me on several AIX 4.3.x headers....
Peter
More information about the samba
mailing list