configure: WARNING: sys/sysinfo.h: present but cannot be compiled

John David Anglin dave at
Sun Oct 28 21:43:53 CET 2007

> configure:24719: gcc -c -O2  conftest.c >&5
> In file included from conftest.c:71:
> /usr/include/sys/sysinfo.h:180: error: array type has incomplete element type
> configure:24725: $? = 1
> This is line 180:
> extern struct syswait syswait[];

The work around is to include <inttypes.h> and <sys/sar.h> before
<sys/sysinfo.h> in the configure test.  This provides the declaration
for struct syswait.

J. David Anglin                                  dave.anglin at
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

More information about the gmp-bugs mailing list