The compilation of queue-1.40.1beta fails on my solaris
8 sparc station
with the following errors :
==============================================
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ident.c
In file included from /usr/include/sys/vnode.h:42,
from /usr/include/sys/stream.h:22,
from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include/sys/stream.h:5,
from /usr/include/netinet/in.h:41,
from /usr/include/netdb.h:96,
from define.h:37,
from queue.h:25,
from ident.c:28:
/usr/include/sys/resource.h:144: field `ru_utime' has
incomplete type
/usr/include/sys/resource.h:145: field `ru_stime' has
incomplete type
In file included from /usr/include/sys/stream.h:22,
from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include/sys/stream.h:5,
from /usr/include/netinet/in.h:41,
from /usr/include/netdb.h:96,
from define.h:37,
from queue.h:25,
from ident.c:28:
/usr/include/sys/vnode.h:168: parse error before
`timestruc_t'
/usr/include/sys/vnode.h:168: warning: no semicolon at
end of struct or union
/usr/include/sys/vnode.h:169: warning: data definition
has no type or storage class
/usr/include/sys/vnode.h:170: parse error before
`va_ctime'
/usr/include/sys/vnode.h:170: warning: data definition
has no type or storage class
/usr/include/sys/vnode.h:175: parse error before `}'
/usr/include/sys/vnode.h:175: warning: data definition
has no type or storage class
/usr/include/sys/vnode.h:202: parse error before
`vattr32_t'
/usr/include/sys/vnode.h:202: warning: data definition
has no type or storage class
In file included from define.h:128,
from queue.h:25,
from ident.c:28:
/usr/include/sys/vfs.h:235: warning: `struct statvfs64'
declared inside parameter list
/usr/include/sys/vfs.h:235: warning: its scope is only
this definition or declaration, which is probably not
what you want.
make: *** [ident.o] Error 1
=========================================
I couldn't find any the origin of this problem by
myself.
Does anybody know a workaround for this problem ?
Thanks
Logged In: NO
Part of these are caused by the compilation using the
_XOPEN_SOURCE #define. This causes struct timeval not to be
declared.
The vfs.h problems are a bit nastier.