Re: FreeBSD compile problem in zvt

Lyndon Drake <> writes:

> I just got gnome-libs 0.99.3, and the compilation failed in zvt/subshell.c:
> gcc28 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/home/lyndon//include -I/home/lyndon/include -I/usr/X11R6/include -I/home/lyndon//lib/glib/include -I/home/lyndon//include -I/home/lyndon/include -I/usr/X11R6/include -I/home/lyndon//lib/glib/include -I/home/lyndon//include -I/home/lyndon/include -I/usr/X11R6/include -DGNOMESBINDIR=\"/home/lyndon//sbin\" -I/home/lyndon/include -I/usr/X11R6/include -I/home/lyndon//lib/glib/include -I/home/lyndon//include -g -O2 -Wall -Wno-unused -c -fPIC -DPIC subshell.c -o subshell.lo
> In file included from subshell-includes.h:9,
>                  from subshell.c:25:
> /usr/include/sys/resource.h:58: field `ru_utime' has incomplete type
> /usr/include/sys/resource.h:59: field `ru_stime' has incomplete type
> I'm running FreeBSD 2.2.7-release.

Looks like this is already fixed in CVS - FreeBSD requires <sys/time.h>
before <sys/resource.h> - is this the case in your subshell-includes.h ?

It should look like:

#include <sys/time.h>
#include <sys/resource.h>

It's some common problem with FreeBSD that header files don't include
their dependencies.


   Martin Baulig - Angewandte Mathematik - Universitaet Trier,

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]