Re: gio-standalone fails to build 'G_GNUC_PRETTY_FUNCTION'



Hi,

On Sat, 2008-09-27 at 11:27 +0200, comicinker wrote:

> I'm trying to build the svn version of gio-standalone (Rev 761) on a
> Ubuntu Hardy machine.
> 
> I receive following error message:
> 
> make[3]: Entering directory
> `/home/comic/zzz_unindexed/gio-standalone/trunk/gio'
> gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -DGIO_MODULE_DIR=
> \"/usr/local/lib/gio/modules\" -pthread -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include   -DG_LOG_DOMAIN=\"GIO\"
> -DG_DISABLE_DEPRECATED -DDBUS_API_SUBJECT_TO_CHANGE    -Wall
> 	-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes
> 	-Wnested-externs -Wpointer-arith 	-Wcast-align -Wsign-compare 	-g -Od.a2
> -Wno-strict-aliasing -Wno-sign-compare -MT test-streams.o -MD -MP
> -MF .deps/test-streams.Tpo -c -o test-streams.o test-streams.c
> test-streams.c: In function 'test_memory_input_stream':
> test-streams.c:74: error: 'G_GNUC_PRETTY_FUNCTION' undeclared (first use
> in this function)

G_GNUC_PRETTY_FUNCTION is deprecated since GLib 2.16 and you are
compiling with G_DISABLE_DEPRECATED. The code should be changed to use
G_STRFUNC instead. And the configure script should have a check for the
GLib version and not use G_DISABLE_DEPRECATED for newer versions of
GLib.


Sven




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]