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 _______________________________________________ Denemo-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/denemo-devel
