I am trying to compile Xfce 4.6.1 on Solaris 10u7 (05/09). I am building in an order loosely based on this page: http://wiki.archlinux.org/index.php/Bui … r_for_XFCE.
All has gone very well until I try to compile Thunar. I have the problem that DEFFILEMODE is undefined:
thunar-vfs-io-jobs.c: In function `_thunar_vfs_io_jobs_create': thunar-vfs-io-jobs.c:436: error: `DEFFILEMODE' undeclared (first use in this function) thunar-vfs-io-jobs.c:436: error: (Each undeclared identifier is reported only once thunar-vfs-io-jobs.c:436: error: for each function it appears in.) make: *** [libthunar_vfs_1_la-thunar-vfs-io-jobs.lo] Error 1
It looks like on GNU/Linux or BSD DEFFILEMODE is usually defined in /usr/include/sys/stat.h as:
#define DEFFILEMODE(S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)/* 0666* /
Solaris 10 does not have this defined however.
I tried adding this line to my stats.h on my Solaris 10 system, but on Solaris I get get the error: "|" may not appear in macro parameter list.
Does anyone know of a solution to this problem? I am hoping to either get DEFFILEMODE properly defined in Solaris or get Thunar to use something besides DEFFILEMODE.
Just an FYI, if you don't have any luck here on the forum try the Mailing List.