gnome-vfs fails to build on 10.3.9

Brett Warden brett.warden at gmail.com
Tue Jan 23 14:11:15 PST 2007


While attempting to install gnucash, I got this error during gnome-vfs
compilation:

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I../imported/neon
-D_REENTRANT -DORBIT2=1 -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include
-I/opt/local/include/libxml2 -I/opt/local/include/gconf/2
-I/opt/local/include/orbit-2.0 -D_REENTRANT -DORBIT2=1
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include -I/opt/local/include/gconf/2
-I/opt/local/include/orbit-2.0 -I/opt/local/include/howl
-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=\"/opt/local\"
-DGNOME_VFS_DATADIR=\"/opt/local/share\"
-DGNOME_VFS_LIBDIR=\"/opt/local/lib\"
-DGNOME_VFS_SYSCONFDIR=\"/opt/local/etc\"
-DG_LOG_DOMAIN=\"gnome-vfs-modules\" -L/opt/local/lib
-I/opt/local/include -no-cpp-precomp -g -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
make[2]: *** [file-method-acl.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for gnome-vfs):
com.apple.activate com.apple.build com.apple.destroot
com.apple.install
Error: The following dependencies failed to build: yelp gnome-vfs
libgnome libgnomeui libbonoboui libgnomecanvas libgtkhtml gail
Error: Status 1 encountered during processing.




struct rusage in sys/resource.h first requires that sys/time.h be
included. The existing patch modules_file-method-acl.c.patch correctly
adds sys/time.h, but it is not included in the Portfile.

I added the patch to platform darwin 7, but it did not apply correctly:

--->  Applying /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/gnome/gnome-vfs/files/modules_file-method-acl.c.patch
patching file modules/file-method-acl.c
Hunk #2 FAILED at 47.
Hunk #3 succeeded at 64 with fuzz 2 (offset 2 lines).
Hunk #4 succeeded at 695 with fuzz 2 (offset -26 lines).
1 out of 4 hunks FAILED -- saving rejects to file modules/file-method-acl.c.rej
Error: Target com.apple.patch returned: shell command "cd
"/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_gnome_gnome-vfs/work/gnome-vfs-2.16.3"
&& patch -p0 < "/opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/gnome/gnome-vfs/files/modules_file-method-acl.c.patch""
returned error 1
Command output: patching file modules/file-method-acl.c
Hunk #2 FAILED at 47.
Hunk #3 succeeded at 64 with fuzz 2 (offset 2 lines).
Hunk #4 succeeded at 695 with fuzz 2 (offset -26 lines).
1 out of 4 hunks FAILED -- saving rejects to file modules/file-method-acl.c.rej

Warning: the following items did not execute (for gnome-vfs):
com.apple.activate com.apple.patch com.apple.configure com.apple.build
com.apple.destroot com.apple.install
Error: Status 1 encountered during processing.


Contents of modules/file-method-acl.c.rej:

***************
*** 46,55 ****

  #ifdef HAVE_POSIX_ACL
  # include <acl/libacl.h>
  #endif

  #ifdef HAVE_SOLARIS_ACL
  # include <sys/acl.h>
  #endif

  #include "file-method-acl.h"
--- 47,58 ----

  #ifdef HAVE_POSIX_ACL
  # include <acl/libacl.h>
+ #define HAVE_ACL
  #endif

  #ifdef HAVE_SOLARIS_ACL
  # include <sys/acl.h>
+ #define HAVE_ACL
  #endif

  #include "file-method-acl.h"



Looking at the original, these two HAVE_ACLs are already included as
"#define HAVE_ACL 1", so the patch just needs to be updated and added
back to the Portfile.

-- 
Brett Warden



More information about the macports-users mailing list