Subject: pkg/35263: gnome-vfs2-2.16.0nb1 fails build on darwin
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <scole@sdf.lonestar.org>
List: pkgsrc-bugs
Date: 12/15/2006 23:55:00
>Number:         35263
>Category:       pkg
>Synopsis:       gnome-vfs2-2.16.0nb1 fails build on darwin
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 15 23:55:00 +0000 2006
>Originator:     scole
>Release:        darwin 10.3.9
>Organization:
>Environment:
Darwin goofy 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC  Power Macintosh powerpc
>Description:
<sys/time.h> needed for timeval definition in one file:

f /bin/sh ../libtool --tag=CC --mode=compile gcc -pipe -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I../imported/neon -D_REENTRANT -DORBIT2=1 -I/Volumes/NetBSD/pkg/include/glib/glib-2.0 -I/Volumes/NetBSD/pkg/lib/glib-2.0/include -I/Volumes/NetBSD/pkg/include/libxml2 -I/Volumes/NetBSD/pkg/include/gconf/2 -I/Volumes/NetBSD/pkg/include/orbit-2.0   -D_REENTRANT -DORBIT2=1 -I/Volumes/NetBSD/pkg/include/glib/glib-2.0 -I/Volumes/NetBSD/pkg/lib/glib-2.0/include -I/Volumes/NetBSD/pkg/include/gconf/2 -I/Volumes/NetBSD/pkg/include/orbit-2.0         -D_FILE_OFFSET_BITS=64 -D_BSD_SOURCE -D_LARGEFILE64_SOURCE -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DSSH_PROGRAM=\"/usr/bin/ssh\" -DG_DISABLE_DEPRECATED -DGNOME_VFS_PREFIX=\"/Volumes/NetBSD/pkg\" -DGNOME_VFS_DATADIR=\"/Volumes/NetBSD/pkg/share\" -DGNOME_VFS_LIBDIR=\"/Volumes/NetBSD/pkg/lib\" -DGNOME_VFS_SYSCONFDIR=\"/Volumes/NetBSD/pkg/etc\" -DG_LOG_DOMAIN=\"gnome-vfs-modules\"   -DPREFIX="\"/Volumes/NetBSD/pkg\"" -DPKG_SYSCONFDIR="\"/Volumes/NetB
 SD/pkg/etc/gnome-vfs-2.0\"" -no-cpp-precomp -I/Volumes/NetBSD/pkg/include -I/usr/include -no-cpp-precomp  -O2 -I/Volumes/NetBSD/pkg/include -I/usr/include -MT file-method-acl.lo -MD -MP -MF ".deps/file-method-acl.Tpo" -c -o file-method-acl.lo file-method-acl.c; \
then mv -f ".deps/file-method-acl.Tpo" ".deps/file-method-acl.Plo"; else rm -f ".deps/file-method-acl.Tpo"; exit 1; fi
 gcc -pipe -DHAVE_CONFIG_H -I. -I.. -I../imported/neon -D_REENTRANT -DORBIT2=1 -I/Volumes/NetBSD/pkgsrc/sysutils/gnome-vfs2/work/.buildlink/include/glib/glib-2.0 -I/Volumes/NetBSD/pkgsrc/sysutils/gnome-vfs2/work/.buildlink/lib/glib-2.0/include -I/Volumes/NetBSD/pkgsrc/sysutils/gnome-vfs2/work/.buildlink/include/libxml2 -I/Volumes/NetBSD/pkgsrc/sysutils/gnome-vfs2/work/.buildlink/include/gconf/2 -I/Volumes/NetBSD/pkgsrc/sysutils/gnome-vfs2/work/.buildlink/include/orbit-2.0 -D_FILE_OFFSET_BITS=64 -D_BSD_SOURCE -D_LARGEFILE64_SOURCE -D_POSIX_PTHREAD_SEMANTICS -DSSH_PROGRAM=\"/usr/bin/ssh\" -DG_DISABLE_DEPRECATED -DGNOME_VFS_PREFIX=\"/Volumes/NetBSD/pkg\" -DGNOME_VFS_DATADIR=\"/Volumes/NetBSD/pkg/share\" -DGNOME_VFS_LIBDIR=\"/Volumes/NetBSD/pkg/lib\" -DGNOME_VFS_SYSCONFDIR=\"/Volumes/NetBSD/pkg/etc\" -DG_LOG_DOMAIN=\"gnome-vfs-modules\" -DPREFIX=\"/Volumes/NetBSD/pkg\" -DPKG_SYSCONFDIR=\"/Volumes/NetBSD/pkg/etc/gnome-vfs-2.0\" -no-cpp-precomp -I/Volumes/NetBSD/pkgsrc/sysutils/gno
 me-vfs2/work/.buildlink/include -no-cpp-precomp -O2 -MT file-method-acl.lo -MD -MP -MF .deps/file-method-acl.Tpo -c file-method-acl.c  -fno-common -DPIC -o .libs/file-method-acl.o
In file included from file-method-acl.c:37:
/usr/include/sys/resource.h:81: error: field `ru_utime' has incomplete type
/usr/include/sys/resource.h:82: error: field `ru_stime' has incomplete type
gnumake[2]: *** [file-method-acl.lo] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /Volumes/NetBSD/pkgsrc/sysutils/gnome-vfs2
*** Error code 1

Stop.
bmake: stopped in /Volumes/NetBSD/pkgsrc/sysutils/gnome-vfs2

>How-To-Repeat:
cd .../sysutils/gnome-vfs2 && bmake
>Fix:
In file

.../sysutils/gnome-vfs2/work/gnome-vfs/work/gnome-vfs-2.16.0/modules/file-method-acl.c

before the line

#include <sys/resource.h>

add 

#include <sys/time.h>

or fix configure to include it somehow...