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

John David Anglin dave at hiauly1.hia.nrc.ca
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.

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


More information about the gmp-bugs mailing list