[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Denemo-devel] Error compiling Denemo
From: |
Andreas Schneider |
Subject: |
Re: [Denemo-devel] Error compiling Denemo |
Date: |
Sun, 7 Feb 2016 18:00:19 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 |
Am 07.02.2016 um 17:08 schrieb Richard Shann:
> On Sun, 2016-02-07 at 16:50 +0100, Andreas Schneider wrote:
>> When compiling (with GTK3), I get the following error on Debian Wheezy
>> (oldstable):
>>
>> export/print.o: In function `open_viewer':
>> /home/src/denemo/src/export/print.c:417: undefined reference to
>> `g_spawn_check_exit_status'
>> printview/printview.o: In function `printview_finished':
>> /home/src/denemo/src/printview/printview.c:501: undefined reference to
>> `g_spawn_check_exit_status'
>
> https://developer.gnome.org/glib/stable/glib-Spawning-Processes.html#g-spawn-check-exit-status
>
> says this has been there since 2.34 (presumably that means glib 2.34)
> so I guess you must have earlier.
> The check is not important, it's just diagnostic for those watching the
> terminal. The whole block:
>
> {
> GError* err = NULL;
> if(!g_spawn_check_exit_status (status, &err))
> g_warning ("Lilypond did not end successfully: %s",
> err->message);
> }
>
>
> could be deleted...
I see. Wheezy ships with glib version 2.33.12. So one could introduce a
preprocessor conditional checking the version. If I understand the doc
on https://developer.gnome.org/glib/stable/glib-Version-Information.html
correctly, one can write
#if GLIB_CHECK_VERSION(2,34,0)
...
#endif
in printview/printview.c, line 499 and export/print.c, line 415. For me,
this solves the problem.
Andreas