I am wondering how I can compile XFCE from the sources. I get errors in nearly all projects because of the use of deprecated functions, together with he parameter -Werror in the compiler settings. I checked out 4.10, which should compile I thought.
Sometimes it is enough to edit the Makefile and remove the -Werror flag, sometimes I need to remove the tests subproject.
Is there anything wrong with my system? I'm on Xubuntu 13.10 with the XFCE 4.10 desktop, everything up to date.
Building Xfce from git, as noted here, will work on 13.10 (at least it did when I compiled about 6 months ago). Pay attention to the Xfce dependency chain and if building from git, use autogen.sh. If you run into any errors, post back the exact error message and a description of what you were doing.
What I am doing is a git clone with a git checkout master (now). The complete script is in another thread. I install the found dependencies on the fly now. And I compile XFCE to a local directory with the given flags -O2 -pipe.
xfce-miscutils.c: In function 'internal_get_file_r': xfce-miscutils.c:137:3: error: function might be possible candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format] if ((gsize) g_vsnprintf(buffer + n, len - n, format, ap) >= len - n) ^ cc1: all warnings being treated as errors
Makefile:893: *** missing separator. Stop.
with the line
dist-hook: ChangeLog @INTLTOOL_DESKTOP_RULE@
so only the indendation is wrong. After shifting it right:
mv xfhelp4.tmp xfhelp4 make: *** No rule to make target `xfhelp4.desktop', needed by `all-am'. Stop.
Maybe here is still a package missing...
exo-job.c: In function 'IA__exo_job_info_message': exo-job.c:622:3: error: function might be possible candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format] message = g_strdup_vprintf (format, var_args); ^ cc1: all warnings being treated as errors
Probably the ordering was wrong before. Now, with changed Makefiles, I have now compiled the modules xfce4-dev-tools libxfce4util xfconf libxfce4ui garcon exo xfce4-panel.
main.c: In function ‘main’: main.c:200:16: error: unused variable ‘desktop’ [-Werror=unused-variable] const gchar *desktop; ^ cc1: all warnings being treated as errors
Last edited by Slesa (2013-12-23 18:25:22)
I just successfully built Xfce from an Ubuntu 13.10 mini iso. My process and batch code is similar to yours, though yours is much cleaner.
cc1: all warnings being treated as errors
I don't get this when I compile. However, I use:
./autogen.sh --enable-maintainer-mode --prefix=/usr --disable-debug
Great. It was one of the two parameters. I assume disable debug, because I saw the maintainer mode flag in the configure script on the screen somewhere.
Nevertheless, the mentioned script now even installs the dependencies.