Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-12-23 15:43:08

Slesa
Member
From: Saarbrücken
Registered: 2013-12-22
Posts: 10

[Solved] Compile errors in git version

Hi,

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.

Offline

#2 2013-12-23 17:18:03

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,931

Re: [Solved] Compile errors in git version

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.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#3 2013-12-23 18:09:19

Slesa
Member
From: Saarbrücken
Registered: 2013-12-22
Posts: 10

Re: [Solved] Compile errors in git version

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.

1) libxfce4util:

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

2) xfce4-docs

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[2]: *** No rule to make target `xfhelp4.desktop', needed by `all-am'. Stop.

Maybe here is still a package missing...

3) exo

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.


Edit:

4) xfce4-appfinder

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)

Offline

#4 2013-12-23 20:44:54

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,931

Re: [Solved] Compile errors in git version

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

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#5 2013-12-23 21:36:23

Slesa
Member
From: Saarbrücken
Registered: 2013-12-22
Posts: 10

Re: [Solved] Compile errors in git version

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.

Offline

Board footer

Powered by FluxBB